#3

COMMAND:die(playerid, params[])
{
if(pInfo[playerid][pDie] == 0)
{
SetPlayerHealth(playerid, 0);
pInfo[playerid][pDie] = 1;
return 1;
}
if(pInfo[playerid][pDie] == 1)
SendClientMessage(playerid, 0xDEEE20FF, "You have already died one time");
return 1;
}
and somewhere on top of your gm add:

enum
e_PlayerInfo
{
pDie
};
new pInfo[MAX_PLAYERS][e_PlayerInfo];
Reply


Messages In This Thread
Help - by sl!x - 30.09.2012, 11:22
Re: Help - by gtakillerIV - 30.09.2012, 11:29
Re: Help - by gnoomen2 - 30.09.2012, 11:37
Re: Help - by sl!x - 30.09.2012, 11:52
Re: Help - by gtakillerIV - 30.09.2012, 12:15
Re: Help - by sl!x - 30.09.2012, 12:43
Re: Help - by sl!x - 30.09.2012, 13:22

Forum Jump:


Users browsing this thread: 1 Guest(s)