Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

admin and player

$
0
0
hello , can someone help me to settings , Join Message For My Server?

here is onplayerconnect message

PHP Code:

    new connectstr[128];
    
format(connectstrsizeof(connectstr), "* %s (%d) Has Joined The Server.",pNick(playerid),playerid);
    
SendClientMessageToAll(COLOR_DEADconnectstr); 

i want to edit it ,, if online players are admins ,, then show his ip addres if they are not show the same message

PHP Code:

    new connectstr[128];
    
format(connectstrsizeof(connectstr), "* %s (%d) Has Joined The Server -  IP: %s.",pNick(playerid),playerid,ip);
    
SendClientMessageToAll(COLOR_DEADconnectstr); 

here is my admin settings

Quote:

if(PlayerInfo[playerid][pAdmin] < 1)
{

//add code
}

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>