05.02.2010, 22:15
Hey guys. I have a radio cmd but nothing happends when I do /r text
Can someone fix this script for me or tell me what I have to do please?
Kind regards, bart
Код:
if (strcmp("/r", cmdtext, true, 2) == 0) { new str[128], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,sizeof(pName)); format(str,sizeof(str) , "[Radio] (%s): %s",pName, cmdtext [ 3 ] ); for(new loopplayers = 0; loopplayers<MAX_PLAYERS; loopplayers ++) { if(IsPlayerConnected(loopplayers)) { if (GetPlayerColor(playerid) == GetPlayerColor(loopplayers)) { SendClientMessage(loopplayers,0xFF0000AA,str); // red } } } return 1; }
Kind regards, bart