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


Messages In This Thread
Color Problem!! - by nor15 - 29.01.2013, 21:11
Re: Color Problem!! - by ThePhenix - 29.01.2013, 21:14
Re: Color Problem!! - by Azn - 29.01.2013, 21:22
Re: Color Problem!! - by nor15 - 29.01.2013, 21:53
Re: Color Problem!! - by Azn - 29.01.2013, 22:19

Forum Jump:


Users browsing this thread: 1 Guest(s)