A Little Help
#2

pawn Код:
forward ccolor ( vehicleid ) ;
public ccolor ( vehicleid )
{
ChangeVehicleColor( vehicleid , random ( 256 ) , random ( 256 ) ) ;
return 1;
}
CMD:vchange ( playerid , params [ ] )
{
if ( CVeh_Color [ playerid ] == 0)
{
CVeh_Color [ playerid ] = 1 ;
Timer = SetTimerEx ( "ccolor" , 100 , true , "i" , GetPlayerVehicleID ( playerid ) ) ;
}
else
{
CVeh_Color [ playerid ] = 0 ;
KillTimer ( Timer ) ;
}
return 1 ;
}
If you want to change even you are not in car just remove OnPlayerStateChange.
Reply


Messages In This Thread
A Little Help - by IuLyAnBoSs - 07.06.2013, 07:54
Re: A Little Help - by KickInTheMick - 07.06.2013, 09:23

Forum Jump:


Users browsing this thread: 2 Guest(s)