Respawn a vehicle when enter checkpoint
#2

pawn Код:
new CheckRespawn;
pawn Код:
public OnGameModeInit()
{
     CheckRespawn = SetPlayerCheckpoint(playerid, X, Y, Z, 3.0);
     return 1;
}
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(CheckRespawn[playerid] == 1)
    {
         new vehicleid = GetPlayerVehicleID(playerid);
         SetVehicleToRespawn(vehicleid);
         SendClientMessage(playerid, -1, "[!] Your vehicle was respawn!");
         return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Respawn a vehicle when enter checkpoint - by lewismichaelbbc - 11.07.2011, 15:37
Re: Respawn a vehicle when enter checkpoint - by Macintosh - 11.07.2011, 15:48
Re: Respawn a vehicle when enter checkpoint - by lewismichaelbbc - 11.07.2011, 15:54

Forum Jump:


Users browsing this thread: 1 Guest(s)