09.06.2009, 21:07
Quote:
Originally Posted by laser50
hi, i`ve asked this b4 and nobody really know what i was wanting.
i will explain what i need: I need Something witch will lock doors of a car (so not enterable) for all classes/skins except one. like this: a cop skin can go in cop cars, if a civillian tries he wont be able to get in as driver. i hope someone understands me and knows a solution to this thing what im looking for a week. |
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) { if(gTeam[playerid] != TEAM_COP) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 596) { RemovePlayerFromVehicle(playerid); } } } return 1; }