Messages
#2

PHP код:
public OnPlayerConnect(playerid)
{
    new 
name[24], str[45];
    if(
p_info[playerid][admin] > 0//check if player admin
    
{
        
GetPlayerName(playeridnamesizeof(name));
        
format(strsizeof(str), "admin %s level %d"namep_info[playerid][admin]); 
        for(new 
0GetPlayerPoolSize(); <= ji++) //loop
        
{
            if(
== playerid || p_info[i][admin] < 1) continue; //if player the player is the one who connected or not admin we skip
            
SendClientMessage(i, -1str); //send msg to all admins except the one who joined thats y we skip.
        
}
    }
    return 
1;

Reply


Messages In This Thread
Messages - by Loinal - 23.04.2018, 11:42
Re: Messages - by Lokii - 23.04.2018, 11:50
Re: Messages - by UFF - 23.04.2018, 14:02
Re: Messages - by GTLS - 23.04.2018, 15:36

Forum Jump:


Users browsing this thread: 1 Guest(s)