Completely Remove Player Class - 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)
+--- Thread: Completely Remove Player Class (
/showthread.php?tid=443817)
Completely Remove Player Class -
ChrisMorasco - 13.06.2013
I was wondering, can you remove player class selection not avoid it with timers or spawnplayer() but remove it completely
Re: Completely Remove Player Class -
ChrisMorasco - 14.06.2013
Anyone
AW: Completely Remove Player Class -
Nero_3D - 14.06.2013
It cant be removed, doesn't SpawnPlayer work under OnPlayerRequestClass after you set a class ?
Re: Completely Remove Player Class -
Sandiel - 14.06.2013
I think what you wanna do is return 0; under the OnPlayerRequestClass callback, from what I understood, hope this helps.
Re: Completely Remove Player Class -
Anak - 14.06.2013
pawn Код:
public OnPlayerRequestClass(playerid)
{
SpawnPlayer(playerid);
return 1;
}
if it don't work add a timer also.
Re: Completely Remove Player Class -
ChrisMorasco - 14.06.2013
I was just wondering if it can be removed because i have a register dialog and after that there are dialogs with questions age,gender etc... And when the player answers all of the questions it won't let him spawn so is there a way to delay the class selection so it would let the player spawn!
Re: Completely Remove Player Class -
ChrisMorasco - 14.06.2013
Quote:
Originally Posted by Sandiel
I think what you wanna do is return 0; under the OnPlayerRequestClass callback, from what I understood, hope this helps.
|
No that doesn't work i tried it!
Re: Completely Remove Player Class -
S0n1COwnsYou - 14.06.2013
like Anak Said
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
SetSpawnInfo(playerid,NO_TEAM,299,1958.3783,1343.1572,15.3746,270,0,0,0,0,0,0);
SpawnPlayer(playerid);
return 1;
}
just tested it and it work