Help with /aduty and /v
#2

u must first enum that like

Код:
enum ainfo {
        onduty
}
and then

under onplayerconnect

Код:
ainfo[playerid][onduty] = 0;
and under on player disconnet
Код:
ainfo[playerid][onduty] = 0;
and now start making command like

Код:
CMD:onduty(playerid,params[])
{
            if.........//here your level check command{
	    if(aInfo[playerid][OnDuty] == 0)
	    {
 			aInfo[playerid][OnDuty] = 1;
 			return SendClientMessage(playerid,0x00FFAA,"|- You are now in \"Duty Mode\" -|");
		}
		else
		{
			aInfo[playerid][OnDuty] = 0;
 			return SendClientMessage(playerid,0x00FFAA,"|- You are now in \"Playing Mode\"-|");
		}
	}
	return SendClientMessage(playerid, red, "You are not high enough to use this command");
}
Reply


Messages In This Thread
Help with /aduty and /v - by [DX]Aru12345 - 22.03.2013, 05:36
Re: Help with /aduty and /v - by CBCandyBoy - 22.03.2013, 05:50
Re: Help with /aduty and /v - by dusk - 22.03.2013, 07:26
Re: Help with /aduty and /v - by LarzI - 22.03.2013, 08:20

Forum Jump:


Users browsing this thread: 2 Guest(s)