Help me plz
#1

Hi i want this flyhack send admins warn i do anything but not work i dont want ban player i want just send admin warn and if you have a flyhack detect in car plz give it too this not work on car

PHP код:
public OnPlayerUpdate(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(
>= 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 banned Reason: Flyhack");
    
Ban(playerid);
    for(new 
0MAX_PLAYERSi++)
    {
    if(
IsPlayerAdmin(i))
    {
    new 
string[100];
    new 
name[100];
    
format(string,sizeof(string),"%s has been banned Reason: Flyhack",GetPlayerName(playerid,name,sizeof(name)));
    
SendClientMessage(i,0xC30000FF,string);
    }
    }
    }
    return 
1;

Reply


Messages In This Thread
Help me plz - by keyvanik - 01.06.2016, 18:21
Re: Help me plz - by Sithis - 01.06.2016, 18:34
Re: Help me plz - by keyvanik - 01.06.2016, 20:22
Re: Help me plz - by Deroxi - 01.06.2016, 20:23
Re: Help me plz - by Dayrion - 01.06.2016, 22:55
Re: Help me plz - by Micko123 - 02.06.2016, 06:05

Forum Jump:


Users browsing this thread: 2 Guest(s)