SA-MP Forums Archive
lil help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: lil help (/showthread.php?tid=242870)



lil help - tanush - 20.03.2011

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;
}



Re: lil help - [L3th4l] - 20.03.2011

pawn Код:
if(PlayerData[playerid][vip] > 0 || PlayerData[playerid][AdminLevel] > 0)



Re: lil help - tanush - 20.03.2011

Oh lawl thnx