18.04.2011, 17:13
Depending on what you're using to track if the player is a dead body transporter and if they're on duty you'll have to change 'DeadBodyTransporter' and 'OnDuty' to suit your needs.
OnPlayerDeath:
OnPlayerDeath:
pawn Код:
new Float:DeathX, Float:DeathY, Float:DeathZ;
GetPlayerPos(playerid,DeathX,DeathY,DeathZ);
for (new i= 0; i< MAX_PLAYERS; i++)
{
if(DeadBodyTransporter[i] == 1 && OnDuty[i] == 1)
{
SetPlayerCheckpoint(i,DeathX,DeathY,DeathZ,4.0)
}
}