Advertisement
Guest User

Untitled

a guest
Jun 4th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. YCMD:tazer(playerid, params[], help) {
  2. if(!IsACop(playerid)) return SCM(playerid, COLOR_GREY, "Nu esti politist.");
  3. if(OnDuty[playerid] == 0) return SCM(playerid, COLOR_LGREEN, "Nu poti folosi aceasta comanda deoarece nu esti la datorie!");
  4. if(GetPlayerWeapon(playerid) != 24) return SCM(playerid,COLOR_GREY, "Pentru a activa tazer-ul, trebuie sa ai un Deagle in mana!");
  5. switch(tazer[playerid]) {
  6. case 0: {
  7. tazer[playerid] = 1;
  8. new string[128];
  9. format(string, sizeof(string), "* %s equiped a taser.", GetName(playerid));
  10. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  11. }
  12. case 1: {
  13. tazer[playerid] = 0;
  14. SCM(playerid, -1, "Tazer off!");
  15. }
  16. }
  17. return 1;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement