/say command help
#1

I have this command And I want to convert it to ZCMD

Can any one help me


Код HTML:
		if(strcmp(cmd, "/say", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if (PlayerInfo[playerid][pAdmin] >= 3)
			{
			   GetPlayerName(playerid, sendername, sizeof(sendername));
			   new length = strlen(cmdtext);
			   while ((idx < length) && (cmdtext[idx] <= ' '))
			   {
				   idx++;
			   }
			   new offset = idx;
			   new result[800];
			   while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			   {
				   result[idx - offset] = cmdtext[idx];
				   idx++;
			   }
			   result[idx - offset] = EOS;
			   if(!strlen(result))
			   {
				   SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/say [message]");
				   return 1;
			   }
			   format(string, sizeof(string), "Admin: %s",result);
			   OOCNews(0x3399FFAA,string);
			}
			else
			{
			   SendClientMessage(playerid, COLOR_WHITE,"You cant use this command");
			   return 1;
			}
		}
		return 1;
	}
Reply


Messages In This Thread
/say command help - by aboa - 14.10.2012, 15:38
Re: /say command help - by aboa - 14.10.2012, 15:40
Re : /say command help - by lelemaster - 14.10.2012, 15:41
Re: /say command help - by aboa - 14.10.2012, 15:45
Re: /say command help - by Lordzy - 14.10.2012, 15:45
Re: /say command help - by Windrush - 14.10.2012, 15:46
Re: /say command help - by aboa - 14.10.2012, 15:47
Re: /say command help - by aboa - 14.10.2012, 15:49

Forum Jump:


Users browsing this thread: 2 Guest(s)