Portable Radio problem
#1

Hello everyone I need help with this script:


Код:
CMD:r(playerid,params[])
{
	if(pDB[playerid][pDarbas] == 0) return SendClientMessage(playerid,-1,"{ff0000}Jūs neturite racijos!");
	new tekstas [ 512 ], str [ 512 ];
	if(sscanf(params,"s[512]",tekstas)) return SendClientMessage(playerid,-1,"{ff6600}[ NAUDOJIMAS ]: {ffffff}/r [ tekstas ] ");
	for(new i = 0; i < MAX_PLAYERS; i ++)
	{
		if(pDB[i][pDarbas]== 1)
		{
		    format(str,sizeof(str),"{0066FF}[ Policijos racija ] {cccccc}%s: {ffffff}%s",pName(playerid),tekstas);
			SendClientMessage(i,-1,str);
		}
		if(pDB[i][pDarbas]== 2)
		{
		    format(str,sizeof(str),"{0066FF}[ Medikų racija ] {cccccc}%s: {ffffff}%s",pName(playerid),tekstas);
			SendClientMessage(i,-1,str);
		}
		if(pDB[i][pDarbas]== 3)
		{
		    format(str,sizeof(str),"{0066FF}[ Mechanikų racija ] {cccccc}%s: {ffffff}%s",pName(playerid),tekstas);
			SendClientMessage(i,-1,str);
		}
		if(pDB[i][pDarbas]== 4)
		{
		    format(str,sizeof(str),"{0066FF}[ Taksi racija ] {cccccc}%s: {ffffff}%s",pName(playerid),tekstas);
			SendClientMessage(i,-1,str);
		}
		if(pDB[i][pDarbas]== 5)
		{
		    format(str,sizeof(str),"{0066FF}[ Dylerių racija ] {cccccc}%s: {ffffff}%s",pName(playerid),tekstas);
			SendClientMessage(i,-1,str);
		}
		if(pDB[i][pDarbas]== 6)
		{
		    format(str,sizeof(str),"{0066FF}[ Fūristų racija ] {cccccc}%s: {ffffff}%s",pName(playerid),tekstas);
			SendClientMessage(i,-1,str);
		}
		if(pDB[i][pDarbas]== 7)
		{
		    format(str,sizeof(str),"{0066FF}[ Armijos racija ] {cccccc}%s: {ffffff}%s",pName(playerid),tekstas);
			SendClientMessage(i,-1,str);
		}
		if(pDB[i][pDarbas]== 9)
		{
		    format(str,sizeof(str),"{0066FF}[ Kurjerių racija ] {cccccc}%s: {ffffff}%s",pName(playerid),tekstas);
			SendClientMessage(i,-1,str);
		}
	}
	return 1;
}
It's from a grp server, and when you chat in /r other jobs see the message too how do you fix it?

P.S: I'm using ZCMD
Reply


Messages In This Thread
Portable Radio problem - by LTUStance - 11.05.2014, 11:53
Re: Portable Radio problem - by LTUStance - 14.05.2014, 19:05
Re: Portable Radio problem - by Hwang - 15.05.2014, 12:26
Re: Portable Radio problem - by LTUStance - 19.05.2014, 16:20

Forum Jump:


Users browsing this thread: 1 Guest(s)