help me with welcome text please :)
#1

Solved!
Reply
#2

Add this in the top of your gamemode.
pawn Код:
#define COLOR_YELLOW 0xFFFF00FF

add this to ''OnPlayerSpawn''

pawn Код:
string[128];
    format(string, sizeof string,"[SERVER] Welcome to SERVERNAME, Logged in as %s. (job:%s)", RPN(playerid), Job(playerid));
    SendClientMessage(playerid, COLOR_YELLOW, string);
Add this somewhere in your gamemode.
pawn Код:
stock RPN(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;
}
Jobname..

This is different for each gamemode.

Try this.

Add this somewhere in your gamemode.

pawn Код:
stock Job(playerid)
{
getpvarint(playerid,"job") //it will be the job id
}
Reply
#3

Thanks , + rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)