Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GetvehicleDriver(vehicleid)
- {
- for(new x = 0; x <= GetMaxPlayers(); x++)
- {
- if(IsPlayerInAnyVehicle(x))
- {
- if(GetPlayerVehicleID(x) == vehicleid)
- {
- if(GetPlayerState(x) == PLAYER_STATE_DRIVE)
- return x;
- }
- }
- }
- return INVALID_PLAYER_ID;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement