SA-MP Forums Archive
Help MySql - 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)
+--- Thread: Help MySql (/showthread.php?tid=344618)



Help MySql - ColdRain - 21.05.2012

how i can get player IP and use it in

format(str,128,"unbanip %s", ?? )
SendRconCommand(str);


how ? please help


Re: Help MySql - ViniBorn - 21.05.2012

pawn Код:
new IP[16];
GetPlayerIp(playerid, IP, 16);
format(str,25,"unbanip %s", IP);
SendRconCommand(str);



Re: Help MySql - ColdRain - 21.05.2012

I forget to say that im using tmp

so i need to type /unban blalbal <--- that mean tmp not playerid if you give me useful code