NPC Respawning
#2

Store the vehicle id in a variable under OnGameModeInit or OnFilterScriptInit and spawn the NPC regularly. But under OnPlayerSpawn at the top, you can do something like this:
pawn Код:
if(IsPlayerNPC(playerid))
    {
        if(!strcmp(playerName(playerid), "FlightToSF"))
        {
            PutPlayerInVehicle(playerid, Flight1, 0);
        }
        return 1;
    }
Reply


Messages In This Thread
NPC Respawning - by CJ101 - 23.09.2013, 21:05
Re: NPC Respawning - by Cell_ - 25.09.2013, 12:38
Re: NPC Respawning - by CJ101 - 25.09.2013, 17:45

Forum Jump:


Users browsing this thread: 1 Guest(s)