Send a message to all players with the same skin
#2

PHP код:
if(!strcmp(cmdtext"/radio"true))
{
    if(
IsPlayerConnected(playerid))
    {
        if(!(
GetPlayerSkin(playerid) == 61))
            return 
SendClientMessage(playerid, -1"You are not a pilot !");
        
#if !defined string
            
new string[128];
        
#endif
        #if !defined pName
            
new pName[MAX_PLAYER_NAME];
        
#endif
        
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
        
format(string128"[Pilot %s]: %s"pNamecmdtext[6]);
        for(new 
0MAX_PLAYERSi++)
            if(
GetPlayerSkin(i) == 61// this checks IsPlayerConnected too
                
SendClientMessage(i0xFF000000string);
    }
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)