06.07.2012, 20:14
Ok so i am going to try and explain this aswell as i can
At the top of my script i have this
So i have a truck that i that is made in "InGameModeInInt" like this "truck = AddStaticVehicle(.....)
Well i try to get in the vehicle and it just wont let me i assume as soon as it spawns it sets the vehicle to CarGroup 0 and i have this in "OnPlayerEnterVehicle"
That bit of code there makes it so if your not in a faction you cant get in a faction vehicle
It wont let me get into the truck atall even though its a static vehicle i have tried adding
In "OnGameModeInIt" but it still did not work
If you need any more code just ask
Please help
Thanks
What im asking is how can i make it so i can enter the vehicle...
At the top of my script i have this
pawn Код:
new truck;
Well i try to get in the vehicle and it just wont let me i assume as soon as it spawns it sets the vehicle to CarGroup 0 and i have this in "OnPlayerEnterVehicle"
pawn Код:
if(Vehicles[vehicleid][CarGroup] != 0 && Vehicles[vehicleid][CarGroup] != Player[playerid][Group])
{
if(ispassenger == 0)
{
ClearAnimations(playerid);
}
}
It wont let me get into the truck atall even though its a static vehicle i have tried adding
pawn Код:
Vehicles[truck][CarGroup] = 0;
If you need any more code just ask
Please help
Thanks
What im asking is how can i make it so i can enter the vehicle...