Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:tazer(playerid, params[], help) {
- if(!IsACop(playerid)) return SCM(playerid, COLOR_GREY, "Nu esti politist.");
- if(OnDuty[playerid] == 0) return SCM(playerid, COLOR_LGREEN, "Nu poti folosi aceasta comanda deoarece nu esti la datorie!");
- if(GetPlayerWeapon(playerid) != 24) return SCM(playerid,COLOR_GREY, "Pentru a activa tazer-ul, trebuie sa ai un Deagle in mana!");
- switch(tazer[playerid]) {
- case 0: {
- tazer[playerid] = 1;
- new string[128];
- format(string, sizeof(string), "* %s equiped a taser.", GetName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- case 1: {
- tazer[playerid] = 0;
- SCM(playerid, -1, "Tazer off!");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement