01.09.2010, 07:26
Hi,
How to make that when player sit on quadbike system would -500 dollars from his money ?
How to make that when player sit on quadbike system would -500 dollars from his money ?
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehmodel = GetVehicleModel(GetPlayerVehicleID(playerid));
if(newstate == PLAYER_STATE_DRIVER && (vehmodel == 471))
{
GivePlayerMoney(playerid, -500);
}
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if( newstate == PLAYER_STATE_DRIVER && GetVehicleModel( GetPlayerVehicleID( playerid )) == QUAD_BIKE_ID_HERE )
GivePlayerMoney( playerid, -500 );
return true;
}