LVC teleport filterscript
#6

I fixed it but not fully, rest is up to you
Код:
#include <a_samp>

main()
{
	//Message shown in server window
	print("\n----------------------------------"); 
	print(" LVC lol had to fix0r this");
	print("----------------------------------\n");
}


public OnFilterScriptInit()
{
	SetGameModeText("LVC lol had to fix0r this"); //Mode name in server browser
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
	return 1;
}

public OnPlayerConnect(playerid)
{
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	return 1;
}

public OnPlayerSpawn(playerid)
{
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
	return 1;
}

public OnVehicleSpawn(vehicleid) {
	return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
	return 1;
}

public OnPlayerText(playerid, text[])
{
	return 1;
}

public OnPlayerPrivmsg(playerid, recieverid, text[])
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{

	if (strcmp("/jizzi", cmdtext, true, 3) ==0)
	{
		SetPlayerPos(playerid, -2637.69, 1404.24, 906.46);
		return 1;
	}
	if (strcmp("/cardealer", cmdtext, true, 0) ==0)
	{
		SetPlayerPos(playerid, -1954.85, 292.82, 35.47);
		return 1;
	}
	if (strcmp("/motel", cmdtext, true, 15) == 0)
	{
		SetPlayerPos(playerid, 2220.26, -1148.01, 1025.8);
		return 1;
	}
	if (strcmp("/cjs", cmdtext, true, 3) ==0)
	{
		SetPlayerPos(playerid, 2496.65, -1696.55, 1014.74);
		return 1;
	}
	if (strcmp("/liberty", cmdtext, true, 1) ==0)
	{
		SetPlayerPos(playerid, -750.8, 491, 1371.7);
		return 1;
	}
	if (strcmp("/maddogs", cmdtext, true, 5) ==0)
	{
		SetPlayerPos(playerid, 1299.14, -794.77, 1084);
		return 1;
	}
	if (strcmp("/rcs", cmdtext, true, 6) ==0)
	{
		SetPlayerPos(playerid, -2240, 131, 1035.4);
		return 1;
	}
	if (strcmp("/ammo", cmdtext, true, 7) ==0)
	{
		SetPlayerPos(playerid, 314.820984, -141.431992, 999.661987);
		return 1;
	}
	if (strcmp("/rider", cmdtext, true, 2) ==0)
	{
		SetPlayerPos(playerid, 2451.77, -1699.8, 1013.51);
		return 1;
	}
	if (strcmp("/bloodring", cmdtext, true, 15) ==0)
	{
		SetPlayerPos(playerid, -1394.2, 987.62, 1023.96);
		return 1;
	}
	if (strcmp("/stadium", cmdtext, true, 14) ==0)
	{
		SetPlayerPos(playerid, -1410.72, 1591.16, 1052.53);
		return 1;
	}
	if (strcmp("/bs", cmdtext, true, 2) ==0)
	{
		SetPlayerPos(playerid, 2567.52, -1294.59, 1063.25);
		return 1;
	}
	if (strcmp("/burn", cmdtext, true, 5) ==0)
	{
		SetPlayerPos(playerid, 2338.32, -1180.61, 1027.98);
		return 1;
	}
	if (strcmp("/deathmatch", cmdtext, true, 5) ==0)
	{
		SetPlayerPos(playerid, -2029.88, -115.44, 1035.17);
		return 1;
	}
	if (strcmp("/deathmatch2", cmdtext, true, 10) ==0)
	{
		SetPlayerPos(playerid, -1079.99, 1061.58, 1343.04);
		return 1;
	}
	if (strcmp("/deathmatch3", cmdtext, true, 18) ==0)
	{
		SetPlayerPos(playerid, 1726.18, -1641, 20.23);
		return 1;
	}
	if (strcmp("/deathmatch4", cmdtext, true, 0) ==0)
	{
		SetPlayerPos(playerid, 1726.18, -1641, 20.23);
		return 1;
	}
	return 0;
}

public OnPlayerInfoChange(playerid)
{
	return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
	return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
	return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
	return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
	return 1;
}

public OnRconCommand(cmd[])
{
	return 1;
}

public OnObjectMoved(objectid)
{
	return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
	return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
	return 1;
}

public OnPlayerExitedMenu(playerid)
{
	return 1;
}

public OnVehicleRespray(vehicleid, color1, color2)
{
	return 1;
}

public OnVehicleMod(vehicleid, componentid)
{
	return 1;
}
all you gotta do is add the interior change function
Код:
tip
Reply


Messages In This Thread
LVC teleport filterscript - by veveris - 11.10.2008, 12:02
Re: LVC teleport filterscript - by error55o - 22.10.2008, 16:56
Re: LVC teleport filterscript - by miokie - 22.10.2008, 20:39
Re: LVC teleport filterscript - by error55o - 22.10.2008, 20:59
Re: LVC teleport filterscript - by error55o - 22.10.2008, 21:14
Re: LVC teleport filterscript - by error55o - 27.10.2008, 08:59
Re: LVC teleport filterscript - by veveris - 30.11.2008, 11:48
Re: LVC teleport filterscript - by ICECOLDKILLAK8 - 30.11.2008, 16:06
Re: LVC teleport filterscript - by susant_sakib - 28.10.2011, 21:32

Forum Jump:


Users browsing this thread: 1 Guest(s)