[AJUDA]Qual Function?
#1

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(PlayerInfo[playerid][Org] == 1)
    {
    GameTextForPlayer(playerid,"~r~Zumbi Nao Pode Dirigir!",5000,6);
Qual Function Uso Para Que Ele Saia Do Veiculo ?
Reply
#2

RemovePlayerFromVehicle( playerid );
Reply
#3

Ja Tentei Nгo Funciona
Reply
#4

RemovePlayerFromVehicle( playerid ); sу vai funcionar em OnPlayerStateChange


Use GetPlayerPos + SetPlayerPos
Reply
#5

Coloca na public OnPlayerStateChange, ai sim use RemovePlayerFromVehicle.
Reply
#6

Meu Gm No Tem Essa Public :X
Reply
#7

Ela й nativa do SA:MP, basta adicionar.

Mas nгo precisa adicionar se nгo quiser, basta fazer assim :
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(PlayerInfo[playerid][Org] == 1)
    {
        new Float:VBPos[3];
        GameTextForPlayer(playerid,"~r~Zumbi Nao Pode Dirigir!",5000,6);
        GetPlayerPos(playerid,VBPos[0],VBPos[1],VBPos[2]);
        SetPlayerPos(playerid,VBPos[0],VBPos[1],VBPos[2]);
Reply
#8

Vini Consegui Da Outra Maneira Usando Esse Code
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(PlayerInfo[playerid][Org] == 1)
    {
    GameTextForPlayer(playerid,"~r~Zumbi Nao Pode Dirigir!",5000,6);
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    SetPlayerPos(playerid,x,y,z);
   
    }
Valeu Ai Rep +
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)