Help in an /r cmd. Not working as it should.
#5

PHP код:
forward SendLAWMessage(color,const string[]);
public 
SendLAWMessage(color,const string[])
{
    for(new 
0MAX_PLAYERSi++)
    {
    if(
IsPlayerConnected(i) == 1)
    if(
PlayerInfo[i][Fmember] < || PlayerInfo[i][Fleader] < 1)
    
SendClientMessage(iTEAM_RADIO_COLOR,string);
    }
    return 
1;
}
CMD:rplayeridparams[ ] )
{
    if(
PlayerInfo[i][Fmember] < || PlayerInfo[i][Fleader] < 1)) return 0;
    new 
string[258];
    if( 
sscanf(params,"u"string ) ) return SendClientMessage(playeridCOLOR_RED"USAGE: /r [Text]");
                new 
name[MAX_PLAYER_NAME], string[258];
                
GetPlayerName(playeridnamesizeof(name));
                
format(stringsizeof(string), "%s (radio): %s , Over."nameparams);
    
SendLAWMessage(TEAM_RADIO_COLORstring);
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)