02.03.2009, 21:17
Quote:
Originally Posted by Rks_
or just do a simple thing at onplayertext like:
if(text[0] == ',') { if (gTeam[playerid] == TEAM_ITALIAN) { new String[128],pname[MAX_PLAYER_NAME]; GetPlayerName(playerid,pname,sizeof(pname)); format(String, 128, "[ITALIAN] %s(%d): %s", pname, playerid, text[1]); for(new i = 0; i < MAX_PLAYERS; i ++) { if (gTeam[i] == TEAM_ITALIAN) { SendClientMessage(i, COLOR_COLOR, String); } } } else { SendClientMessage(playerid, COLOR_COLOR, "* You are not an Italiano."); } return 0; } |
Quote:
Originally Posted by Rks_
or just do a simple thing at onplayertext like:
if(text[0] == '!') { if (gTeam[playerid] == TEAM_ITALIAN) { new String[128],pname[MAX_PLAYER_NAME]; GetPlayerName(playerid,pname,sizeof(pname)); format(String, 128, "[ITALIAN] %s(%d): %s", pname, playerid, text[1]); for(new i = 0; i < MAX_PLAYERS; i ++) { if (gTeam[i] == TEAM_ITALIAN) { SendClientMessage(i, COLOR_COLOR, String); } } } else { SendClientMessage(playerid, COLOR_COLOR, "* You are not an Italiano."); } return 0; } |
I hope you get i now