31.01.2010, 16:55
Weird, but if thats the case (and you did it correct) try:
Код:
if(!strcmp(cmd, "/r", true, 2)) { new str[128],pName[MAX_PLAYER_NAME]; strtok(cmdtext,idx); tmp=strtok(cmdtext,idx); GetPlayerName(playerid,pName,sizeof(pName)); format(str,sizeof(str),"[Team Radio] (%s): %s",pName,tmp); for(new i = 0; i < MAX_PLAYERS; i++) { if(gTeam[i] == gTeam[playerid]) { SendClientMessage(i,lightblue,str); return 1; } } }