Help Car Delete But No Lost
#1

Hi Guys can help for car spawn system? cant Lost after exit vehicle

Code:
CMD:v(playerid,params[])
{
	new car;
	new string[128];
	new Float:X, Float:Y, Float:Z;
	GetPlayerPos(playerid, Float:X, Float:Y, Float:Z);
	if(sscanf(params,"i", car)) return SendClientMessage(playerid,0xff0000ff,"USAGE: /v <Vehicle ID 400 - 611>");
	else if(car < 400 || car >611) return SendClientMessage(playerid, 0xff0000ff, "ERROR: ID Vehicle tidak valid!");
	{
	if(Vehicle[playerid] != 0)
	{
		DestroyVehicle(Vehicle[playerid]);
	}
	Vehicle[playerid] = CreateVehicle(car, X, Y, Z + 2.0, 0, -1, -1, 1);
	format(string,sizeof(string),"Kamu berhasil spawn kendraan ID %i",car);
	SendClientMessage(playerid, 0xffffffff, string);
	PutPlayerInVehicle(playerid, Vehicle[playerid], 0);
	}
	return 1;
}
Reply


Messages In This Thread
Help Car Delete But No Lost - by IndonesiaScripter - 11.04.2019, 12:10
Re: Help Car Delete But No Lost - by Yukie - 11.04.2019, 13:10
Re: Help Car Delete But No Lost - by CONTROLA - 11.04.2019, 13:32

Forum Jump:


Users browsing this thread: 1 Guest(s)