28.10.2010, 00:04
Use a variable to check if a player is in the dm, something like this
pawn Код:
new indm[MAX_PLAYERS];//at the top of script
COMMAND:dm(playerid, params[])
{
indm[playerid] = 1;//put this wherever you set the players position
return 1;
}
public OnPlayerSpawn(playerid)//you might be better using a timer in onplayerdeath
{
if(indm[playerid] == 1)
{
SetPlayerPos(playerid, x, y, z);// this might be buggy, if it is use a short timer
}
return 1;
}