01.04.2011, 14:42
How to make that, when vip sit in car and then car change colour ? i try to add like this, but its not working :
Someone know ? :S
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(Account[playerid][Vip] == 1)
{
ChangeVehicleColor(vehicleid, 0, 1);
SetTimer("ChangeColor", 2500, 0);
}
}
pawn Код:
public ChangeColor(vehicleid)
{
ChangeVehicleColor(vehicleid, 7, 3);
ChangeVehicleColor(vehicleid, 5, 9);
ChangeVehicleColor(vehicleid, 128, 7);
ChangeVehicleColor(vehicleid, 3, 9);
ChangeVehicleColor(vehicleid, 2, 7);
ChangeVehicleColor(vehicleid, 31, 47);
ChangeVehicleColor(vehicleid, 78, 71);
ChangeVehicleColor(vehicleid, 28, 45);
ChangeVehicleColor(vehicleid, 2, 5);
ChangeVehicleColor(vehicleid, 30, 40);
ChangeVehicleColor(vehicleid, 57, 98);
return 1;
}