04.04.2012, 06:21
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;
}