Stock? 1+rep for help
#1

How to make a stock, for checking if he got trailer attached + in the car with CARID?


EDIT: IsTrailerAttachedToVehicle This one,
Reply
#2

pawn Код:
IsAllOk(playerid, vehicleid)
{
    if(vehicleid == 0 || !IsPlayerInVehicle(playerid, vehicleid)) return 0;
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 0;
    if(!IsTrailerAttachedToVehicle(vehicleid)) return 0;
    return 1;
}
pawn Код:
if(IsAllOk(playerid, GetPlayerVehicleID(playerid)))
{
// player is in vehicleid, driving and got attached trailer
}
Reply
#3

Thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)