Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // miny anti weapon system
- // služi da ako igrač spawna minigun,zolju,plamenku...
- // kicka ga i preko chata mu piše da je kickan
- // izradio: Lumpri77
- #include <a_samp>
- #define COLOR_CRVENA 0xFF0E00FF
- #define COLOR_NARANCASTA 0xFFA100FF
- forward nooruzija(playerid);
- public OnPlayerConnect(playerid)
- {
- SetTimer("nooruzija", 2000, 1);
- return 1;
- }
- public nooruzija(playerid)
- {
- new weaponid;
- weaponid = GetPlayerWeapon(playerid);
- if(weaponid == 26 || weaponid == 35 || weaponid == 36 || weaponid == 37 || weaponid == 38) // Nedozvoljava korištenje sawnoff shotguna,zolja,plamenke i miniguna
- {
- SendClientMessage(playerid, COLOR_CRVENA,"Nenene!!! Nemožete koristiti to oružije.");
- SendClientMessage(playerid, COLOR_NARANCASTA,"KICKANI STE!!!.");
- Kick(playerid);
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- ResetPlayerWeapons(playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement