Avoiding OnPlayerRequestClass
#1

Hi all, I have a question about how to script something.

When player connect to the server, player doesn't see class selection, he see just city. And when he's typing /login pass, he's getting spawned. That's what I want. I don't want Class Selection. How do I make it on blank gamemode?
Reply
#2

pawn Код:
public OnPlayerConnect(playerid)
{
    SpawnPlayer(playerid);
    return 1;
}
Reply
#3

Quote:
Originally Posted by blackwave
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
    SpawnPlayer(playerid);
    return 1;
}
I was trying, doesn't work correctly. It's calling OnPlayerRequestClass anyway
Reply
#4

SpawnPlayer and ForcePlayerClassSelection both leave alot to be desired. I myself have issues with these as do many other people.
Reply
#5

Put player in spectation mode and set camera to look at some position using OnPlayerUpdate. That's how it's done in Grand Larceny.
Reply
#6

SetSpawnInfo()
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)