|
Форум Pawno программирование Уроки | FAQ FlyHack [Coppy Skrilax RP] |
FlyHack [Coppy Skrilax RP] |
Offline
В public OnPlayerUpdate(playerid) :
Код [b]if(!IsPlayerInAnyVehicle(playerid) && PlayerInfo[playerid] [pAdmin]< 7) { new Float:Z; GetPlayerPos(playerid,Z,Z,Z); new anim = GetPlayerAnimationIndex(playerid); if((anim == 1538 || anim == 1539 || anim == 1543) && Z > 2) { if(!NotFlyingHack(playerid)) { new stringer[90]; format(stringer,sizeof(stringer),"[Античит]: %s был кикнут по подозрению в читерстве. (Полёт)",PlayerInfo[playerid][pNames]); ABroadCast(COLOR_GREY,stringer,1); SendClientMessage(playerid, COLOR_LIGHTRED, "Вы были кикнуты по подозрению в читерстве! (#0111)"); Delgun(playerid); ResetPlayerWeapons(playerid); Kick(playerid); } } } В конец мода: Код [b]stock NotFlyingHack(playerid) { if(IsPlayerInRangeOfPoint(playerid, 20.0, 1968.3948,-1198.0753,17.4500)) return true; else if(IsPlayerInRangeOfPoint(playerid, 20.0, 2310.9861,-1412.8881,21.6151)) return true; else if(IsPlayerInRangeOfPoint(playerid, 20.0, 1241.1094,-2379.7263,8.3145)) return true; else if(IsPlayerInRangeOfPoint(playerid, 20.0, 225.6394,-1187.0551,73.4500)) return true; else if(IsPlayerInRangeOfPoint(playerid, 20.0, 193.2040,-1224.7693,76.5034)) return true; else if(IsPlayerInRangeOfPoint(playerid, 20.0, 196.0067,-1232.3684,76.5034)) return true; else if(IsPlayerInRangeOfPoint(playerid, 20.0, 512.7349,-1104.1942,78.8238)) return true; else if(IsPlayerInRangeOfPoint(playerid, 20.0, 1283.7939,-806.5845,86.1230)) return true; else if(IsPlayerInRangeOfPoint(playerid, 20.0, 2531.6001,1568.4032,8.4171)) return true; else if(IsPlayerInRangeOfPoint(playerid, 60.0, 2105.2651,1916.6781,9.5989)) return true; else if(IsPlayerInRangeOfPoint(playerid, 150.0, -792.4582,2173.0356,40.0821)) return true; else if(IsPlayerInRangeOfPoint(playerid, 150.0, 1993.5868,1601.2623,9.2979)) return true; return false; } |
| |||
| |||