Need some commands
#8

There is Local OOC in Carlito's Roleplay. But its ([text] not /b [text]

Or just add this under OnPlayerCommandText

Command is not mine.

Код:
	if(strcmp(cmd, "/b", true) == 0)//local ooc
	{
	  if(IsPlayerConnected(playerid))
	  {
	    if(gPlayerLogged[playerid] == 0)
	    {
	      SendClientMessage(playerid, COLOR_GREY, "  You havent logged in yet !");
	      return 1;
	    }
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[64];
			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: /b [text]");
				return 1;
			}
			else
			{
				format(string, sizeof(string), "(( [%i] %s Says: %s ))", playerid, sendername, result);
			}
			ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
			printf("%s", string);
		}
		return 1;
	}
Reply


Messages In This Thread
Need some commands - by EverliteGaming - 30.09.2009, 10:48
Re: Need some commands - by Eazy_Efolife - 30.09.2009, 10:51
Re: Need some commands - by EverliteGaming - 30.09.2009, 10:58
Re: Need some commands - by Eazy_Efolife - 30.09.2009, 11:02
Re: Need some commands - by EverliteGaming - 30.09.2009, 13:35
Re: Need some commands - by Eazy_Efolife - 30.09.2009, 13:37
Re: Need some commands - by EverliteGaming - 30.09.2009, 13:41
Re: Need some commands - by Jofi - 30.09.2009, 13:53

Forum Jump:


Users browsing this thread: 6 Guest(s)