SA-MP Forums Archive
Avoiding OnPlayerRequestClass - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Avoiding OnPlayerRequestClass (/showthread.php?tid=210184)



Avoiding OnPlayerRequestClass - NiXeL - 12.01.2011

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?


Re: Avoiding OnPlayerRequestClass - blackwave - 12.01.2011

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



Re: Avoiding OnPlayerRequestClass - NiXeL - 12.01.2011

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


Re: Avoiding OnPlayerRequestClass - Infamous - 12.01.2011

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


Re: Avoiding OnPlayerRequestClass - Sergei - 12.01.2011

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


Re: Avoiding OnPlayerRequestClass - hanzen - 12.01.2011

SetSpawnInfo()