#1

how i can make this work on foot not on vehicle?
Код:
if(areaid == MenuEnter)
	{
	    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	    {
		    new Float: x, Float: y, Float: z, v = GetPlayerVehicleID(playerid);
		    GetVehicleVelocity(v, x, y, z);
		    SetVehiclePos(v, 383.0128,2541.9570,16.5391);
		    PutPlayerInVehicle(playerid, v, 0);
		    SetVehicleVelocity(v, x, y, z);
		    return 1;
	    }
	}
Reply
#2

try this, I'm unable to test it.
pawn Код:
if(areaid == MenuEnter)
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            new Float: x, Float: y, Float: z, v = GetPlayerVehicleID(playerid);
            GetVehicleVelocity(v, x, y, z);
            SetVehiclePos(v, 383.0128,2541.9570,16.5391);
            PutPlayerInVehicle(playerid, v, 0);
            SetVehicleVelocity(v, x, y, z);
            return 1;
        }  
        else if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
        {
            SetPlayerPos(playerid,383.0128,2541.9570,16.5391);
             return 1;
        }
    }
Reply
#3

Quote:
Originally Posted by Hoborific
Посмотреть сообщение
try this, I'm unable to test it.
pawn Код:
if(areaid == MenuEnter)
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            new Float: x, Float: y, Float: z, v = GetPlayerVehicleID(playerid);
            GetVehicleVelocity(v, x, y, z);
            SetVehiclePos(v, 383.0128,2541.9570,16.5391);
            PutPlayerInVehicle(playerid, v, 0);
            SetVehicleVelocity(v, x, y, z);
            return 1;
        }  
        else if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
        {
            SetPlayerPos(playerid,383.0128,2541.9570,16.5391);
             return 1;
        }
    }
nvm thanks i got it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)