Neon script problem
#3

An example of a neon light it
Код:
		else if(strcmp(x_nr,"roz",true) == 0)
            	{
                	if(PlayerInfo[playerid][pPcarkey] != 999)
	        	{
                    		if (CarInfo[carid][cNeon] == 1)
                    		{
			    	    	if(NeonStatus[carr] == 0)
			            	{
                				 SetPVarInt(playerid, "Status", 1);
	            SetPVarInt(playerid, "neon8", CreateObject(18651,0,0,0,0,0,0));
	            SetPVarInt(playerid, "neon9", CreateObject(18651,0,0,0,0,0,0));
	            AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
	            AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
				            		GameTextForPlayer(playerid, "~w~Neon ~g~on", 4000, 3);
				        }
			       }
	                       else
	                       SCM(playerid, COLOR_GRAD3, "** You don't have neon !");
	                       return 1;
	               }
	               else
	               SCM(playerid, COLOR_GRAD3, "** You don't own a car !");
	               return 1;
		}
and one that eliminates everywhere is
Код:
        							DestroyObject(GetPVarInt(playerid, "neon"));
            						DeletePVar(playerid, "Status");
            						DestroyObject(GetPVarInt(playerid, "neon1"));
            						DeletePVar(playerid, "Status");
            						DestroyObject(GetPVarInt(playerid, "neon2"));
            						DeletePVar(playerid, "Status");
            						DestroyObject(GetPVarInt(playerid, "neon3"));
            						DeletePVar(playerid, "Status");
            						DestroyObject(GetPVarInt(playerid, "neon4"));
            						DeletePVar(playerid, "Status");
            						DestroyObject(GetPVarInt(playerid, "neon5"));
									DeletePVar(playerid, "Status");
								 	DestroyObject(GetPVarInt(playerid, "neon6"));
            						DeletePVar(playerid, "Status");
           							DestroyObject(GetPVarInt(playerid, "neon7"));
						            DeletePVar(playerid, "Status");
						            DestroyObject(GetPVarInt(playerid, "neon8"));
						            DeletePVar(playerid, "Status");
						            DestroyObject(GetPVarInt(playerid, "neon9"));
						            DeletePVar(playerid, "Status");
						            DestroyObject(GetPVarInt(playerid, "neon10"));
						            DeletePVar(playerid, "Status");
						            DestroyObject(GetPVarInt(playerid, "neon11"));
				            		DeletePVar(playerid, "Status");
				            		DestroyObject(18647);
					            	DestroyObject(18648);
					            	DestroyObject(18649);
					           		DestroyObject(18652);
					            	DestroyObject(18651);
					            	DestroyObject(18650);
Reply


Messages In This Thread
Neon script problem - by iRealSAMP - 03.03.2012, 20:25
AW: Neon script problem - by Drebin - 03.03.2012, 21:00
Re: Neon script problem - by iRealSAMP - 04.03.2012, 09:07
Re: Neon script problem - by iRealSAMP - 05.03.2012, 08:43
Re: Neon script problem - by iRealSAMP - 07.03.2012, 17:23
Re: Neon script problem - by iRealSAMP - 07.03.2012, 19:38
Re: Neon script problem - by iRealSAMP - 08.03.2012, 08:46
Re: Neon script problem - by Mike_Peterson - 08.03.2012, 08:57
Re: Neon script problem - by iRealSAMP - 09.03.2012, 09:31
Re: Neon script problem - by Marco_Valentine - 09.03.2012, 09:35

Forum Jump:


Users browsing this thread: 4 Guest(s)