22.07.2009, 15:16
Thanks again for all the help, I'm going to try again and I wll keep you up to date
#And yet again I am stuck
Tried what you all said, but I can't get it to work. If anyone got some spare time I would appriciate if you could look into this.
Thanks again.
#And yet again I am stuck
Код:
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; } new testcar = strval(tmp); if (PlayerInfo[playerid][pAdmin] >= 3) { new Float:plocx,Float:plocy,Float:plocz; GetPlayerPos(playerid, plocx, plocy, plocz); PutPlayerInVehicle(playerid, testcar, 0); SendClientMessage(playerid, COLOR_GRAD1, " You have been teleported"); SetVehiclePos (vehicleid, plocx, plocy, plocz); } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); } } return 1; }
Thanks again.