[ajuda] carro
#1

To com um comando de criar carro por dialog.
Sendo que nгo to conseguindo raciocinar a forma de deletar "TODOS" os carros criado por esse comando ;s

VEJA:
Na DialogResponde:
Код:
if(dialogid == 351)
    {
   		if(response)
        {
            new Float:Angulo, string[128], Jogador[MAX_PLAYER_NAME];
			if(!inputtext[0] || strval(inputtext) < 400 || strval(inputtext) > 609) return SendClientMessage(playerid, -1,"{8000FF}[ERRO] {FFFFFF}ID dos carros apenas de 400 a 609.");
	 	    if(IsPlayerInAnyVehicle(playerid))  return SendClientMessage(playerid,-1,"{8000FF}[ERRO] {FFFFFF}Vocк estб em um veнculo.");
	 	    GetPlayerPos(playerid,CorX, CorY, CorZ);
	 	    GetPlayerFacingAngle(playerid, Angulo);
       		GetPlayerName(playerid, Jogador, MAX_PLAYER_NAME);
			PutPlayerInVehicle(playerid,CreateVehicle(strval(inputtext),CorX, CorY, CorZ, Angulo+2,random(999),random(999),-1),0);
			format(string,128,"{8000FF}[ CARRO ] {FFFFFF}%s Criou Veнculo", Jogador);
	 	    SendClientMessageToAll(-1,string);
	 	    return true;
		}
		return true;
  	}
Reply


Messages In This Thread
[ajuda] carro - by .ThePro - 24.05.2012, 20:13
Re: [ajuda] carro - by .ThePro - 24.05.2012, 23:13
Re: [ajuda] carro - by rjjj - 25.05.2012, 12:56

Forum Jump:


Users browsing this thread: 1 Guest(s)