Admin name Color
#1

Hello, I was playing around with parameters,

PHP код:
CMD:sendtols(playeridparams[])
{
    new 
sendtolsplayerid;
    if(
sscanf(params"u"sendtolsplayerid))
    {
        return 
SendClientMessage(playeridCOLOR_RED"Usage: /sendtols [Playerid]");
    }
    if(
sendtolsplayerid == INVALID_PLAYER_ID)
    {
        return 
SendClientMessage(playeridCOLOR_RED"You entered Invalid Player ID");
    }
    else
    {
        new 
adminname[MAX_PLAYER_NAME], adminid playerid;
        
GetPlayerName(playeridadminnamesizeof(adminname));
        new 
message[24];
        
SetPlayerPos(sendtolsplayerid1521.5381, -1677.684113.5469);
        
format(message,sizeof(message), "%s[%d]"adminnameadminid);
        
SendClientMessage(sendtolsplayeridCOLOR_WHITE"You have been teleported by {b0fc2d}message");
    }
    return 
1;

As you can see I formatted adminname and adminid in message string, Now I want when someone use /sendtols playerid the one who get teleported by admin Gets the message "You have been teleported by Adminname[Adminid]" I know how to do this but my problem is how do I color adminname and adminid?
Reply


Messages In This Thread
Admin name Color - by BlackbirdXd - 13.02.2017, 16:13
Re: Admin name Color - by Unrea1 - 13.02.2017, 16:25
Re: Admin name Color - by BlackbirdXd - 13.02.2017, 16:33

Forum Jump:


Users browsing this thread: 1 Guest(s)