SA-MP Forums Archive
help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help (/showthread.php?tid=119698)



help - Aram555 - 09.01.2010

How to make:
/hi id
>> ' Nick ' Welcomes the player ' Nick'

/bb id
>>'Nick' bb 'Nick'



Re: help - [WSM]Deadly_Evil - 09.01.2010

uhm...You can have like this:
Код:
	if(!strcmp(cmd, "/hi",true) || !strcmp(cmd, "/hey",true))
	{
		new dir[256];
		dir = strtok(cmdtext, idx);
		strmid(tmp, cmdtext, 4, strlen(cmdtext));
		if(!strlen(dir))
		{
			SendClientMessage(playerid,COLOR_PINK,"[USAGE]> /hi [Message]");
			return 1;
		}
		dir = strtok(cmdtext, idx);
		new string[128];
		GetPlayerName(playerid, sendername, sizeof(sendername));
		format(string, sizeof(string), "*** %s %s Say you Hi!! ", sendername, tmp);
		SendClientMessageToAll(COLOR_WHITE,string);
		print(string);
		return 1;
	}



Re: help - Aram555 - 09.01.2010

Separately how to make?