Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/tazer", true) ==0 || strcmp(cmd, "/ta", true) ==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsACop(playerid))
- {
- new Ammo = GetPlayerAmmo(playerid);
- if(Ammo < 0)
- return 1;
- if(GetPlayerWeapon(playerid)==24)
- {
- AC_RemovePlayerWeapon(playerid, 24);
- AC_GivePlayerWeapon(playerid,23,Ammo);
- format(string, sizeof(string), "* %s unholsters his/her tazer.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_SKYBLUE,COLOR_SKYBLUE,COLOR_SKYBLUE,COLOR_SKYBLUE,COLOR_SKYBLUE);
- }
- else if(GetPlayerWeapon(playerid)==23)
- {
- AC_RemovePlayerWeapon(playerid, 23);
- AC_GivePlayerWeapon(playerid,24,Ammo);
- format(string, sizeof(string), "* %s holsters his/her tazer.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_SKYBLUE,COLOR_SKYBLUE,COLOR_SKYBLUE,COLOR_SKYBLUE,COLOR_SKYBLUE);
- }
- }
- else return SendClientMessage(playerid, COLOR_GREY, "You are not a Cop!");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement