11.03.2013, 20:40
Set a timer on OnPlayerDeath, to a function which teleports you to the DM.
Example:
Example:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SetTimerEx("RespawnInDM",1500,0,"i",playerid);
}
forward RespawnInDM(playerid);
public RespawnInDM(playerid)
{
SetPlayerPos(playerid,..,..,..);//insert spawn coordinates here, you might want to add SetPlayerInterior and SetPlayerVirtualWorld if needed
}