[Ajuda] Verificaзoes
#1

Como verificar se o player e dono do carro ou removelo??
tentei dessa forma mais nao ta funcionando ele remove ate o dono
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate){
    new carro = GetPlayerVehicleID(playerid);
    if(newstate == PLAYER_STATE_DRIVER)
 {

        if (mCarro[pid][Dono] == GetPlayerVehicleID(playerid))
        {
        new str[30];
        new owner[MAX_PLAYER_NAME];
        GetPlayerName(mCarro[pid][Dono], owner, sizeof(owner));
        format(str, sizeof(str), "Este(a) \"%s\" pertence a %s.", GetVehicleNameFromID(GetPlayerVehicleID(playerid)), owner);
        msg(pid , -1, str) ;
        }
        else{
        new str[30];
        new owner[MAX_PLAYER_NAME];
        GetPlayerName(mCarro[pid][Dono], owner, sizeof(owner));
        format (str, sizeof (str), "Veнculo de %s somente ele(a) pode dirigi-lo!" , mCarro[pid][Dono]);
        SendClientMessage (pid, -1 , str) ;
        PlayerPlaySound (pid , 1147 , 0.0 , 0.0 , 0.0) ;
        RemovePlayerFromVehicle ( pid ) ;
        }
Reply


Messages In This Thread
Verificaзoes - by smith - 26.09.2019, 21:59
Re: Verificaзoes - by NWDMadara - 26.09.2019, 22:15
Re: Verificaзoes - by smith - 27.09.2019, 00:19
Re: Verificaзoes - by smith - 27.09.2019, 15:39
Re: Verificaзoes - by NWDMadara - 27.09.2019, 16:00
Re: Verificaзoes - by MorteAmerica - 28.09.2019, 05:20
Re: Verificaзoes - by smith - 30.09.2019, 17:13
Re: Verificaзoes - by G4M30V3R - 30.09.2019, 18:06

Forum Jump:


Users browsing this thread: 1 Guest(s)