Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - new AdminDuty[MAX_PLAYERS]; //CLEAR THIS ON DISCONNECT/CONNECT.
 - //example code:
 - /*
 - REMEMBER TO USE AdminDuty[playerid] = val; wherever you set/load the player stats. Its easy once you get the hang of it.
 - */
 - CMD:duty(playerid,params[])
 - {
 - if(APlayerData[playerid][PlayerLevel] < 1)return 0; // return 0 here cause admin commands are fun blocked for lower levels.
 - if(AdminDuty[playerid] == 1)
 - {
 - SendClientMessage(playerid, -1, "You are OFF DUTY");
 - AdminDuty[playerid] = 0;
 - }
 - if(AdminDuty[playerid] == 0)
 - {
 - SendClientMessage(playerid, -1, "You are ON DUTY");
 - AdminDuty[playerid] = 1;
 - }
 - return 1;
 - }
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment