25.08.2015, 00:55
Minha callbeck estб assim:
Sу tem isso dentro, esse chat ae foi eu que coloquei porйm estб bugando com o antigo...
mas nгo sei onde se encontra o antigo jб que a callbeck OnPlayertext sу tem isso.
Ex na log:
PlayerXX(ID:0): Hello World. | NOVO
PlayerXX:Hello World | ANTIGO
Assim ele floda os 2 quando o cara fala algo.
PHP код:
// This callback gets called whenever a player uses the chat-box
public OnPlayerText(playerid, text[])
{
new rand = random(sizeof(title));
new rand2 = random(sizeof(id));
new rand3 = random(sizeof(message));
static name[MAX_PLAYER_NAME],string[128];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s%s %s(%d): %s%s",title[rand][0],name,id[rand2][0],playerid,message[rand3][0],text);
SendClientMessageToAll(-1, string);
return 1;
}
mas nгo sei onde se encontra o antigo jб que a callbeck OnPlayertext sу tem isso.
Ex na log:
PlayerXX(ID:0): Hello World. | NOVO
PlayerXX:Hello World | ANTIGO
Assim ele floda os 2 quando o cara fala algo.