24.07.2010, 07:44
Guys I need script for spwan player death after in front of hospital
public OnPlayerDeath(playerid, killerid, reason) { SetPlayerPos(.....CO-RD...); return 1; }
Code:
public OnPlayerDeath(playerid, killerid, reason) { SetPlayerPos(.....CO-RD...); return 1; } |
new Dead[MAX_PLAYERS];
public OnPlayerDeath(playerid,killerid, reason)
{
Dead[playerid] = 1;
return 1;
}
public OnPlayerSpawn(playerid)
{
if (Dead[playerid] == 1) {
SetPlayerPos(playerid, X,Y,Z);'
Dead[playerid] = 0;
}
return 1;
}