Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
- {
- new string[128];
- if( weaponid <= 0 || weaponid > 46 )
- return Kick(playerid), 0;
- if(hittype != BULLET_HIT_TYPE_NONE) {
- if((fX <= -1000.0 || fX >= 1000.0) || (fY <= -1000.0 || fY >= 1000.0) || (fZ <= -1000.0 || fZ >= 1000.0) || ((hittype != BULLET_HIT_TYPE_PLAYER) && (hittype != BULLET_HIT_TYPE_VEHICLE) && (hittype != BULLET_HIT_TYPE_OBJECT) && (hittype != BULLET_HIT_TYPE_PLAYER_OBJECT))) {
- format(string, sizeof(string), "{F23A0D}[ANTICHEAT]: {FFFFFF}%s je kikovan zbog Weapon Crashera!", GetName(playerid));
- SendClientMessageToAll(CRVENA3, string);
- SCM(playerid, -1,"{F23A0D}[ANTICHEAT]: {FFFFFF} Izbaceni ste sa servera, razlog:Weapon Cheat!" );
- freeze[playerid] = SetTimerEx("KonektKick", 1000, 0, "d", playerid);
- return 0;
- }
- }
- if( hittype == BULLET_HIT_TYPE_PLAYER )
- {
- if( !( -20.0 <= fX <= 20.0 ) || !( -20.0 <= fY <= 20.0 ) || !( -20.0 <= fZ <= 20.0 ) )
- {
- format(string, sizeof(string), "{F23A0D}[ANTICHEAT]: {FFFFFF}%s je kikovan zbog Crashera!", GetName(playerid));
- SendClientMessageToAll(CRVENA3, string);
- SCM(playerid,-1, "{F23A0D}[ANTICHEAT]: {FFFFFF}Izbaceni ste sa servera, razlog: Crasher.");
- freeze[playerid] = SetTimerEx("KonektKick", 1000, 0, "d", playerid);
- return 0;
- }
- }
- return 1;
- }
- //na vrh
- new crasher[MAX_PLAYERS char],
- crasherc[MAX_PLAYERS];
- onplayerconn
- crasher{playerid} = 0;
- onplayerdisco
- KillTimer(crasherc[playerid]);
- onplayerstatechange
- if(newstate == PLAYER_STATE_DRIVER)
- {
- if(crasher{playerid} == 1)
- {
- new string[128];
- format(string, sizeof(string),""CRVENA "[Admin] Igrac: %s je dobio kick zbog koristenja cheata!", GetName(playerid));
- AdminGameMaster(-1,string);
- Kick(playerid);
- }
- else if(crasher{playerid} == 0)
- {
- crasher{playerid} = 1;
- crasherc[playerid] = SetTimerEx("Crash", 1000, false, "i", playerid);
- }
- }
- negdje na kraj
- forward Crash(playerid);
- public Crash(playerid)
- {
- crasher{playerid} = 0;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement