Gang cars can only use gang members
#1

Hi.
Recently one of my friends gave me greate gamemode, but it need updates.
So, how to make to gang cars can only use gang members ?
Reply
#2

1. wiki.sa-mp.com/wiki/OnPlayerEnterVehicle
2. wiki.sa-mp.com/wiki/GetVehicleModel‎
3. wiki.sa-mp.com/wiki/GetPlayerState‎
4. wiki.sa-mp.com/wiki/RemovePlayerFromVehicle
5. wiki.sa-mp.com/wiki/SendClientMessage

Upon entry, check his state (if he's a passenger, or a driver) [OPTIONAL], if he is a driver, get the vehicle model, if it matches those you've set as gang cars:
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID) == X) // with X being the car ID you want restricted.
{
     // Remove him from vehicle, and send him a warning message saying he can't drive this car.
}
Hope this helps.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)