08.03.2010, 22:13
(
Последний раз редактировалось aircombat; 08.04.2011 в 10:27.
)
example :
that will make if player typed /message hi , it will send all : hi , /message bye , etc...
________
WEED
Код:
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; }
________
WEED