[AJUDA] Text
#4

PHP Code:
public OnPlayerText(playeridtext[])
{
    new 
string[128], nomej[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnomejsizeof(nomej));
    switch(
Profissao[playerid])
    {
         case 
0format(stringsizeof(string),"[Civil] %s [%d] diz: %s"nomejplayeridtext);
         case 
.. 2format(stringsizeof(string),"[PolicialMilitar] %s [%d] diz: %s"nomejplayeridtext);
         case 
.. 4format(stringsizeof(string),"[ComandoVermelho] %s [%d] diz: %s"nomejplayeridtext);
         case 
.. 6format(stringsizeof(string),"[PCC] %s [%d] diz: %s"nomejplayeridtext);
         case 
.. 8format(stringsizeof(string),"[ADMIN] %s [%d] diz: %s"nomejplayeridtext);
         case 
.. 10format(stringsizeof(string),"[GrooveStreet] %s [%d] diz: %s"nomejplayeridtext);
    }
    for(new 
iMAX_PLAYERSi++) if(IsPlayerInRangeOfPoint(i10.0Pos[0], Pos[1], Pos[2])) SendClientMessage(i0x00FF00AAstring);
    
// Foreach й melhor, caso use a include, substitua o
    // for(new i; i < MAX_PLAYERS; i++)
    // por: foreach(Player, i)
    
return 0;

Reply


Messages In This Thread
[AJUDA] Text - by hurubuh - 13.03.2019, 19:03
Re: [AJUDA] Text - by AutoMatic2 - 13.03.2019, 20:15
Re: [AJUDA] Text - by hurubuh - 14.03.2019, 21:27
Re: [AJUDA] Text - by LeViNS - 20.03.2019, 20:03

Forum Jump:


Users browsing this thread: 1 Guest(s)