19.04.2013, 16:05
Quote:
Here you go
Код:
CMD:test(playerid, params[]) { if(isnull(params)) { SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /test (1 - 3)"); return 1; } if(strcmp(params, "1", true) { SendClientMessage(playerid, COLOR_RED, "This is /test 1"); } if(strcmp(params, "3", true) { SendClientMessage(playerid, COLOR_RED, "This is /test 2"); } if(strcmp(params, "4", true) { SendClientMessage(playerid, COLOR_RED, "This is /test 3"); } } |
For the record, I am using sscanf and ZCMD.