SetPlayerPos doesnt work
#3

Heres the code of some position change scripts...

Код:
if(strcmp(cmd, "/gotols", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(PlayerInfo[playerid][pAdmin] >= 3)
			{
				if (GetPlayerState(playerid) == 2)
				{
					new tmpcar = GetPlayerVehicleID(playerid);
					SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
					TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
				}
				else
				{
					SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
				}
				SetPlayerInterior(playerid,0);
				PlayerInfo[playerid][pInt] = 0;
				PlayerInfo[playerid][pLocal] = 9999;
				SetPlayerVirtualWorld(playerid,0);
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "Nincs jogosultsбgod a parancs hasznбlatбhoz.");
			}
		}
		return 1;
	}
	if(strcmp(cmd, "/gotolv", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (PlayerInfo[playerid][pAdmin] >= 3)
			{
				if (GetPlayerState(playerid) == 2)
				{
					new tmpcar = GetPlayerVehicleID(playerid);
					SetVehiclePos(tmpcar, 1699.2, 1435.1, 10.7);
					TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
				}
				else
				{
					SetPlayerPos(playerid, 1699.2,1435.1, 10.7);
				}

				SetPlayerInterior(playerid,0);
				PlayerInfo[playerid][pInt] = 0;
				PlayerInfo[playerid][pLocal] = 9999;
				SetPlayerVirtualWorld(playerid,0);
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "Nincs jogosultsбgod a parancs hasznбlatбhoz.");
			}
		}
		return 1;
	}
	if(strcmp(cmd, "/gotosf", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (PlayerInfo[playerid][pAdmin] >= 3)
			{
				if (GetPlayerState(playerid) == 2)
				{
					new tmpcar = GetPlayerVehicleID(playerid);
					SetVehiclePos(tmpcar, -1417.0,-295.8,14.1);
					TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
				}
				else
				{
					SetPlayerPos(playerid, -1417.0,-295.8,14.1);
				}
				SetPlayerInterior(playerid,0);
				PlayerInfo[playerid][pInt] = 0;
				PlayerInfo[playerid][pLocal] = 9999;
				SetPlayerVirtualWorld(playerid,0);
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "Nincs jogosultsбgod a parancs hasznбlatбhoz.");
			}
		}
		return 1;
	}
Theres the /enter command
Код:
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1082.6389,996.2617,11.0000))// lift
{
       SetPlayerPos(playerid,1029.1073,1010.8311,48.1328);
       PlayerPlaySound(playerid, 1095, 0.0, 0.0, 0.0);
       return 1;
}
The 3rd spawn location:

Код:
if(pspawn[playerid] == 3)//ship
			{
			   	player_x = 2371.7957;
				player_y = 557.4100;
				player_z = 7.7802;
			}
Btw i think the scripts are working...it wasnt problem in 0.3b...
Reply


Messages In This Thread
SetPlayerPos doesnt work - by erik019 - 24.04.2011, 22:53
Re: SetPlayerPos doesnt work - by Seven_of_Nine - 24.04.2011, 23:16
Re: SetPlayerPos doesnt work - by erik019 - 24.04.2011, 23:50

Forum Jump:


Users browsing this thread: 1 Guest(s)