Put NPC in vehicle ?
#4

Quote:
Originally Posted by DeathCore
Посмотреть сообщение
Try like this:

Код:
if(IsPlayerNPC(playerid)) 
{ 
    new npcname[24]; 
    GetPlayerName(playerid, npcname, 24); 
    if(!strcmp(npcname, "train", true)) 
    { 
        SetPlayerSkin(playerid, 255); 
        PutPlayerInVehicle(playerid, trainveh, 0);
        return 1;
    }         
}
if still not spawning then the record file is probably missing.
All I see what you did was move 'return 1;'
Reply


Messages In This Thread
Put NPC in vehicle ? - by Guss - 06.11.2015, 15:20
Respuesta: Put NPC in vehicle ? - by Guss - 06.11.2015, 22:41
Re: Put NPC in vehicle ? - by DeathCore - 07.11.2015, 01:32
Re: Put NPC in vehicle ? - by J0sh... - 07.11.2015, 01:45
Re: Put NPC in vehicle ? - by jlalt - 07.11.2015, 02:50
Respuesta: Put NPC in vehicle ? - by Guss - 07.11.2015, 20:12

Forum Jump:


Users browsing this thread: 1 Guest(s)