28.10.2012, 13:08
Using this
https://sampforum.blast.hk/showthread.php?tid=373687
Isn't working, after editing to to mine
someone?
https://sampforum.blast.hk/showthread.php?tid=373687
Isn't working, after editing to to mine
PHP код:
public OnPlayerUpdate(playerid)
{
WantedLevelColor(playerid);
if(GetPlayerAnimationIndex(playerid))
{
new animlib[32];
new animname[32];
GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,animname,32);
if(strcmp(animlib, "SWIM", true) == 0)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
if(Z >= 8.45)
{
if(!IsPlayerInRangeOfPoint(playerid,37.85,1964.0404,-1199.6774,17.4400))
{
dives[playerid] = 1;
}
}
}
GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,animname,32);
if(strcmp(animname, "FALL_FALL", true) == 0)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
SetPVarFloat(playerid,"Float",Z);
SetTimer("Checkhim",1200,false);
}
}
new index = GetPlayerAnimationIndex(playerid);
if(index >= 958 && index <= 962)
{
if(GetPlayerWeapon(playerid) != 46)
{
dives[playerid] = 1;
}
}
if(dives[playerid] == 1)
{
//SendClientMessage(playerid,0xC30000FF,"You are kicked Reason: Flyhack");
//Kick(playerid);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerAdmin(i))
{
new pname[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(i, pname, sizeof(pname));
format(string,sizeof(string),"***[ANTI CHEAT] %s(%d) has been banned from the server. (Reason: Fly Hack)",pname,i);
SendClientMessageToAll(COLOR_PINK,string);
PlayerInfo[i][pABanned] =1;
GameTextForPlayer(i, "~r~BANNED",1000000,4);
Kick(i);
GetPlayerName(i, pname, sizeof(pname));
format(string,sizeof(string),"***[ANTI CHEAT] %s(%d) has been banned from the server. (Reason: Fly Hack)",pname,i);
IRC_GroupSay(groupID,IRC_CHANNEL,string);
IRC_GroupSay(groupID,ADMIN_CHANNEL,string);
GetPlayerName(i,pname,MAX_PLAYER_NAME);
format(string,sizeof(string),"***[ANTI CHEAT] An %s(%d) has Anti-banned %s(%d). (Reason: Fly Hack)",pname,i);
SendAdminMessage(COLOR_PINK, string);
new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid,X,Y,Z);
PlayerPlaySound(playerid,1057,X,Y,Z);
PlayerPlaySound(playerid,1057,X,Y,Z);
}
}
}
//Other on player update stuff