Color Problem!!
#1

I use this command when some one go on admin mode , but the color of the player isn't changed

PHP код:
dcmd_adon(playerid,params[])
{
    
#pragma unused params
    
new string[128];
    if(
InAdminMode[playerid] == 1)
    {
        
SendClientMessage(playerid,COLOR_ERROR,"You are already in admin mode.");
        return 
1;
    }
    if(
IsSpawned[playerid] != 1)
    {
        
SendClientMessage(playerid,COLOR_ERROR,"You must be alive and spawned in order to go into admin mode.");
        return 
1;
    }
    for(new 
w=0w<13w++)
    {
        
GetPlayerWeaponData(playerid,w,PlayerWeapon[playerid][w],PlayerAmmo[playerid][w]);
    }
    
SendClientMessage(playerid,COLOR_ADMIN,"You are now in admin mode.");
    
format(stringsizeof(string),"[ADMIN MODE]Administrator %s(%d) has gone to Admin Mode ,Don't shoot him. or be Warned.",PlayerName(playerid),playerid);
    
SendClientMessageToAll(COLOR_ADMIN,string);
    
InAdminMode[playerid] =1;
    
SetPlayerColor(playerid,COLOR_PINK);
    return 
1;

Reply
#2

Are you sure "COLOR_PINK" is properly defined?
Reply
#3

Maybe you had a function to lock the color?
If so, remove that function, you don't need it.
SetPlayerColor itself is enough.
Reply
#4

the COLOR_PINK is defined and everything is ok , i dunno what is the problem
Reply
#5

Something tells me that you didn't do what I told you to.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)