[VORTEX GM] How to change local OOC chat.
#3

Well whenever I try to do best I can like,

Код:
command( (, playerid, params[])
{
	new Message[128], string[128];
	if(sscanf(params, "z", Message))
	{
		SendClientMessage(playerid, WHITE, "SYNTAX: /b [message]");
	}
	else
	{
	    if(strlen(Message) < 1 || !IsPlayerConnectedEx(playerid))
	    {
	        return 1;
	    }
	    else
	    {
	        if(Player[playerid][PrisonID] == 1)
	        {
				SendClientMessage(playerid, WHITE, "You may not use this channel right now.");
	        }
	        else
	        {
		    	format(string, sizeof(string), "%s says: ((%s)) ", GetName(playerid), Message);
				NearByMessage(playerid, WHITE, string);
			}
		}
	}
	return 1;
}
or

Код:
command:(, (playerid, params[])
{
	new Message[128], string[128];
	if(sscanf(params, "z", Message))
	{
		SendClientMessage(playerid, WHITE, "SYNTAX: /b [message]");
	}
	else
	{
	    if(strlen(Message) < 1 || !IsPlayerConnectedEx(playerid))
	    {
	        return 1;
	    }
	    else
	    {
	        if(Player[playerid][PrisonID] == 1)
	        {
				SendClientMessage(playerid, WHITE, "You may not use this channel right now.");
	        }
	        else
	        {
		    	format(string, sizeof(string), "%s says: ((%s)) ", GetName(playerid), Message);
				NearByMessage(playerid, WHITE, string);
			}
		}
	}
	return 1;
}
it fails
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)