[HELP] bus npc
#4

try this

public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) {
new playername[32];
GetPlayerName(playerid,playername,32);
if(!strcmp(playername, "james", true)) {
SetPlayerColor(playerid,0xFFFFFFFF);
PutPlayerInVehicle(playerid, bus, 0);
}

return true;
}

return true;
}
/*
your code failed because:
if(IsPlayerNPC(playerid)) return 1; // if the player is an NPC then stop reading from this function.
*/
Reply


Messages In This Thread
[HELP] bus npc [Solved] - by SilverBox aka XHell4YouX - 06.07.2011, 18:30
Re: [HELP] bus npc - by TheGarfield - 06.07.2011, 18:51
Re: [HELP] bus npc - by SilverBox aka XHell4YouX - 06.07.2011, 18:58
Re: [HELP] bus npc - by [LCK]Chris - 06.07.2011, 19:04

Forum Jump:


Users browsing this thread: 1 Guest(s)