Crazyboobs (ID): chat |
public OnPlayerText(playerid, text[]){
new
msg[128],
tPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, tPlayerName, MAX_PLAYER_NAME);
format(msg, sizeof(msg), "%s (%d): {FFFFFF}%s", tPlayerName, playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid), msg);
static pText[MAX_PLAYERS][128];
if(pText[playerid][0] != '\0' && !strcmp(text,pText[playerid],true)) return SendClientMessage(playerid,-1,"* Stop repeating!") & 0;
strcat((pText[playerid][0]='\0',pText[playerid]),text,128);
return 1;}
Crazyboobs (ID): chat |
public OnPlayerText(playerid, text[])
{
new msg[128],tPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, tPlayerName, MAX_PLAYER_NAME);
format(msg, sizeof(msg), "%s (%d): {FFFFFF}%s", tPlayerName, playerid, text);
static pText[MAX_PLAYERS][128];
if(pText[playerid][0] != '\0' && !strcmp(text,pText[playerid],true)) return SendClientMessage(playerid,-1,"* Stop repeating!") & 0;
strcat((pText[playerid][0]='\0',pText[playerid]),text,128);
SendClientMessageToAll(GetPlayerColor(playerid), msg);
return 0;
}