Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Samp Anti Crasher FilterScript
- //Credits: Michael,Dimi
- //Lijepo bi bilo da ostavite credits u vasem modu
- //Morate imati updateani YSI, ukoliko vam izbaci errore nakon compile skinite ovo- http://forum.sa-mp.com/showthread.php?t=570883
- #define COLOR_BRIGHTRED 0xDC143CAA // Ubacite ukoliko nemate vec definirano
- #define IsValidWeapon(%0) (%0>=1 && %0<=18 || %0>=21 && %0<=46)//provjera jel oruzje pravo, ne dirajte to
- public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
- {
- if( hittype != BULLET_HIT_TYPE_NONE )
- {
- if( !( -1000.0 <= fX <= 1000.0 ) || !( -1000.0 <= fY <= 1000.0 ) || !( -1000.0 <= fZ <= 1000.0 ) )
- {
- Kick(playerid);//Kicka ga sa servera ako ima crasher. Dodajte adminima text da pise ako zelite
- return 0;
- }
- }
- if( hittype == BULLET_HIT_TYPE_PLAYER )
- {
- if(hitid == playerid)
- {
- Kick(playerid);//Kicka ga sa servera ako ima crasher. Dodajte adminima text da pise ako zelite
- return 0;
- }
- }
- if( hittype == BULLET_HIT_TYPE_PLAYER )
- {
- if( fX == 0.000000 && fY == 0.000000 && fZ == 0.500000 && weaponid == 0)
- {
- Kick(playerid);//Kicka ga sa servera ako ima crasher. Dodajte adminima text da pise ako zelite
- return 0;
- }
- }
- if( hittype == 0 && !IsValidWeapon(weaponid) )
- {
- if( fX == 0.000000 && fY == 0.000000 && fZ == 0.000000 )
- {
- Kick(playerid);//Kicka ga sa servera ako ima crasher. Dodajte adminima text da pise ako zelite
- return 0;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement