Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- }
- ocmd:kdefuse(playerid,params[])
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsACop(playerid))
- {
- if(pInfo[playerid][pRang] < 4) return SCM(playerid,ROT,"Du brauchst mind. Rang 4!");
- if(IsPlayerInRangeOfPoint(playerid,9.0,KofferInfo[i][KofferX],KofferInfo[i][KofferY],KofferInfo[i][KofferZ]))
- {
- SCM(playerid,COLOR_YELLOW,"Du entschärfst die Bombe...");
- SetTimerEx("kdefuse",3000,0,"i",playerid);
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 1.0, 0, 0, 0, 0, 0);
- return 1;
- }
- SCM(playerid,ROT,"Du bist nicht in der Nähe einer Kofferbombe!");
- return 1;
- }
- SCM(playerid,ROT,"Du bist kein Beamter!");
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement