12.01.2012, 02:14
Thanks, I got it fixed. But now I have a problem:
I have a "Vehicles" thing too. It's like this:
I have a dynamic vehicle system (Faction, FactionRank, Colour, Colour2, CarModel and all this stuff). It's just that when I come to OnPlayerStateChange, I do:
With that, it just removes me from the vehicle. Even if the players faction is the same as the vehicles Faction. Please help me here, would be grateful.
I have a "Vehicles" thing too. It's like this:
I have a dynamic vehicle system (Faction, FactionRank, Colour, Colour2, CarModel and all this stuff). It's just that when I come to OnPlayerStateChange, I do:
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(gPlayerData[playerid][Faction] == Vehicles[vehicleid][Faction])
{
return 1;
}
else
{
RemovePlayerFromVehicle(playerid);
}
return 1;
}