Vehicle system
#1

Hello guys

I'm looking for a way to make a vehicle only allowed for a faction, therefore I'm looking for a way to make sure that it kicks those people out of the vehicle who does not have the right skin (Example. Medic skin for ambulances).

If somebody could make a sample code on how i could make it, I'd appreciate it very much Since my old system bugged.
Reply
#2

use OnPlayerEnterVehicle like that if a player enters vehicle id x and his faction is not x he will be removed from vehicle
Reply
#3

Quote:
Originally Posted by §с†¶e®РµРe
Посмотреть сообщение
use OnPlayerEnterVehicle like that if a player enters vehicle id x and his faction is not x he will be removed from vehicle
Uhm, not really sure. I tried with this, didn't work:

Код:
else if(GetVehicleModel(vehicleid) == 416 && !ispassenger) {
        if(PlayerInfo[playerid][pMember] != 3) {
            new Float:cx, Float:cy, Float:cz;
            GetPlayerPos(playerid, cx, cy, cz);
            SetPlayerPos(playerid, cx,  cy, cz);
            SendClientMessage(playerid,COLOR_LIGHTRED," You're now allowed to drive this vehicle!");
Reply
#4

Bump?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)