26.09.2012, 16:39
How to set cmd be able to use it after you die ?
new dead[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
dead[playerid]=1;
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(dead[playerid] != 1)
{
SendClientMessage(playerid, 0xFF0000, "You must die to use commands.");
}
return 0;
}