09.02.2010, 15:42
Ok so for my trucking server I am making a CB radio command. I got it working but I would like to know how to make it so you can only use/hear it in a vehicle.
Command code:
Command code:
Код:
if(!strcmp(cmdtext, "/cb", true, 3)) { if(!cmdtext[3])return SendClientMessage(playerid, 0xFF9900AA, "USAGE: /cb [Text]"); new str[128]; GetPlayerName(playerid, str, sizeof(str)); format(str, sizeof(str), "*(CB Radio)%s: %s", str, cmdtext[4]); SendClientMessageToAll(0x9ACD32AA, str); return 1; }