19.04.2011, 17:29
Hello, how do I create checkpoints that when you walk into, you will die?
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
GivePlayerMoney(playerid, 1000);
DisablePlayerCheckpoint(playerid);
return 1;
}
Well I added were I want the checkpoint to be on this
pawn Код:
pawn Код:
|
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerHealth(playerid,0);
DisablePlayerCheckpoint(playerid);
return 1;