25.02.2012, 22:23
well i have followed a tutorial on making team cars anf it worked i made the cars and messages but theres a problem everyone can drive the car I put a RemovePlayerfromVehicle but it doesn't work!! it still lets ppl drive the car
here it is i have a stock also to check the cars
How can i make it that only those members can drive the cars and when another player enters that isnt in that team he gets kicked from the car
here it is i have a stock also to check the cars
Код:
if(IsAYCar(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pMember] == 6 ||PlayerInfo[playerid][pLeader] == 6) { SendClientMessage(playerid, COLOR_WHITE, "You are a member from the mafia."); } else { SendClientMessage(playerid, COLOR_WHITE, "Ne ste del od mafijata."); RemovePlayerFromVehicle(playerid); } }