03.01.2011, 10:08
Hi,
How would i make it if a player entered a vehicle and they were in "gTeam A", but the Vehicle is in "gTeam PD", how would i make the Player Exit the vehicle?
I have this code but i dont know why it doesnt work... And what call back would i place it in?
How would i make it if a player entered a vehicle and they were in "gTeam A", but the Vehicle is in "gTeam PD", how would i make the Player Exit the vehicle?
I have this code but i dont know why it doesnt work... And what call back would i place it in?
Код:
if(IsPlayerInVehicle(playerid, PDcar || PDcar1 || PDcar2 || PDcar3 || PDcar4 || PDcar5 ||PDcar6)) { if(gTeam[playerid] == PD) { SendClientMessage(playerid, 0x0000FFAA, "You are driving a police vehicle"); return 1; } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, 0xFF0000AA, "Join the police faction to drive this vehicle"); return 1; } }