Help me fast..
#1

Can anybody give me a command like /dutyon and dutyoff.
Fast please..
Reply
#2

for admins
Reply
#3

ok ty
Reply
#4

How exactly you want?

Just the Message like ' Adminstrator %s is on adminstrator duty now. '

Or just custom?
Reply
#5

Untested... I wrote the code without the wiki so there might be some errors when you try to compile it.
pawn Код:
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;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)