Command !! Help !!
#3

EDIT:
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerCheckpoint(playerid, x, y, z, 3.0/*size*/);
    return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (IsPlayerInCheckpoint(playerid))
    {
        if (PRESSED(KEY_SECONDARY_ATTACK.))//F key or Return Key(Enter Key)
        {
            if (IsPlayerInAnyVehicle(playerid))
            {
                return 1;
            }
            else
            {
                SetPlayerPos(playerid, x, y, z);
                SetPlayerInterior(playerid, interiorid);
            }
        }
    }
    else
    {
        return 1;
    }
    return 1;
}
Change the co-ordinates to your ones.
Reply


Messages In This Thread
Command !! Help !! - by teomakedonija - 18.05.2012, 07:23
Re: Command !! Help !! - by iRage - 18.05.2012, 07:59
Re: Command !! Help !! - by Faisal_khan - 18.05.2012, 08:06
Re: Command !! Help !! - by Vince - 18.05.2012, 08:09
Re: Command !! Help !! - by Faisal_khan - 18.05.2012, 08:12

Forum Jump:


Users browsing this thread: 1 Guest(s)