[Ajuda] Comando
#6

Quote:
Originally Posted by mau.tito
Посмотреть сообщение
pawn Код:
command(destroir,playerid,params[])
{
          new Carro = GetPlayerVehicleID(playerid);
          DestroyVehicle(Carro);
          return 1;
}
Quase !


#topic


Vocк ja tem uma base .
pawn Код:
new Bombeiro = CreateVehicle(407, PlayerX,PlayerY,PlayerZ,PlayerA,3,1,60000);
Porйm essa variavel bombeiro teria que estar fora do comando . E teria que utilizar o famoso MAX_PLAYERS
pawn Код:
//topo do GM
new bombeiro[MAX_PLAYERS];
//no comando
Bombeiro[playerid] = CreateVehicle(407, PlayerX,PlayerY,PlayerZ,PlayerA,3,1,60000);
Atй ai vocк ja tem quase tudo pronto faltando somente deletar .
E aquilo que o mau.tito posto
pawn Код:
DestroyVehicle(bombeiro[playerid]);
Pronto ai vocк terminou .


Espero ter ajudado

Reply


Messages In This Thread
Comando - by Wendell - 26.04.2013, 15:49
Re: Comando - by Wendell - 26.04.2013, 17:04
Re: Comando - by Don_Speed - 26.04.2013, 17:10
Re: Comando - by Wendell - 26.04.2013, 18:48
Re: Comando - by mau.tito - 26.04.2013, 18:53
Re: Comando - by Don_Speed - 26.04.2013, 19:15
Re: Comando - by Wendell - 26.04.2013, 19:32

Forum Jump:


Users browsing this thread: 2 Guest(s)