[Ajuda] me ajuda na function
#5

Quote:
Originally Posted by zPain
Посмотреть сообщение
Poste a funзгo.
PHP код:
function Anti_Update(i)
{
    if(
GetPlayerAmmo(i) >= 400)
    {
        new 
reason[128] = "Ammo Hack";
        new 
stringg[128];
        
format(stringgsizeof(stringg),"%s is banned for "COL_RED"(Ammo Hack) ID: %d!"gpInfo[i][pname23], i);
        
SendMessageToAllAdmins(stringg,-1);
        new 
bquery[200], IP[16];
        
GetPlayerIp(iIP16);
        
mysql_format(bandbbquerysizeof(bquery),"INSERT INTO bandata(admin, player, reason, IP, banned) VALUES('ANTICHEAT', '%e', '%e','%s', 1)"PlayerName(i), reasonIP);
        
mysql_tquery(bandbbquery"OnPlayerBanned""dds", -1ireason);
        
ShowPlayerDialog(idialogbanDIALOG_STYLE_MSGBOX"NOTIFICATION""You are {FF0000}banned {FFFFFF}from the server , \nplease go to sampdayz.com/forum to make an unban appeal""""");
        
Kick(i);
    } 
Reply


Messages In This Thread
me ajuda na function - by DKDarkking - 20.12.2015, 19:25
Re: me ajuda na function - by zPain - 20.12.2015, 19:27
Re: me ajuda na function - by DKDarkking - 20.12.2015, 19:32
Re: me ajuda na function - by zPain - 20.12.2015, 19:53
Re: me ajuda na function - by DKDarkking - 20.12.2015, 20:37
Re: me ajuda na function - by arakuta - 20.12.2015, 20:40

Forum Jump:


Users browsing this thread: 1 Guest(s)