Care ma ajuta sa fac comanda asta in ZCMD NU imi iese )) CMD:lasercol(playerid,params[]) {
new tmp[256];
tmp = strtok(cmdtext, idx);
if (!strlen(tmp)) {
SendClientMessage(playerid, 0x00E800FF, "Usage: /lasercol [color]");
return 1;
}
if (!strcmp(tmp, "red", true)) SetPVarInt(playerid, "color", 18643);
else if (!strcmp(tmp, "blue", true)) SetPVarInt(playerid, "color", 19080);
else if (!strcmp(tmp, "pink", true)) SetPVarInt(playerid, "color", 19081);
else if (!strcmp(tmp, "orange", true)) SetPVarInt(playerid, "color", 19082);
else if (!strcmp(tmp, "green", true)) SetPVarInt(playerid, "color", 19083);
else if (!strcmp(tmp, "yellow", true)) SetPVarInt(playerid, "color", 19084);
else SendClientMessage(playerid, 0x00E800FF, "Colour not available!");
return 1;
}