Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(PlayerInfo[playerid][Logged])
- {
- if(GetPVarInt(playerid,"DetekcjaSobeita") == 0)
- {
- if(detekcjasobeitatime[playerid] < GetTickCount())
- {
- SetPVarInt(playerid,"DetekcjaSobeita",1);
- detekcjasobeitatime[playerid] = GetTickCount()+200;
- }
- }
- if(GetPVarInt(playerid,"DetekcjaSobeita") == 1)
- {
- if(detekcjasobeitatime[playerid] < GetTickCount())
- {
- new Float: x, Float: y, Float: z, Float: r, vehicle;
- GetPlayerPos(playerid,x,y,z);
- SetPVarFloat(playerid,"xSpawn",x);
- SetPVarFloat(playerid,"ySpawn",y);
- SetPVarFloat(playerid,"zSpawn",z);
- GetPlayerFacingAngle(playerid,r);
- vehicle = CreateVehicle(457,x,y,z,r,0,0,300);
- SetPVarInt(playerid,"vehiclewozek",vehicle);
- SetPlayerVirtualWorld(playerid,10);
- SetVehicleVirtualWorld(vehicle, 10);
- LinkVehicleToInterior(vehicle,1);
- PutPlayerInVehicle(playerid,vehicle,0);
- SetPVarInt(playerid,"DetekcjaSobeita",2);
- detekcjasobeitatime[playerid] = GetTickCount()+200;
- TogglePlayerControllable(playerid,false);
- }
- }
- if(GetPVarInt(playerid,"DetekcjaSobeita") == 2)
- {
- if(detekcjasobeitatime[playerid] < GetTickCount())
- {
- DestroyVehicle(GetPVarInt(playerid,"vehiclewozek"));
- SetPlayerVirtualWorld(playerid,0);
- SetPVarInt(playerid,"DetekcjaSobeita",3);
- detekcjasobeitatime[playerid] = GetTickCount()+500;
- }
- }
- if(GetPVarInt(playerid,"DetekcjaSobeita") == 3)
- {
- if(detekcjasobeitatime[playerid] < GetTickCount())
- {
- new weapons[13][2];
- for (new ii = 0; ii <= 12; ii++)
- {
- GetPlayerWeaponData(playerid, ii, weapons[ii][0], weapons[ii][1]);
- }
- for (new i = 0; i <= 12; i++)
- {
- if(weapons[i][0] == 2)
- {
- if(!IsAdmin(playerid))
- {
- new strtp[128];
- format(strtp,128,"Gracz %s najprawdopodobniej używa SOBEITA!",PlayerName(playerid));
- printf(strtp);
- Kara("BAN",playerid,"Anty Cheat","Detekcja sobeita",30,0,0);
- BanPlayer(playerid, -1, 30, 0, 0, "Detekcja sobeita");
- IsKara = true;
- }
- break;
- }
- }
- TogglePlayerControllable(playerid,true);
- SetPVarInt(playerid,"DetekcjaSobeita",4);
- ResetPlayerWeapons(playerid);
- WybierzSpawn(playerid);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement