SA-MP Forums Archive
Class selection - 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: Class selection (/showthread.php?tid=100435)



Class selection - [CK]Steel - 04.10.2009

How can I make it so that when the player connects on the server and it does not show the class selectiion, and only it will show up if the player presses the "f4" key on the keyboard and types /kill


Re: Class selection - [CK]Steel - 06.10.2009

Bumping it.


Re: Class selection - _Vortex - 06.10.2009

Someone correct me if I'm wrong, but I think that's impossible.


Re: Class selection - Crusher!! - 06.10.2009

lalalala......
Quote:
Originally Posted by Pawno script:
public OnPlayerConnect(playerid)
{
SpawnPlayer(playerid); // <- CLICK!
SetPlayerPos(playerid,x,y,z); // <- CLICK!
return 1;
}



Re: Class selection - _Vortex - 06.10.2009

Quote:
Originally Posted by Crusher!!
lalalala......
Quote:
Originally Posted by Pawno script:
public OnPlayerConnect(playerid)
{
SpawnPlayer(playerid); // <- CLICK!
SetPlayerPos(playerid,x,y,z); // <- CLICK!
return 1;
}
I'll get back to you on that to see if it works.

EDIT: No, it doesn't


Re: Class selection - Crusher!! - 06.10.2009

let it works... let it works... let it works... xD,

i think it must be work because... the Wiki samp page says:
Quote:
Originally Posted by Wiki SA-MP
Rather then waiting until someone is ready to spawn (or if you just want to respawn the player for any reason), this is the function you should use. This function immediately respawns the player on the location set by AddPlayerClass or SetSpawnInfo. The function is working perfectly.
EDIT: DAMM...... maybe it works when you put it @ OnPlayerRequestClass


Re: Class selection - _Vortex - 06.10.2009

Quote:
Originally Posted by Crusher!!
let it works... let it works... let it works... xD,

i think it must be work because... the Wiki samp page says:
Quote:
Originally Posted by Wiki SA-MP
Rather then waiting until someone is ready to spawn (or if you just want to respawn the player for any reason), this is the function you should use. This function immediately respawns the player on the location set by AddPlayerClass or SetSpawnInfo. The function is working perfectly.
EDIT: DAMM...... maybe it works when you put it @ OnPlayerRequestClass
Nope.