[HELP] bus npc
#2

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
        new playername[64]; //Player String
        GetPlayerName(playerid,playername,64); //This is to get the NPC's name

        if(!strcmp(playername, "james", true))
        {
            SetPlayerColor(playerid,0xFFFFFFFF);
            PutPlayerInVehicle(playerid, bus, 0);
        }
    }
    return 1;
}
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)