Respawn
#2

Set a timer on OnPlayerDeath, to a function which teleports you to the DM.
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
}
Reply


Messages In This Thread
Respawn - by P3DRO - 11.03.2013, 20:36
Re: Respawn - by Jstylezzz - 11.03.2013, 20:40
Re: Respawn - by P3DRO - 11.03.2013, 20:47
Re: Respawn - by Jefff - 11.03.2013, 20:56
Re: Respawn - by P3DRO - 11.03.2013, 21:04

Forum Jump:


Users browsing this thread: 2 Guest(s)