[Pedido] gamemode inicial
#9

Minha callbeck estб assim:

PHP код:

// This callback gets called whenever a player uses the chat-box
public OnPlayerText(playeridtext[])
{
    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(-1string);
    return 
1;

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.
Reply


Messages In This Thread
gamemode inicial - by Izaque1998 - 23.08.2015, 17:20
Re: gamemode inicial - by Holl - 23.08.2015, 18:05
Re: gamemode inicial - by ExPLORE - 23.08.2015, 18:35
Re: gamemode inicial - by matheusspohr - 24.08.2015, 15:30
Re: gamemode inicial - by Izaque1998 - 24.08.2015, 21:58
Re: gamemode inicial - by matheusspohr - 25.08.2015, 00:25
Re: gamemode inicial - by Izaque1998 - 25.08.2015, 00:47
Re: gamemode inicial - by matheusspohr - 25.08.2015, 00:52
Re: gamemode inicial - by Izaque1998 - 25.08.2015, 00:55
Re: gamemode inicial - by Holl - 25.08.2015, 03:28

Forum Jump:


Users browsing this thread: 1 Guest(s)