[Ajuda] Poblema com Carros Privados
#5

Tenta assim .
pawn Код:
new bool:Entrar[MAX_PLAYERS] = false;

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vId = GetPlayerVehicleID(playerid);
    if(vId==carroespecial[0])
    {
        new nome[24];
        GetPlayerName(playerid, nome, 24);
        if(strfind(nome, "Pedro_Carpone", true) == 0)
        {
            Entrar[playerid] = true;
            InfoCarro(playerid);
           
        }
        else
        {
             Entrar[playerid] = true;
             InfoCarro(playerid);
        }
    }
    return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
    Entrar[playerid] = false;
    return 1;
}

stock InfoCarro(playerid)
{
    if(Entrar[playerid] == true)
       SendClientMessage(playerid,COLOR_LIGHTBLUE,"{ffffff}Bem vindo a sua {9f9f9f}Moto {01b333}Pedro_Carpone{ffffff}.");
    else if(Entrar[playerid] == false)
       SendClientMessage(playerid,COLOR_RED,"{ffffff}Veнculo:{9f9f9f}Moto{ffffff}Dono:{0082fb}Pedro_Carpone{ffffff}.");
       RemovePlayerFromVehicle(playerid);
       TogglePlayerControllable(playerid, 1);
    return 1;
}
Reply


Messages In This Thread
Poblema com Carros Privados - by Pedro_BPP - 17.04.2013, 12:21
Re: Poblema com Carros Privados - by Hunter_Xtreme - 17.04.2013, 13:53
Re: Poblema com Carros Privados - by Hulk3000 - 17.04.2013, 14:03
Re: Poblema com Carros Privados - by Pedro_BPP - 17.04.2013, 15:47
Re: Poblema com Carros Privados - by mau.tito - 17.04.2013, 15:56
Re: Poblema com Carros Privados - by Pedro_BPP - 17.04.2013, 16:10
Re: Poblema com Carros Privados - by Hunter_Xtreme - 17.04.2013, 16:15
Respuesta: Re: Poblema com Carros Privados - by Pedro_BPP - 17.04.2013, 16:20
Re: Poblema com Carros Privados - by Hunter_Xtreme - 17.04.2013, 16:58
Re: Poblema com Carros Privados - by Don_Speed - 17.04.2013, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)