0Admin system help:
#1

Hello!

I have a big problem with the command /get ingame. Let me explain:

If i am going to /get, and the player is in a vehicle, the command totally fails. Instead of "getting" the person to your location, it teleports the player to a farm, under the ground, and the player is falling in the void.

I have checked my script, and i havent touched it:

Код:
CMD:get(PARAMS)
{
    LoginCheck(playerid);
    LevelCheck(playerid, 3);

	new Player;
    if(sscanf(params, "u", Player)) return SendUsage(playerid, "/get "GREY"<id>", "Will teleport the specified player to your position");
	else
	{
	    if(Player == (0xFFFF))  return SendError(playerid, "Player not connected!");
	    if(Player == playerid )  return SendError(playerid, "Player entered is you!");
        CheckImune(playerid, Player);{}

	    new Float: Pos[4];

	    if(IsPlayerInAnyVehicle(Player))

		{
	        LinkVehicleToInterior(GetPlayerVehicleID(Player), GetPlayerInterior(playerid));
			SetVehicleVirtualWorld(GetPlayerVehicleID(Player), GetPlayerVirtualWorld(playerid));

			SetVehiclePos(GetPlayerVehicleID(Player), Pos[0] + 2, Pos[1] + 2, Pos[2] + 2);
			SetVehicleZAngle(GetPlayerVehicleID(Player), Pos[3]);
	    }
	    else
     {
         GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
	    	GetPlayerFacingAngle(playerid, Pos[3]);

	    	SetPlayerPos(Player, Pos[0], Pos[1] + 2, Pos[2] + 1);
	    	SetPlayerFacingAngle(Player, Pos[3]);
	    }
	    SetPlayerVirtualWorld(Player, GetPlayerVirtualWorld(playerid));
	    SetPlayerInterior(Player, GetPlayerInterior(playerid));
	    SendAdminCMD(playerid, "Admin "ORAN"%s[%i]"GREY" teleported "ORAN"%s[%i]"GREY" to his location!", Name(playerid), playerid, Name(Player), Player);
	    FormatMSG(playerid, Color:GREY, "You teleported to "ORAN"%s[%i]"GREY" to your location!", Name(Player), Player);
	}
	return 1;
}
And i am wondering, can i fix it?

I dont want the player to go out of vehicle each time i am going to /get them, so.... Thanks!!
Reply


Messages In This Thread
0Admin system help: - by denNorske - 12.04.2012, 07:32
Re: 0Admin system help: - by Cjgogo - 12.04.2012, 07:42
Re: 0Admin system help: - by denNorske - 12.04.2012, 07:48
Re: 0Admin system help: - by Rachael - 12.04.2012, 07:50
Re: 0Admin system help: - by Shetch - 12.04.2012, 08:11
Re: 0Admin system help: - by denNorske - 12.04.2012, 09:16
Re: 0Admin system help: - by denNorske - 13.04.2012, 05:51
Re: 0Admin system help: - by Shetch - 13.04.2012, 15:14
Re: 0Admin system help: - by denNorske - 15.04.2012, 09:16
Re: 0Admin system help: - by Shetch - 15.04.2012, 12:43

Forum Jump:


Users browsing this thread: 2 Guest(s)