25.03.2011, 09:48
Can anybody give me a command like /dutyon and dutyoff.
Fast please..
Fast please..
new Duty[MAX_PLAYERS] = 0;
if(!strcmp,cmdtext, "/duty", true)
{
if(Duty[playerid] == 1)
{
Duty[playerid] = 0;
SendClientMessage(playerid, COLOR, "You are now off duty.");
}
else
{
Duty[playerid] = 1;
SendClientMessage(playerid, COLOR, "You are now on duty.");
}
return 1;
}