- 0
Comanda /cuff nu merge GM Burned.
-
Similar Content
-
- 2 answers
- 1,497 views
-
- 1 reply
- 37 views
-
Comanda /spec
By VAurel,
- 4 answers
- 218 views
-
- 4 replies
- 387 views
-
- 1 reply
- 322 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
.maSTER
De ce nu merge? Scriu /cuff si scrie /cuff player id pun player id si nu se intampla nimic, cu un flterscript merge dar e tare urat.
Ce sa fac?
YCMD:cuff(playerid, params[], help) {
if(!IsACop(playerid)) return SCM(playerid, COLOR_GREY, "Nu esti politist.");
new id,string[180];
if(sscanf(params, "u",id)) return SCM(playerid, COLOR_GREY, "USAGE: {FFFFFF}/cuff <playerid/name>");
if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel player nu este conectat.");
if(IsACop(id)) return 1;
if(OnDuty[playerid] == 0) return SCM(playerid, COLOR_LGREEN, "Nu poti folosi aceasta comanda deoarece nu esti la datorie!");
if(PlayerCuffed2[id] > 0) return 1;
if(!ProxDetectorS(8.0, playerid, id)) return SCM(playerid, -1, "Acel player nu este langa tine.");
if(id == playerid) return SCM(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda asupra ta!");
if(!IsPlayerInAnyVehicle(id)) return 1;
TogglePlayerControllable(id, 0);
format(string, sizeof(string), "* %s has handcuffed %s.", GetName(playerid),GetName(id));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
PlayerCuffed2[id] = 1;
SetPlayerAttachedObject(id, 1, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
SetPlayerSpecialAction(id,SPECIAL_ACTION_CUFFED);
return 1;
}
Link to comment
Share on other sites
27 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.