Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2010
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.92 KB | None | 0 0
  1. // miny anti weapon system
  2. // služi da ako igrač spawna minigun,zolju,plamenku...
  3. // kicka ga i preko chata mu piše da je kickan
  4. // izradio: Lumpri77
  5.  
  6. #include <a_samp>
  7.  
  8. #define COLOR_CRVENA 0xFF0E00FF
  9. #define COLOR_NARANCASTA 0xFFA100FF
  10.  
  11. forward nooruzija(playerid);
  12.  
  13. public OnPlayerConnect(playerid)
  14. {
  15.     SetTimer("nooruzija", 2000, 1);
  16.     return 1;
  17. }
  18.  
  19. public nooruzija(playerid)
  20. {
  21.     new weaponid;
  22.     weaponid = GetPlayerWeapon(playerid);
  23.     if(weaponid == 26 || weaponid == 35 || weaponid == 36 || weaponid == 37 || weaponid == 38) // Nedozvoljava korištenje sawnoff shotguna,zolja,plamenke i miniguna
  24.     {
  25.         SendClientMessage(playerid, COLOR_CRVENA,"Nenene!!! Nemožete koristiti to oružije.");
  26.         SendClientMessage(playerid, COLOR_NARANCASTA,"KICKANI STE!!!.");
  27.         Kick(playerid);
  28.     }
  29.     return 1;
  30. }
  31.  
  32. public OnPlayerDisconnect(playerid, reason)
  33. {
  34.     ResetPlayerWeapons(playerid);
  35.     return 1;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement