/setcolour for VIPs only help
#3

There you go.
PHP код:
CMD:dcolor(playeridparams[])
{
    if(
PlayerInfo[playerid][dRank] < 1) return SendClientMessage(playeridred"[Error] You are not authorised to use this command.");
    else
    {
        new 
string[84],
            
id,
            
color,
            
name[MAX_PLAYER_NAME+1];
        if(
sscanf(params"ud"idcolor))
        {
            
SendClientMessage(playeridred"[Usage] /dcolor [Player ID] [Color ID]");
            
SendClientMessage(playeridwhite"[Info] Colours: 0=black 1=white 2=red 3=orange 4=yellow 5=green 6=blue 7=purple 8=brown 9=pink");
            return 
1;
        }
        
GetPlayerName(idnamesizeof(name));
        
format(stringsizeof(string), "[SUCCESS] You have set %s's color to %d."namecolor);
        
SendClientMessage(playeridwhitestring);
        
SetPlayerColor(idcolor);
    }
    return 
1;

Reply


Messages In This Thread
/setcolour for VIPs only help - by Ponii - 03.09.2013, 23:58
Re : /setcolour for VIPs only help - by Matnix - 04.09.2013, 00:52
Re: /setcolour for VIPs only help - by Tomer!.$ - 04.09.2013, 04:23
Re: /setcolour for VIPs only help - by Tomer!.$ - 04.09.2013, 05:13
Re: /setcolour for VIPs only help - by Ponii - 07.09.2013, 08:22
Re: /setcolour for VIPs only help - by Konstantinos - 07.09.2013, 09:40

Forum Jump:


Users browsing this thread: 2 Guest(s)