[Question] It's possible to block...
#1

Hello guys,

I would want to make a command to change teams (it's done) - but I will want to know if it's was possible to block the F4 buttons? So when he will press F4 nothing will happen after death. (So he will need to change team only by typing the command).

* I know it's un-usefull - but I want to learn somethings new *
Reply
#2

No it is not possible.
Reply
#3

Try this:

pawn Код:
new FirstSpawn[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    FirstSpawn[playerid] = 0;
    return 1;
}

public OnPlayerSpawn(playerid)
{
    FirstSpawn[playerid] = 1;
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    if (FirstSpawn[playerid] == 1)
    {
        SpawnPlayer(playerid);
    }
    return 1;
}
Reply
#4

@ejb, thanks for trying to help but I don't ask for that. @Jake, ok thanks you for the info.
Reply


Forum Jump:


Users browsing this thread: