Need help for radio script[walkie-talkie]
#1

I tried to do this script for my RP server.But i couldnt do it.I searched it in forum but i couldnt find any . I need your help... I have a radio script but its too simple. I want that when someone talked by using /r command others who is near him must hear what did he say. Also i want a command to close or open radio.If you help me i will be really happy. If you have ready script please share it

Note: Sorry for my bad English. I hope you will understand me
Reply
#2

I really need help about that. Please help me
Reply
#3

Sorry for double posting but i really need help about that
Reply
#4

Ok, well use
OnPlayerText.
Here's an example..

Код:
public OnPlayerText(playerid, text[])
{
	new string[128];
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, name, MAX_PLAYER_NAME);
	if(text[0] == '+')
	{
		format(string,sizeof(string),"RADIO %s: %s",name,text[1]);
		SendClientMessageToAll(grey,string);
		return 0;
	}
	return 1;
}
Also, be patient, and dont double post =]
Reply
#5

Quote:
Originally Posted by NoxY
Ok, well use
OnPlayerText.
Here's an example..

Код:
public OnPlayerText(playerid, text[])
{
	new string[128];
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, name, MAX_PLAYER_NAME);
	if(text[0] == '+')
	{
		format(string,sizeof(string),"RADIO %s: %s",name,text[1]);
		SendClientMessageToAll(grey,string);
		return 0;
	}
	return 1;
}
Also, be patient, and dont double post =]
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)