#1

Hello.

I need help, how to make an stuck command. I searched but didnt found anything
Reply
#2

Stuck command?
pawn Код:
CMD:stuck(playerid, params[])
{
    new Float:Pos[3];
    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]+1);
    TogglePlayerControllable(playerid, 1);
    ClearAnimations(playerid);
    return 1;
}
I didn't understand you very well so i just did this for you it unfreezes him clear his animations and then puts him 1 metre from the ground then releases him.
Reply
#3

No, i need to make a command like if an player is stuck in a vehicle and he cant exit that it add his cordinate +10.

SORRY FOR BAD ENGLISH
Reply
#4

Here then
pawn Код:
CMD:stuck(playerid, params[])
{
    new Float:Pos[3];
    if(IsPlayerInAnyVehicle(playerid))
    {
        GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
        SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]+10);
    }
    else
    {
        SendClientMessage(playerid, -1, "You are not in a vehicle!");
    }
    return 1;
}
Reply
#5

Never mind fixed it by my self but thanks for the help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)