SA-MP Forums Archive
How to all can sit in taxi vehicle? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to all can sit in taxi vehicle? (/showthread.php?tid=595179)



How to all can sit in taxi vehicle? - ervinmasic - 29.11.2015

I maked script taxi, and when players sit in taxi (G) not driver, script remove player from vehicle.
I want to all players can G in vehicle.
Sorry for my bad English.
Script:
Код:
if(TaxiV(vehicleid))
	{
 	if(PlayerData[playerid][pJob] != JOB_TAXI)
  	{
   	SendClientMessage(playerid, -1, ""CRVENA"[BD:RP]: "SIVA"You are not taxi driver!");
 	RemovePlayerFromVehicle(playerid);
	}



Re: How to all can sit in taxi vehicle? - Amads - 29.11.2015

Use GetPlayerVehicleSeat


Re: How to all can sit in taxi vehicle? - ATGOggy - 29.11.2015

Try this:
pawn Код:
if(TaxiV(vehicleid))
    {
    if(PlayerData[playerid][pJob] != JOB_TAXI && GetPlayerVehicleSeat(playerid)==0)
    {
    SendClientMessage(playerid, -1, ""CRVENA"[BD:RP]: "SIVA"You are not taxi driver!");
    RemovePlayerFromVehicle(playerid);
    }