PDA

View Full Version : Exit Vehicle Problem


TheNavigator
13/10/2011, 02:53 PM
public OnPlayerExitVehicle(playerid, vehicleid)
{
TogglePlayerControllable(playerid, 1);
if (GetPlayerState(playerid) == 1)
{
return 1;
}
if(PlayerInfo[playerid][pSeatBelt] == 1)
{
PlayerInfo[playerid][pSeatBelt] = 0;
new stringtosee[255];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
new ftext[255];
if(PlayerInfo[playerid][pSex] == 1)
{
ftext = "his";
}
else if(PlayerInfo[playerid][pSex] == 1)
{
ftext = "her";
}
format(stringtosee, sizeof(stringtosee), "* %s unbuckles %s seat belt", sendername , ftext);
ProxDetector(30.0, playerid, stringtosee, 0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2DAAA,0xC2A2 DAAA);
return 1;
}
/*if(gGas[playerid] == 1)
{
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Left car", 500, 3);
}*/
return 1;
}

Here's the code

The problem is that the player doesn't exit if the car's engine isn't started by /start :/

How can I fix that?

TheNavigator
16/10/2011, 02:28 PM
Anyone?

TheNavigator
18/10/2011, 08:59 PM
Any help? :(

manchestera
18/10/2011, 09:02 PM
is the player frozen inside if so you need to put in the code to unfreeze them.

TheNavigator
18/10/2011, 09:06 PM
What was the function for entering the car? o.o

TheNavigator
23/10/2011, 02:17 PM
I can't find it :(

TheNavigator
26/10/2011, 06:34 PM
Can someone help me please?

TheNavigator
28/10/2011, 08:18 PM
Anyone?

FUNExtreme
28/10/2011, 08:23 PM
Show us OnPlayerEnterVehicle please

TheNavigator
29/10/2011, 10:01 AM
Can't find it o.o

Found a dashed one though

By the way, I'm using LSLRP script

/*public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(gTeam[playerid] >= 3)
{
if (IsACopCar(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3) {}
else { SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle"); }
}
if (IsALSFMD(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) { }
else { SetPlayerCriminal(playerid,255, "Stealing An Ambulance"); }
}
}
return 1;

}*/

TheNavigator
02/11/2011, 07:53 PM
So?....

TheNavigator
11/11/2011, 12:18 PM
Somebody's there to help? :(

TheNavigator
13/11/2011, 08:26 PM
Any help?

TheNavigator
24/11/2011, 08:06 AM
Please help....