Little help About groups.
#2

So, if I understood the thread, you want people in the same alliance to be on the same "frequency"? For that, you could do something like this:

PHP код:
new Group_Name MAX_PLAYERS ] [ MAX_PLAYER_NAME ] ;
new 
Alliance_ID MAX_PLAYERS char ] ;
SharedFrequency playeridtext [ ] ) {
    new 
string 256 ] ;
    
// Loop through players
    
foreach (new iPlayer) {
        
// If the alliance ID matches that with another player...
        
if ( Alliance_ID playerid } ==  Alliance_ID } ) {
        
            
// Format the text to be sent to them showing the group name and text
            
format stringsizeof ( string ), "[%s]: %s "Group_Name playerid ], text);
            
SendClientMessage i, -1string ) ; // And send it
        
}
    }
    return 
true ;

Reply


Messages In This Thread
Little help About groups. - by ThatFag - 27.10.2016, 14:06
Re: Little help About groups. - by Dignity - 27.10.2016, 14:23
Re: Little help About groups. - by HoangNam - 27.10.2016, 14:25
Re: Little help About groups. - by ThatFag - 27.10.2016, 14:31
Re: Little help About groups. - by Dignity - 27.10.2016, 14:32

Forum Jump:


Users browsing this thread: 1 Guest(s)