Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerText(playerid, text[])
- {
- if(text[0] == ';')
- {
- new string[128]; GetPlayerName(playerid, string, sizeof(string));
- format(string, sizeof(string), "*Teamchat de %s: %s", string, text[1]);
- printf("%s", string);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, GetPlayerColor(playerid), string);
- }
- return 0;
- }
- new i, j;
- while((j = text[ i]))text[i++] = ((((j) > 0x40 && (j) <= 0x5A) || ((j) > 0xBF && (j) <= 0xDD)) ? ((j) | 0x20) : (j));
- new text2[256];
- format(text2, sizeof(text2), "[%i] %s", playerid, text);
- SendPlayerMessageToAll(playerid, text2);
- return 0;
- }
Add Comment
Please, Sign In to add comment