18.10.2009, 14:02
wat errors you get? if that's on player spawn use it like this
Код:
if(IsPlayerNPC(playerid)) { new playername[64]; GetPlayerName(playerid,playername,64); if(!strcmp(playername,"Mike",true)) { PutPlayerInVehicle(playerid, Hunter1, 0); } else if(!strcmp(playername,"Tom",true)) { PutPlayerInVehicle(playerid, Hunter2, 0); } else if(!strcmp(playername,"Andre",true)) { PutPlayerInVehicle(playerid, Hydra1, 0); } else if(!strcmp(playername,"Johnson",true)) { PutPlayerInVehicle(playerid, Hydra2, 0); } else if(!strcmp(playername,"Anderson",true)) { PutPlayerInVehicle(playerid, Rhino1, 0); } else if(!strcmp(playername,"Mathew",true)) { PutPlayerInVehicle(playerid, Rhino2, 0); } else if(!strcmp(playername,"Davidson",true)) { PutPlayerInVehicle(playerid, Seasparrow, 0); } else if(!strcmp(playername,"Moralles",true)) { PutPlayerInVehicle(playerid, Truck, 0); } return 1; }