How to make range chat?
#1

I have some problems as always

First:

How can i make range chat

Ex: If they are near they can see the chat if they aren't they won't

Last one :

How can i erase the player markers Like RP servers


Thanks
Reply
#2

1.) Proximity chat: https://sampforum.blast.hk/showthread.php?tid=336052

2.) Removing the underscore when the player writes something - SSCANF is needed - (I believe this is what you want):

pawn Код:
stock RemoveUnderScore(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    for(new i = 0; i < MAX_PLAYER_NAME; i++)
    {
        if(name[i] == '_') name[i] = ' ';
    }
    return name;
}

//to call the function, use:

    RemoveUnderScore(playerid);

//common use would be:

public OnPlayerText(playerid, text[])
{
    RemoveUnderScore(playerid);
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)