Removing Player From Vehicle
#1

Hello , i have a bug in my Gamemode but i don't know how to fix it . I tried many of Car Owner Ship Fs . But they are bugged due to a bug in my Gamemode . The Bug is that when player enters into a vehicle and try to buy it or Don't buy the the script remove the player from vehicle but he again enters into the vehicle automatically (i mean without the animation of entering into car) . Following is my code of Buying Vehicle (when player successfully buy a vehicle).
PHP код:
                    GivePlayerMoney(playerid, -DealershipVehicles[GetPlayerVehicleID(playerid)][vPrice]);
                    
format(stringsizeof(string), "You have purchased a %s for $%d, for more help regarding your purchase, type /carhelp."GetVehicleName(GetPlayerVehicleID(playerid)), DealershipVehicles[GetPlayerVehicleID(playerid)][vPrice]);
                    
SendClientMessage(playeridYELLOWstring);
                    
RemovePlayerFromVehicle(playerid);
                    
TogglePlayerControllable(playerid1);
                    return 
1;
                } 
Reply


Messages In This Thread
Removing Player From Vehicle - by Arxalan - 28.01.2015, 14:59
Re: Removing Player From Vehicle - by GentleMan - 28.01.2015, 15:52
Re: Removing Player From Vehicle - by ATGOggy - 28.01.2015, 15:54
Re: Removing Player From Vehicle - by TheRaGeLord - 28.01.2015, 15:58
Re: Removing Player From Vehicle - by Arxalan - 28.01.2015, 15:58
Re: Removing Player From Vehicle - by TheRaGeLord - 28.01.2015, 16:00
Re: Removing Player From Vehicle - by ATGOggy - 28.01.2015, 16:00
Re: Removing Player From Vehicle - by Arxalan - 28.01.2015, 16:07
Re: Removing Player From Vehicle - by ATGOggy - 28.01.2015, 16:13
Re: Removing Player From Vehicle - by Arxalan - 29.01.2015, 09:44

Forum Jump:


Users browsing this thread: 2 Guest(s)