[Ajuda] Veiculo
#10

Tente:
pawn Код:
if (newstate == PLAYER_STATE_DRIVER)
{
    if (CarroJogador[playerid] == GetPlayerVehicleID(playerid))
    {
        format(String, sizeof(String), "Seja bem vindo ao seu veнculo! [%s]", GetVehicleNameFromID(GetPlayerVehicleID(playerid)));
        SendClientMessage(playerid, 0xFFFFFFAA, String);
        return 1;
    }
    else
    {
        new owner[MAX_PLAYER_NAME];
        GetPlayerName(InfoCarro[playerid][s_Dono], owner, sizeof(owner)) ;
       
        format(String, sizeof(String) , "Veнculo de %s somente ele(a) pode dirigi-lo!", owner);
        SendClientMessage(playerid, -1 ,String);

        PlayerPlaySound(playerid, 1147, 0.0, 0.0, 0.0);
        RemovePlayerFromVehicle(playerid);
        return 1;
    }
}
Reply


Messages In This Thread
Veiculo - by Arthenry - 24.07.2012, 20:04
Re: Veiculo - by Arthenry - 24.07.2012, 20:19
Re: Veiculo - by ViniBorn - 24.07.2012, 20:35
Re: Veiculo - by Arthenry - 24.07.2012, 20:49
Re: Veiculo - by ViniBorn - 24.07.2012, 20:56
Re: Veiculo - by Arthenry - 24.07.2012, 22:48
Re: Veiculo - by Don_Speed - 24.07.2012, 23:20
Re: Veiculo - by Arthenry - 24.07.2012, 23:50
Re: Veiculo - by Don_Speed - 24.07.2012, 23:53
Re: Veiculo - by Victor' - 25.07.2012, 00:04

Forum Jump:


Users browsing this thread: 1 Guest(s)