random things i need help with
#1

okay, i got a short list of things i need :P

1. IsPlayerInAnyVehicle < is that exisiting?

IsVehicleOccupied < i tried to make myself but i didnt get it to work


and a veh variable to save all car stats to a playerfile

any help with these? thanks
Reply
#2

With the car stats, you'll need to learn MySQL
Reply
#3

pawn Код:
stock IsVehicleOccupied(vehicleid)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(GetPlayerState(i) == PLAYER_STATE_DRIVER || GetPlayerState(i) == PLAYER_STATE_PASSENGER)
        {
            if(GetPlayerVehicleID(i) == vehicleid)
            {
                return 1;
            }
        }
    }
    return 0;
}
https://sampwiki.blast.hk/wiki/IsPlayerInAnyVehicle


Search.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)