21.06.2011, 15:32
Quote:
forward RemoveDriverFromVehicle(playerid); public RemoveDriverFromVehicle(playerid) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); return 1; } return 0; } if (newkeys & KEY_SECONDARY_ATTACK) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { RemoveDriverFromVehicle(playerid); TogglePlayerControllable(playerid, 1); return 1; //<--------- is this nessesary ? } } |