Commands for only player - 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: Commands for only player (
/showthread.php?tid=604892)
Commands for only player -
FinStar - 11.04.2016
Hello I need advice on how to make a statement to certain IP addresses? I think the list of IP addresses that they can use the command?
The condition for the IP lists
Код:
new ip[16];
GetPlayerIp(playerid, ip, sizeof(ip));
if(!strcmp(ip, "127.0.0.1")) //change 127.0.0.1 with the IP you wish to check against
{
//rest of command
}
Re: Commands for only player -
Luis- - 11.04.2016
Why not just use the IsPlayerAdmin value?
Re: Commands for only player -
FinStar - 11.04.2016
I do not want RCON password used by more people, I want just for me.
Re: Commands for only player -
HuntingMan - 11.04.2016
make with your name..
your only name that can use it...