Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:aduty(playerid, params[])
- {
- if (P_DATA[ playerid ][ P_Level ] < 1)return SendClientMessage( playerid, "You are not high enough level to use this commands");
- if(Aduty[playerid] == 1)
- {
- return GameTextForPlayer(playerid, "You are already in Duty-Mode. Use /offduty",3000,3);
- }
- new string [256];
- format(string, sizeof(string), "[CAUTION]: Administrator %s Is Now On-Duty.");
- SendClientMessageToAll(RED, string);
- SendClientMesage( playerid, COLOR_YELLOW, "You are now on duty mode.USe /offduty to offduty !");
- SetPlayerHealth(playerid, 9999);
- SetPlayerArmour(playerid, 9999);
- new Float:X;
- new Float:Y;
- new Float:Z;
- GetPlayerPos(playerid,X,Y,Z);
- CreateVehicle(425,X,Y+5,Z,1,1,1,90000);
- GivePlayerWeapon( playerid, 30, 100000);
- GivePlayerWeapon( playerid, 38, 100000);
- GivePlayerWeapon( playerid, 35, 100000);
- GivePlayerWeapon( playerid, 24, 100000);
- GivePlayerWeapon( playerid, 26, 100000);
- Aduty[playerid] =1;
- Adutycount++;
- return 1;
- }
- CMD:offduty(playerid, params[])
- {
- if (P_DATA[ playerid ][ P_Level ] < 1)return SendError( playerid, "You are not high enough level to use this commands");
- if(Aduty[playerid] == 0)
- {
- return GameTextForPlayer(playerid, "You are not in Duty-Mode. Use /aduty",3000,3);
- }
- new string[256];
- format(string, sizeof(string), "[CAUTION]: Administrator %s Is Now Off-Duty.");
- SendClientMessageToAll(RED, string);
- SetPlayerHealth(playerid, 100);
- ResetPlayerWeapons(playerid);
- Aduty[playerid] =0;
- Adutycount--;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment