i set command to change color, but I dont want it to be seen on the mapicon
#8

PHP код:
CMD:vipcolor(playeridparams[]) {
    if(
PlayerInfo[playerid][pDonator] >= 1)
    {
        if(
GetPVarInt(playerid"EventToken") == 1)
        {
            
SendClientMessage(playeridCOLOR_WHITE"You can't use this command while in an event.");
        }
        if(
IsACop(playerid) || PlayerInfo[playerid][pFaction] == || PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pFaction] == || PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pFaction] == || PlayerInfo[playerid][pLeader] == 6)
        {
            
SendClientMessage(playeridCOLOR_WHITE"You can't use this command while in a Faction.");
            return 
1;
        }
        if(
PlayerInfo[playerid][pVIPDuty])
        {
            
PlayerInfo[playerid][pVIPDuty] = 0;
            
SetPlayerColor(playerid0xFFFFFF00);//00=Fully Transparent. AKA Level 0 Visibility
            
SendClientMessage(playeridCOLOR_WHITE"You have hidden your VIP color.");
        }
        else
        {
            
PlayerInfo[playerid][pVIPDuty] = 1;
            
SetPlayerColor(playerid0xA2E3E8AA);//AA=Level 10 Visibility.
            
SendClientMessage(playeridCOLOR_WHITE"You have shown your VIP color.");
        }
    }
    return 
1;

Credits: FullCircle, I just put it in script.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)