[HELP] How To Make This Paint Job To Be Colored Once?
#3

This should solve your problem :


pawn Код:
stock IsPlayerNearPaintShop(playerid)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInRangeOfPoint(playerid, 4, 2032.47, 1418.05, 9.82))
    {
        if(IsPlayerInVehicle(playerid, vehicleid))
        {
            if(!GetPVarInt(playerid, "Once"))
            {
                new colora = random(255);
                new colorb = random(255);
                ChangeVehicleColor(vehicleid, colora, colorb);
                SetPVarInt(playerid, "Once", true);
            }
        }
        return true;
    }
    return true;
}


I hope that I have helped .
Reply


Messages In This Thread
[HELP] How To Make This Paint Job To Be Colored Once? - by Danyal - 01.11.2012, 01:17
Re: [HELP] How To Make This Paint Job To Be Colored Once? - by NewerthRoleplay - 01.11.2012, 14:13
Re: [HELP] How To Make This Paint Job To Be Colored Once? - by rjjj - 01.11.2012, 14:45
Re: [HELP] How To Make This Paint Job To Be Colored Once? - by Danyal - 01.11.2012, 15:25
Re: [HELP] How To Make This Paint Job To Be Colored Once? - by Danyal - 01.11.2012, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)