Weired...Trees attached in place of neons ??
#3

Okay..

I added that but...Now Even nothing get attached to vehicle It says Neon added but nothing appears...


Code.
Код:
if(dialogid == DIALOG_NEON)
	{
		if(response)
		{
		    if(listitem == 0)
		    {
		        SetPVarInt(playerid, "neon", 1);
            	SetPVarInt(playerid, "blue", CreateDynamicObject(18648,0,0,0,0,0,0));
            	SetPVarInt(playerid, "blue1", CreateDynamicObject(18648,0,0,0,0,0,0));
            	AttachDynamicObjectToVehicle(GetPVarInt(playerid, "blue"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            	AttachDynamicObjectToVehicle(GetPVarInt(playerid, "blue1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            	GameTextForPlayer(playerid, "~b~ Blue ~w~Neon has been added to your vehicle",3500,5);
            	return 1;
			}
			if(listitem == 1)
			{
   				SetPVarInt(playerid, "neon", 1);
       			SetPVarInt(playerid, "green", CreateDynamicObject(18649,0,0,0,0,0,0));
       			SetPVarInt(playerid, "green1", CreateDynamicObject(18649,0,0,0,0,0,0));
       			AttachDynamicObjectToVehicle(GetPVarInt(playerid, "green"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
          		AttachDynamicObjectToVehicle(GetPVarInt(playerid, "green1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
          		GameTextForPlayer(playerid, "~g~Green ~w~Neon has been added to your vehicle",3500,5);
          		return 1;
			}
			if(listitem == 2)
			{
			    SetPVarInt(playerid, "neon", 1);
       			SetPVarInt(playerid, "yellow", CreateDynamicObject(18650,0,0,0,0,0,0));
          		SetPVarInt(playerid, "yellow1", CreateDynamicObject(18650,0,0,0,0,0,0));
            	AttachDynamicObjectToVehicle(GetPVarInt(playerid, "yellow"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
             	AttachDynamicObjectToVehicle(GetPVarInt(playerid, "yellow1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
				GameTextForPlayer(playerid, "~y~Yellow~w~ Neon has been added to your vehicle",3500,5);
				return 1;
			}
			if(listitem == 3)
			{
   				SetPVarInt(playerid, "neon", 1);
   				SetPVarInt(playerid, "white", CreateDynamicObject(18652,0,0,0,0,0,0));
   				SetPVarInt(playerid, "white1", CreateDynamicObject(18652,0,0,0,0,0,0));
       			AttachDynamicObjectToVehicle(GetPVarInt(playerid, "white"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
          		AttachDynamicObjectToVehicle(GetPVarInt(playerid, "white1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                GameTextForPlayer(playerid, "~w~White~w~ Neon has been added to your vehicle",3500,5);
                return 1;
			}
			if(listitem == 4)
			{
   				SetPVarInt(playerid, "neon", 1);
     			SetPVarInt(playerid, "pink", CreateDynamicObject(18651,0,0,0,0,0,0));
        		SetPVarInt(playerid, "pink1", CreateDynamicObject(18651,0,0,0,0,0,0));
          		AttachDynamicObjectToVehicle(GetPVarInt(playerid, "pink"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            	AttachDynamicObjectToVehicle(GetPVarInt(playerid, "pink1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
				GameTextForPlayer(playerid, "~p~Pink~w~ Neon has been added to your vehicle",3500,5);
				return 1;
			}
			if(listitem == 5)
			{
	   			DestroyDynamicObject(GetPVarInt(playerid, "blue"));
	            DeletePVar(playerid, "neon");
	            DestroyDynamicObject(GetPVarInt(playerid, "blue1"));
	            DeletePVar(playerid, "neon");
	            DestroyDynamicObject(GetPVarInt(playerid, "green"));
	            DeletePVar(playerid, "neon");
	            DestroyDynamicObject(GetPVarInt(playerid, "green1"));
	            DeletePVar(playerid, "neon");
	            DestroyDynamicObject(GetPVarInt(playerid, "yellow"));
	            DeletePVar(playerid, "neon");
	            DestroyDynamicObject(GetPVarInt(playerid, "yellow1"));
	            DeletePVar(playerid, "neon");
	            DestroyDynamicObject(GetPVarInt(playerid, "white"));
	            DeletePVar(playerid, "neon");
	            DestroyDynamicObject(GetPVarInt(playerid, "white1"));
	            DeletePVar(playerid, "neon");
	            DestroyDynamicObject(GetPVarInt(playerid, "pink"));
	            DeletePVar(playerid, "neon");
	            DestroyDynamicObject(GetPVarInt(playerid, "pink1"));
	            DeletePVar(playerid, "neon");
	            GameTextForPlayer(playerid, "~g~Neon was deleted from your vehicle",3500,5);
	            return 1;
            }
		}
 	}
Reply


Messages In This Thread
Weired...Trees attached in place of neons ?? - by Adarsh007 - 15.06.2015, 17:43
Re: Weired...Trees attached in place of neons ?? - by kristo - 15.06.2015, 17:54
Re: Weired...Trees attached in place of neons ?? - by Adarsh007 - 16.06.2015, 04:55
Re: Weired...Trees attached in place of neons ?? - by SpaceX - 16.06.2015, 09:26
Re: Weired...Trees attached in place of neons ?? - by Adarsh007 - 16.06.2015, 11:02
Re: Weired...Trees attached in place of neons ?? - by Adarsh007 - 16.06.2015, 17:02
Re: Weired...Trees attached in place of neons ?? - by Adarsh007 - 18.06.2015, 15:14
Re: Weired...Trees attached in place of neons ?? - by Pottus - 18.06.2015, 15:18

Forum Jump:


Users browsing this thread: 1 Guest(s)