20.07.2009, 22:50
I hate to ask for help, but I am really stuck.
I had the idea to make a /getcar command. So that it would be possible to call any car from antwhere to your location.
I got this far:
But when I test this, nothing happens!
ps, maybe it's usefull information that I based this command on the /callcar command from GF.
Thanks for helping!
I had the idea to make a /getcar command. So that it would be possible to call any car from antwhere to your location.
I got this far:
Код:
if(strcmp(cmd, "/getcar", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /getcar [carid]"); return 1; } if (PlayerInfo[playerid][pAdmin] >= 3) { new Float:plocx,Float:plocy,Float:plocz; GetPlayerPos(playerid, plocx, plocy, plocz); SetVehiclePos(CarID[playerid],plocx,plocy+4, plocz); } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); } } return 1; }
ps, maybe it's usefull information that I based this command on the /callcar command from GF.
Thanks for helping!