Need some help
#2

I have a radio system which uses something similar to what you want.
The person who executes the code will see a blue radio message, and the persons next to him will see it in a orange rp message.
I hope this helped you:

PHP код:
            for(new a=0;a<MAX_PLAYERS;a++)
            if(
PlayerInfo[a][LawDuty]>=1// This means if players are on law enforcement duty. you got to change this.
            
{
                
SendClientMessage(a,BLUE,str); // send message to the player who executes the script.
            
}
            new 
Float:xFloat:yFloat:zstring[100]; // self explenary
            
GetPlayerPos(playeridxyz); // same as above
            
for(new i=0i<GetMaxPlayers(); i++) // loop trough players
            
{
                if(
IsPlayerInRangeOfPoint(i20.00xyz)) // ifplayer is in range of the person who executed the script.
                
{
                    
format(string,sizeof(string),"%s(%i) (radio): %s",PlayerName(playerid),playerid,text);
                      if(
PlayerInfo[i][LawDuty]==0// when the person is not on Law Enforcement duty, he will get a orange rp message
                    
{
                        
SendClientMessage(iORANGEstring);
                    }
                }
            } 
Note: This will not completely work for you. edit it.
Reply


Messages In This Thread
Need some help - by xLucy - 12.02.2018, 11:38
Re: Need some help - by jasperschellekens - 12.02.2018, 11:55
Re: Need some help - by RogueDrifter - 12.02.2018, 11:59

Forum Jump:


Users browsing this thread: 1 Guest(s)