Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.69 KB | None | 0 0
  1. }
  2.  
  3. ocmd:kdefuse(playerid,params[])
  4. {
  5.     for(new i=0; i<MAX_PLAYERS; i++)
  6.     {
  7.         if(IsACop(playerid))
  8.         {
  9.                 if(pInfo[playerid][pRang] < 4) return SCM(playerid,ROT,"Du brauchst mind. Rang 4!");
  10.                 if(IsPlayerInRangeOfPoint(playerid,9.0,KofferInfo[i][KofferX],KofferInfo[i][KofferY],KofferInfo[i][KofferZ]))
  11.                 {
  12.                     SCM(playerid,COLOR_YELLOW,"Du entschärfst die Bombe...");
  13.                     SetTimerEx("kdefuse",3000,0,"i",playerid);
  14.                     ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 1.0, 0, 0, 0, 0, 0);
  15.                     return 1;
  16.                 }
  17.                 SCM(playerid,ROT,"Du bist nicht in der Nähe einer Kofferbombe!");
  18.                 return 1;
  19.         }
  20.         SCM(playerid,ROT,"Du bist kein Beamter!");
  21.         return 1;
  22.     }
  23.     return 1;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement