Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <YSI\y_timers>
- new createCar[MAX_PLAYERS] = INVALID_VEHICLE_ID;
- static Float:pPos[3];
- public OnPlayerSpawn(playerid)
- {
- defer Sobeit_Check(playerid);
- return (true);
- }
- timer Sobeit_Check[5](playerid)
- {
- GetPlayerPos(playerid,pPos[0],pPos[1],pPos[2]);
- createCar[playerid] = AddStaticVehicleEx (457, pPos[0],pPos[1],pPos[2],180.0, random(200), random(200), 15);
- PutPlayerInVehicle(playerid, createCar[playerid], 0);
- defer Sobeit_Check_1(playerid);
- return (true);
- }
- timer Sobeit_Check_1[5](playerid)
- {
- RemovePlayerFromVehicle(playerid);
- DestroyVehicle(createCar[playerid]);
- defer Sobeit_Check_2(playerid);
- return (true);
- }
- timer Sobeit_Check_2[150](playerid)
- {
- if(FindWeapon(playerid,2))
- {
- SendClientMessage(playerid,-1,"{FC586E}Sucks to be a hacker like you, remove them if you want to play here !");
- defer Ban_Kick(playerid);
- }
- return (true);
- }
- timer Ban_Kick[500](playerid)
- {
- Ban(playerid);
- return (true);
- }
- stock FindWeapon(playerid, weaponid)
- {
- new
- weapon,
- ammo;
- for (new i = 0; i < 13; i ++)
- {
- GetPlayerWeaponData(playerid, i, weapon, ammo);
- if (weapon == weaponid) return (true);
- }
- return (false);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement