Job prob
#1

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;
     }
   	 }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)