Skripta koju koristim: noxicus
Detaljan opis problema: Kako da napravim komandu /vozilaport, ubacio sam zeljena vozila u odredjenu lokaciju, ali ja ne znam bas napravit komandu u ZCMDu... Ako moze pomoc..
Dio skripte: Pise gore
Neke slike/video za lakse dobivanje pomoci(neobavezno): /
[Pomo]/vozilaport
692
pregleda
6
postova
7. Avg. 2011.
Na
Ubuduce ako nesto trebas ides u tebu Trebam Nesto 😢
Ubuduce ako nesto trebas ides u tebu Trebam Nesto 😢
if(strcmp(cmd, "/getcar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Komanda | /getcar ");
return 1;
}
new Float:plocx,Float:plocy,Float:plocz;
new plo;
plo = strval(tmp);
if (PlayerInfo >= 1337)
{
GetPlayerPos(playerid, plocx, plocy, plocz);
SetVehiclePos(plo,plocx+8,plocy, plocz);
LinkVehicleToInterior(plo, GetPlayerInterior(playerid));
SetVehicleVirtualWorld(plo, GetPlayerVirtualWorld(playerid));
OnPropUpdate(4);
format(string, sizeof(string),": %s je teleportirao Vozilo [%d] do sebe",sendername,plo);
ABroadCast(COLOR_LIGHTRED,string, 5);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Teleported the car [%d] To himself.",d,m,y,h,mi,s,sendername,plo);
AdminLog(string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Nemozes koristiti ovu komandu!");
}
}
return 1;
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava