How can i locked key in OnPlayerRequestClass?
#1

TogglePlayerControllable doesnt work.How can i do this?
Reply
#2

Well, it does work.. If you're trying to stop people spawning try:

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    return 0;
}
That will stop anyone spawning. If you want to stop certain people spawning, try something like:

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(PlayerSpawn == 1) return 1;
    else return 0;
}
That will only allow the player to spawn if PlayerSpawn == 1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)