16.04.2011, 20:51
Anyone can told me how to respawn player in dm so if player dead on dm* he will re spawn on only in dm not on Other teles.
Thanks.
Thanks.
new IsInDeathMatch[MAX_PLAYERS];
IsInDeathMatch[playerid] = 1;//in dm
IsInDeathMatch[playerid] = 0;//not in dm
if(IsInDeathMatch[playerid] == 1)
{
//blah
//blah
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(IsInDeathMatch[playerid] == 1)
{
//spawn back to dm
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{ if(IsInDeathMatch[playerid] == 1) { SetPlayerPos(playerid,xxxxxxxxxxx); } return 1;} |
IsInDeathMatch[playerid] = 1;//in dm
IsInDeathMatch[playerid] = 0;//not in dm