OnPlayerEnterVehicle
#1

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    for(new i = 0; i < MAX_PLAYERS;i++) {
        if(GetPlayerState(i) == PLAYER_STATE_PASSENGER) {
            new driver;
            driver = GetPlayerState(i);
            if(driver == PLAYER_STATE_DRIVER && IsPlayerInVehicle(i, vehicleid) && IsPlayerConnected(i)) {
                GivePlayerMoney(driver, 12);
                GivePlayerMoney(playerid, -12);
            }
        }
    }
    return 1;
}
Nothing happens..the driver doesnt get money and the passenger doesnt get -12 taken
Reply


Messages In This Thread
OnPlayerEnterVehicle - by thefatshizms - 06.10.2012, 15:16
Re: OnPlayerEnterVehicle - by ikbenremco - 06.10.2012, 15:19
Re: OnPlayerEnterVehicle - by Lordzy - 06.10.2012, 15:19
Re: OnPlayerEnterVehicle - by thefatshizms - 06.10.2012, 15:23
Re: OnPlayerEnterVehicle - by ikbenremco - 06.10.2012, 15:27
Re: OnPlayerEnterVehicle - by thefatshizms - 06.10.2012, 15:51
Re: OnPlayerEnterVehicle - by Unfriendly - 06.10.2012, 16:05
Re: OnPlayerEnterVehicle - by Faisal_khan - 06.10.2012, 16:28

Forum Jump:


Users browsing this thread: 1 Guest(s)