- 0
Problem command zcmd
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Ryder_RO
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; }1 answer to this question
Recommended Posts