SA-MP Forums Archive
Help me fast.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me fast.. (/showthread.php?tid=243895)



Help me fast.. - Ironboy - 25.03.2011

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


Re: Help me fast.. - Ironboy - 25.03.2011

for admins


Re: Help me fast.. - Ironboy - 25.03.2011

ok ty


Re: Help me fast.. - Davz*|*Criss - 25.03.2011

How exactly you want?

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

Or just custom?



Re: Help me fast.. - alpha500delta - 25.03.2011

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;
}