Driver ID
#1

Guys,
I need your help I need to know is there a way to get the ID of the driver of a car

Is it possible to do it with a plugin or somthing or somthing already in the coding?

Thnaks
Reply
#2

Try something like this:

pawn Code:
new vehicleid = GetPlayerVehicleID(playerid);
    new State = GetPlayerState(playerid);
    if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            SendClientMessage(playerid, -1, "You're car driver.");
        }
    }
    if(!IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            SendClientMessage(playerid, -1, "You're not car driver.");
        }
    }
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=271321
Reply
#4

Quote:
Originally Posted by Davz*|*Criss
View Post
Try something like this:

pawn Code:
new vehicleid = GetPlayerVehicleID(playerid);
    new State = GetPlayerState(playerid);
    if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            SendClientMessage(playerid, -1, "You're car driver.");
        }
    }
    if(!IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            SendClientMessage(playerid, -1, "You're not car driver.");
        }
    }
Thanks just what i needed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)