SA-MP Forums Archive
Job prob - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Job prob (/showthread.php?tid=72776)



Job prob - Amoken - 10.04.2009

thats the script I made in order to disable and enable the burrito in wich drugs are. The prob is that when I go to the spawn point I just see like 1000000000000000000000000000000000000000 vehicles spawned and that piss me of coz there is laggggg. anyway to spawn only 1 "drugscar" ?
Код:
if(minuite < 26 || minuite < 30)
	{
	drugscar = CreateVehicle(482,733.0392,299.5545,20.3507,1.3050,0,0,1000); // //buriot /smuggledrugs
drugspickup = CreatePickup(1239, 2, 733.1756,295.0983,20.2344); ///smuggledrugs
 if(strcmp(cmd,"/smuggledrugs",true)==0) // By Ellis
	 {
	  if(IsPlayerConnected(playerid))
	  {
	    if(gPlayerLogged[playerid] == 0)
	    {
	      SendClientMessage(playerid, COLOR_GREY, "  You need to login first !");
	      return 1;
	    }
	    TOP SECRET
      }
	  }
	 }
	 return 1;
	 }
   else if(minuite == 30)
   {
   DestroyVehicle(drugscar); //buriot /smuggledrugs
   DestroyPickup(drugspickup); ///smuggledrugs
   //	 return 1;
   	 if(!strcmp(cmdtext, "/smuggledrugs", true))
   	 {
		format(string, sizeof(string), "Drug trader is not here!");
		SendClientMessage(playerid, COLOR_GREY, string);
		      return 1;
     }
   	 }