14.06.2013, 16:48
when a player goes to a /dm mini-game and died, how do i respawn him in the dm he joined
if(InDm[playerid] == 1)
{
SetPlayerPos(playerid, X, Y, Z); // Replace X Y Z with your coords.
}
new InDm[MAX_PLAYERS];
InDm[playerid] = 1;
InDm[playerid] = 0;
If you have a variable like InDm put this in OnPlayerSpawn:
pawn Код:
pawn Код:
pawn Код:
pawn Код:
Hope i helped. |