Jump to content

[REZOLVAT] Ajutor


Dealing
 Share

Recommended Posts

  • 1 month later...

Salut, uite asa: 
Astea sunt niste stock-uri, le pui oriunde in gamemode dar inaintea public-ului OnPlayerText

Quote
Quote

 

stock SendNearbyMessage(playerid, color, Float:distance, const text[], va_args<>) 
{
    format(gString, sizeof(gString), text, va_start<4>);
    GetPlayerPos(playerid, PosX, PosY, PosZ);

    foreach(new x : Player) 
    {
        if(GetPlayerInterior(x) == GetPlayerInterior(playerid) && GetPlayerVirtualWorld(x) == GetPlayerVirtualWorld(playerid)) 
        {
            if(GetPlayerDistanceFromPoint(x,PosX,PosY,PosZ) <= distance) 
            {
                SCM(x, color, gString);
            }
        }
    }
    return true;
}

stock GetName(playerid) 
{
    new name[20];
    GetPlayerName(playerid, name, sizeof(name));
    return name;
}

 

Astea le pui la OnPlayerText:
 

Quote

SendNearbyMessage(playerid, -1, 15.0, "%s: {FFFFFF}%s", GetName(playerid), text); 
SetPlayerChatBubble(playerid, text, -1, 15.0, 8000); 


Sper ca te-am ajutat. 

Link to comment
Share on other sites

  • 2 months later...
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...