/lock script passengers allowed
#1

Well I have here a /lock script, But when I do use /lock. It locks everything passenger and back seats.
And i only want to lock the driver's seat. How?

Код:
CMD:lock(playerid, params[])
{
	new Float:X, Float:Y, Float:Z;
	new vehicleid = GetPlayerVehicleID(playerid);
	GetVehiclePos(vehicleid, X, Y, Z);
	if (!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "ERROR: You must be in a vehicle to use this command!");
	{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
	SetVehicleParamsForPlayer(vehicleid,i,0,1);
	GameTextForPlayer(playerid, "~y~Vehicle ~r~Locked", 2000, 3);
	}
	}
	return 1;
}
Reply


Messages In This Thread
/lock script passengers allowed - by kbalor - 17.07.2012, 17:35
Re: /lock script passengers allowed - by Steven82 - 17.07.2012, 18:48
Re: /lock script passengers allowed - by kbalor - 17.07.2012, 19:00
Re: /lock script passengers allowed - by [KHK]Khalid - 17.07.2012, 19:02

Forum Jump:


Users browsing this thread: 1 Guest(s)