29.05.2016, 01:10
I need 2 commands that will have multi parameters(?) but I am lost and don't know where to start
First command would be an animation command. Instead of having two different commands, I'd like one command with multiple options; /reload [1-2] etc.
Second command would be a teleport command. Allowing me to use 'goto' and entering the pos. name to teleport there. E.G: /goto SF, /goto LS, /goto LV... etc.
First command would be an animation command. Instead of having two different commands, I'd like one command with multiple options; /reload [1-2] etc.
Код:
else if(strcmp(cmdtext, "/reload", true) == 0) { ApplyAnimation(playerid, "SILENCED", "Silence_reload", 3.0, 0, 0, 0, 0, 0); return 1; } else if(strcmp(cmdtext, "/reload2", true) == 0) { ApplyAnimation(playerid, "RIFLE", "RIFLE_load", 3.0, 0, 0, 0, 0, 0); return 1; }
Код:
CMD:goto(playerid, params[]) { SetPlayerPos(playerid, -1855.73853, -1692.89526, 42.66900); return 1; }