30.06.2011, 06:39
Hy. How can i use sub commands in zcmd?
Like
Thanks for helping!
Like
Код:
if(strcmp(cmd, "/check", true) == 0) { if(IsPlayerConnected(playerid)) { new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /check [what]"); SendClientMessage(playerid, COLOR_WHITE, "Can be checked : smthing, car etc."); return 1; } if(strcmp(x_nr,"car",true) == 0 || strcmp(x_nr,"kar",true) == 0)