lil help
#1

Im making ccolor for vip and admins but it only works for vip, help
pawn Код:
CMD:ccolor(playerid, params[])
{
    if(PlayerData[playerid][AdminLevel] > 0)
    if(PlayerData[playerid][vip] > 0)
    {
        new cc1,cc2, string[256];
        if(sscanf(params,"dd",cc1,cc2)) return SendClientMessage(playerid,0xFF9900AA, "USAGE: /carcolor [color1] [color2]");
        ChangeVehicleColor(GetPlayerVehicleID(playerid), cc1, cc2);
        format(string, sizeof(string), "You changed your first color to %d and second colour %d!", cc1, cc2);
        SendClientMessage(playerid,0xFF9900AA,string);
        }
        else return SendClientMessage(playerid,0xFF0000FF,"ERROR: You are not an Admin or vip!");
        return 1;
}
Reply


Messages In This Thread
lil help - by tanush - 20.03.2011, 19:58
Re: lil help - by [L3th4l] - 20.03.2011, 20:04
Re: lil help - by tanush - 20.03.2011, 20:10

Forum Jump:


Users browsing this thread: 1 Guest(s)