/onduty is ok But /offduty?? (rep++)
#8

ignoring zcmd? you will understand in the future. strcmp is slow. never mind you ignore it. but in the future you will come and use zcmd by the way

pawn Код:
new AdminDuty[MAX_PLAYERS]; //at the top of script after #include

if(strcmp(cmdtext, "/offduty", true) == 0)
{
    if(PlayerInfo[playerid][Level] >= 2)
    {
        if(AdminDuty[playerid] == 1)
        {
            CMDMessageToAdmins(playerid,"Now Off Duty");
            GetPlayerName(playerid, adminname, sizeof(adminname));
            AdminDuty[playerid] = 0;
        }
    }
    return 1;
}
Reply


Messages In This Thread
/onduty is ok But /offduty?? (rep++) - by iOmar - 04.04.2012, 04:42
Re: /onduty is ok But /offduty?? (rep++) - by Kitten - 04.04.2012, 05:01
Respuesta: /onduty is ok But /offduty?? (rep++) - by Chris1337 - 04.04.2012, 05:37
Re: /onduty is ok But /offduty?? (rep++) - by iOmar - 04.04.2012, 06:05
Respuesta: /onduty is ok But /offduty?? (rep++) - by Chris1337 - 04.04.2012, 06:08
Re: /onduty is ok But /offduty?? (rep++) - by iOmar - 04.04.2012, 06:14
Respuesta: /onduty is ok But /offduty?? (rep++) - by Chris1337 - 04.04.2012, 06:18
Re: /onduty is ok But /offduty?? (rep++) - by Reklez - 04.04.2012, 06:21
Re: /onduty is ok But /offduty?? (rep++) - by Harish - 04.04.2012, 06:23
Re: /onduty is ok But /offduty?? (rep++) - by iOmar - 04.04.2012, 06:27

Forum Jump:


Users browsing this thread: 1 Guest(s)