not detected by the command
#1

help! When you type this command you will not give anything away!

you must enter: /ujkocsi [VehicleID] [color1] [color2] [price]

I wanted this zcmd, this script is https://sampforum.blast.hk/showthread.php?tid=364583
anyone know the problem might help?

Код:
COMMAND:ujkocsi(playerid, params[])
	{
	new cmd[128],tmp[128],idx;
	cmd = strtok(params,idx);
 	if (IsPlayerAdmin(playerid) || PlayerInfo [playerid][Admin] > 0){return 1;}
	tmp = strtok(params,idx);
	if(!strlen(tmp)){return 1;}
	new vehiclemodel = strval(tmp);
	tmp = strtok(params,idx);
	if(!strlen(tmp)){return 1;}
	new color1 = strval(tmp);
	tmp = strtok(params,idx);
	if(!strlen(tmp)){return 1;}
	new color2 = strval(tmp);
	tmp = strtok(params,idx);
	if(!strlen(tmp)){return 1;}
	new price = strval(tmp);
	new Float:px,Float:py,Float:pz,Float:pa;
	GetPlayerPos(playerid,px,py,pz);
	GetPlayerFacingAngle(playerid,pa);
	created++;
	VehicleSystem[created][model]=vehiclemodel;
	VehicleSystem[created][x]=px;
	VehicleSystem[created][y]=py;
	VehicleSystem[created][z]=pz;
	VehicleSystem[created][a]=pa;
	VehicleSystem[created][Farbe1]=color1;
	VehicleSystem[created][Farbe2]=color2;
	VehicleSystem[created][preis]=price;
	VehicleSystem[created][owned]=0;
	VehicleSystem[created][cLock]=1;
	strmid(VehicleSystem[created][owner],"Vehicle for sale",0,128,128);
	new ccar = CreateVehicle(VehicleSystem[created][model],VehicleSystem[created][x],VehicleSystem[created][y],VehicleSystem[created][z],VehicleSystem[created][a],VehicleSystem[created][Farbe1],VehicleSystem[created][Farbe2],600000);
	IDIS[ccar]=created;
	SaveTool();
	return 1;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)