endless
Ученик
PHP:
В OnPlayerUpdate(playerid)
if(!IsPlayerInAnyVehicle(playerid))
{
new animlib[32], animname[32];
new Float:posx, Float:posy, Float:posz;
GetPlayerPos(playerid, posx, posy, posz);
if(posz >= 2)
{
if(!PlayerToPoint(10.0,playerid,1280.3201,-774.7350,1082.1799) && !PlayerToPoint(15.0,playerid,194.7876,-1232.0527,76.5034) && !PlayerToPoint(40.0,playerid,1245.0590,-2374.2068,8.3145))
{
if(PlayerInfo[playerid][pAdmin] == 0)
{
if(GetPVarInt(playerid,"FlyHackTimer") < gettime())
{
if(SpeedVehicle(playerid) > 120 && strcmp(animlib, "SWIM", true) == 0 && strcmp(animname, "SWIM_crawl", true) == 0)
{
new STRname[255];
GetPlayerName(playerid,STRname,255);
GetPlayerName(playerid, plname, sizeof(plname));
format(string,sizeof(string),"<Warning> %s[%d]: Возможен Fly Hack",plname, playerid);
ABroadCast(0xFF0000AA, string, 1);
SetPVarInt(playerid,"FlyHackTimer", gettime()+120);
}
}
}
}
}
}
Последнее редактирование:
