How to ???
#1

Hi,

How to make that when player sit on quadbike system would -500 dollars from his money ?
Reply
#2

onplayerstatechange

if(newstate == PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == Quadbikemodelid)
{
GivePlayerMoney(playerid,-500);
}
}
Reply
#3

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
      new vehmodel = GetVehicleModel(GetPlayerVehicleID(playerid));
      if(newstate == PLAYER_STATE_DRIVER && (vehmodel == 471))
      {
          GivePlayerMoney(playerid, -500);
      }
      return 1;
}
Reply
#4

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if( newstate == PLAYER_STATE_DRIVER && GetVehicleModel( GetPlayerVehicleID( playerid )) == QUAD_BIKE_ID_HERE )
        GivePlayerMoney( playerid, -500 );
    return true;
}
Reply
#5

Quad bike ID 471
Reply
#6

thanks for all
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)