Help me please
#3

You cant teleport to Z,Y,Z location if you dont have command for that.

You can make teleport command like.

pawn Код:
if(strcmp(cmdtext, "/teleport", true)==0)
{
        if(IsPlayerInAnyVehicle(playerid))
        {
                if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
                {
                        SetVehiclePos(GetPlayerVehicleID(playerid), X,Y,Z);
                        SetVehicleZAngle(GetPlayerVehicleID(playerid), 178.7448);
                        SetCameraBehindPlayer(playerid);
                }
                else
                {
                        SendClientMessage(playerid,0xFFFF00AA, "ERROR: You need to be the driver!");
                }
        }
        else
        {
                SetPlayerPos(playerid, X,Y,Z);
                SetPlayerFacingAngle(playerid, 110.5445);
                SetCameraBehindPlayer(playerid);
        }
        return 1;
}

Btw, Berlo something i like your avatar
Reply


Messages In This Thread
Help me please - by Chris_Morrison - 25.08.2011, 14:56
Re: Help me please - by sleepysnowflake - 25.08.2011, 15:03
Re: Help me please - by Sensitive - 25.08.2011, 15:04
Re: Help me please - by Chris_Morrison - 25.08.2011, 16:05
Re: Help me please - by Chris_Morrison - 25.08.2011, 17:06
Re: Help me please - by Dragony92 - 25.08.2011, 17:10
Re: Help me please - by Kayaque - 25.08.2011, 17:10
Re: Help me please - by Chris_Morrison - 25.08.2011, 17:27

Forum Jump:


Users browsing this thread: 3 Guest(s)