[AJUDA] IsPlayerInVehicle
#2

Quote:
Originally Posted by Mr_Taxi
Посмотреть сообщение
Minha duvida й simples e fбcil.
Eu sei o que tenho que usar, sу nгo sei como fazer...
Esse й meu maior problema com pawn

Vamos, lб

pawn Код:
if (strcmp("/gps", cmdtext, true, 10) == 0)
{
       ShowPlayerDialog(playerid, GPS, DIALOG_STYLE_LIST, "GPS", "LOCAIS IMPORTANTES\nTERRITORIOS\nDIVERSOS\n", "Selecionar Menu", "Desligar GPS");
e o comando estб todo feito, mais eu quero que sу seja executado quando se esteja em um carro.
Eu sei que tenho que usar IsPlayerInVehicle, mais nгo sei como, alguйm pode me ajudar ? O que devo fazer ? Como devo usar estб funзгo ?

=)

pawn Код:
if(!IsPlayerInVehicle) return SendClientMessage(playerid, -1, "Vocк nao esta em um veiculo");
    {
        if (strcmp("/gps", cmdtext, true, 10) == 0)
        {
            ShowPlayerDialog(playerid, GPS, DIALOG_STYLE_LIST, "GPS", "LOCAIS IMPORTANTES\nTERRITORIOS\nDIVERSOS\n", "Selecionar Menu", "Desligar GPS");
        }
        return 1;
    }
Reply


Messages In This Thread
[AJUDA] IsPlayerInVehicle - by Mr_Taxi - 10.03.2012, 23:26
Re: [AJUDA] IsPlayerInVehicle - by MagneticLove- - 10.03.2012, 23:30
Re: [AJUDA] IsPlayerInVehicle - by Đeagle - 10.03.2012, 23:32
Re: [AJUDA] IsPlayerInVehicle - by rjjj - 10.03.2012, 23:33
Re: [AJUDA] IsPlayerInVehicle - by Markos - 10.03.2012, 23:33
Re: [AJUDA] IsPlayerInVehicle - by StreetGT - 10.03.2012, 23:34
Re: [AJUDA] IsPlayerInVehicle - by Mr_Taxi - 10.03.2012, 23:36

Forum Jump:


Users browsing this thread: 3 Guest(s)