/seatbelt on vehicle exit?
#1

I have a command which is /seatbelt and when a player exits the vehicle, I want it to show a /me saying player unbuckles their seatbelt.

What would it be under
Код:
public OnPlayerExitVehicle(playerid, vehicleid)?
Reply
#2

Yes.
Reply
#3

What would be under it?
Reply
#4

I don't know what command processor you use, but if you have the /seatbelt command coded in ZCMD, something like this could work:

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    // You should perform a check here to see if they have the seatbelt on, I added an example below.
    if(pSeatbelt[playerid] == 1) return cmd_seatbelt(playerid, params);
    return 1;
}
Reply
#5

Or you could just easily detect if the seatbelt is on, and just remove it without actually having to revert back the the cmd, although thats what i use
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)