Buyhouse/licenses/food/weapons in 1 command /buy
#2

example :
Код:
if(strcmp(cmd,"/message",true)==0) {
	        new x_message[256];
			x_message = strtok(cmdtext, idx);
			if(!strlen(x_message)) {
				SendClientMessage(playerid, COLOR_WHITE, "USAGE: /message (hello,hi,bye)");
				return 1;
	            }
       if(strcmp(x_message,"hello",true) == 0)
       {
       SendClientMessageToAll(COLOR_WHITE, "Hello");
       }
       if(strcmp(x_message,"hi",true) == 0)
       {
       SendClientMessageToAll(COLOR_WHITE, "hi");
       }
       if(strcmp(x_message,"bye",true) == 0)
       {
       SendClientMessageToAll(COLOR_WHITE, "bye");
       }
return 1;
}
that will make if player typed /message hi , it will send all : hi , /message bye , etc...

________
WEED
Reply


Messages In This Thread
Buyhouse/licenses/food/weapons in 1 command /buy - by sjvt - 08.03.2010, 19:37
Re: Buyhouse/licenses/food/weapons in 1 command /buy - by aircombat - 08.03.2010, 22:13
Re: Buyhouse/licenses/food/weapons in 1 command /buy - by sjvt - 09.03.2010, 13:05
Re: Buyhouse/licenses/food/weapons in 1 command /buy - by sjvt - 09.03.2010, 20:15

Forum Jump:


Users browsing this thread: 3 Guest(s)