SA-MP Forums Archive
Were Do I Put It - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Were Do I Put It (/showthread.php?tid=257894)



Were Do I Put It - Shoaib - 28.05.2011

Quote:

public OnPlayerConnect(playerid)
{
new IP[20];
GetPlayerIp(playerid,IP,sizeof(IP));
new IPPart[4];
sscanf(IP,"p<.>dddd",IPPart[0],IPPart[1],IPPart[2],IPPart[3]);
if(IPPart[0]==&& IPPart[1]==)
{
SendClientMessage(playerid,0xff3333ff,"You Are Banned Qatar Hacker I Told You Just Make A New Account Apply For Admin Sorry George!");
Ban(playerid);
return 1;
}

were do i put the hacker ip?


Re: Were Do I Put It - Biesmen - 28.05.2011

I don't get your script, it's totally bugged.
And what do you mean?


Re: Were Do I Put It - Shoaib - 28.05.2011

It Aint Bugged I Just Forgot Were To Put The Ip Numbers Babul Made It And He Did It And Worked But I Fuked It By Accident


Re: Were Do I Put It - Biesmen - 28.05.2011

pawn Код:
public OnPlayerConnect(playerid)
{
    new IP[20];
    GetPlayerIp(playerid,IP,sizeof(IP));
    new IPPart[4];
    sscanf(IP,"p<.>dddd",IPPart[0],IPPart[1],IPPart[2],IPPart[3]);
    if(IPPart[0] == 127 && IPPart[1] == 0)
    {
        SendClientMessage(playerid,0xff3333ff,"You Are Banned Qatar Hacker I Told You Just Make A New Account Apply For Admin Sorry George!");
        Ban(playerid);
    }
return 1;
}
Check where 127 and 0 is, replace that with the IP of your choice.


Re: Were Do I Put It - cs_master - 28.05.2011

i vote for this not for ur coz 13 buged detected simply
Quote:
Originally Posted by Biesmen
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
    new IP[20];
    GetPlayerIp(playerid,IP,sizeof(IP));
    new IPPart[4];
    sscanf(IP,"p<.>dddd",IPPart[0],IPPart[1],IPPart[2],IPPart[3]);
    if(IPPart[0] == 127 && IPPart[1] == 0)
    {
        SendClientMessage(playerid,0xff3333ff,"You Are Banned Qatar Hacker I Told You Just Make A New Account Apply For Admin Sorry George!");
        Ban(playerid);
    }
return 1;
}
Check where 127 and 0 is, replace that with the IP of your choice.



Re: Were Do I Put It - Shoaib - 28.05.2011

Thanks