09.02.2010, 19:03
Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || (GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)) { 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); } else SendClientMessage(playerid, 0x9ACD32AA,"This command can only be used inside a vehicle.");