[AJUDA] Rapidin
#1

Como faзo so pra quem esta perto ouvir esta mensagem?

PHP Code:
SendClientMessage(id0x0080C0AA"Voce Esta Sendo Abordado!"); 
Reply
#2

PHP Code:
new Float:xFloat:yFloat:z;
    
GetPlayerPos(playeridxyz);
for(new 
0MAX_PLAYERSi++)
    {
       if(
i==playerid)return true;
       if(
IsPlayerInRangeOfPoint(i20.0xyz))
       {
          
SendClientMessage(i, -1TExto);
          return 
true;
       }
    } 
Reply
#3

Quote:
Originally Posted by Don_Speed
View Post
PHP Code:
new Float:xFloat:yFloat:z;
    
GetPlayerPos(playeridxyz);
for(new 
0MAX_PLAYERSi++)
    {
       if(
i==playerid)return true;
       if(
IsPlayerInRangeOfPoint(i20.0xyz))
       {
          
SendClientMessage(i, -1TExto);
          return 
true;
       }
    } 
Pode aplicar isso neste comando?

PHP Code:
CMD:abordar(playeridparams[])
{
    if(
<= Profissao[playerid] <= 2)
    {
        new 
id;
        if(
sscanf(params,"u",id)) return SendClientMessage(playerid, -1"[PMESP] Use: /abordar [ID]");
        
SetPlayerSpecialAction(idSPECIAL_ACTION_CUFFED);
        new 
str[180], name[MAX_PLAYER_NAME];
        
GetPlayerName(id,  namesizeof(name));
        
format(strsizeof(str), "[PMESP] O Player %s Esta Sendo Abordado!"name);
        
SendClientMessageToAll(0xFF8040AAstr);
        
SendClientMessage(id0xFF8040AA"[PMESP] Voce Esta Sendo Abordado!");
    }
    else 
SendClientMessage(playerid0xFF0000AA"[PMESP]{FFFFFF} Voce Nao E Um Policia Militar!");
    return 
1;

Reply
#4

PHP Code:
CMD:abordar(playeridparams[])
{
    if(
Profissao[playerid] > 2) return SendClientMessage(playerid0xFF0000AA"[PMESP]{FFFFFF} Voce Nao E Um Policia Militar!");

    new 
id;
    if(
sscanf(params,"u",id)) return SendClientMessage(playerid, -1"[PMESP] Use: /abordar [ID]");

    
SetPlayerSpecialAction(idSPECIAL_ACTION_CUFFED);

    new 
str[180], name[MAX_PLAYER_NAME];
    
GetPlayerName(id,  namesizeof(name));

    new 
Float:xFloat:yFloat:z;
    
GetPlayerPos(playeridxyz);
    for(new 
0MAX_PLAYERSi++)
    {
       if(
i==playerid || == id)return true;
       if(
IsPlayerInRangeOfPoint(i20.0xyz))
       {
          
SendClientMessage(i0xFF8040AAstr);
          return 
true;
       }
    }

    
SendClientMessage(id0xFF8040AA"[PMESP] Voce Esta Sendo Abordado!");
    return 
1;

Reply
#5

Nгo faz muito sentido de quem ta perto ver essa mensagem mais tenta assim:

PHP Code:
new Float:Pos[3];
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
for(new 
iMAX_PLAYERSi++)
{
    if(
IsPlayerInRangeOfPoint(i10.0Pos[0], Pos[1], Pos[2]))
    {
        
SendClientMessage(i0xFF8040AA"[PMESP] Voce Esta Sendo Abordado!");
        break;
    }

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)