22.12.2009, 12:00
Hello there, I made a custom command for a CB Radio. How can I make it available for only certain vehicle ID's, such as Roadtrain and Linerunner?
And why does it come up with SERVER: Unknown command when I do /cb message? When I type /cb, it works, it comes up, but no /cb [text]
Help would be appreciated, here is the code:
Thanks and Regards
Puzi
And why does it come up with SERVER: Unknown command when I do /cb message? When I type /cb, it works, it comes up, but no /cb [text]
Help would be appreciated, here is the code:
Код:
if(!strcmp(cmdtext, "/cb", true, 4)) // 3 is the length of /cb { if(!cmdtext[3]) return SendClientMessage(playerid, COLOR_GREY, "UŻYCIE: /cb [wiadomosc]"); new string[128], name[16]; GetPlayerName(playerid, name, sizeof(name)); format(string, 128, "*** CB RADIO ~~ %s mуwi: %s", name, cmdtext[4]); SendClientMessageToAll(FIOLETOWY, string); return 1; }
Puzi