How to ..............
#2

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;
}
Reply


Messages In This Thread
How to .............. - by MBX97 - 27.10.2010, 23:54
Re: How to .............. - by iggy1 - 28.10.2010, 00:04
Re: How to .............. - by MBX97 - 28.10.2010, 00:22
Re: How to .............. - by MBX97 - 28.10.2010, 00:29
Re: How to .............. - by iggy1 - 28.10.2010, 00:33

Forum Jump:


Users browsing this thread: 2 Guest(s)