SA-MP Forums Archive
Two questions - 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: Two questions (/showthread.php?tid=177206)



How to spawn without class selection - PixeledNinja - 16.09.2010

I'm wanting to completely skip skin selection, this is my current code:
Код:
public OnPlayerRequestClass(playerid, classid)
{
    SpawnPlayer(playerid);
    return 1;
}
This works..sort of, I still have to click the Spawn button to actually spawn my player. I also still see the < > Spawn and the bottom of the screen, the buttons. How can I skip this?


Re: Destroying the game's time - BP13 - 16.09.2010

TogglePlayerClock(playerid, false);


Re: Two questions - PixeledNinja - 16.09.2010

Thanks, any ideas for the second question?


Re: Two questions - BP13 - 16.09.2010

Not sure if this works I just found it. try this:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    return 0;
}



Re: Two questions - PixeledNinja - 16.09.2010

I've tried that, All it does is make the buttons still appear, but when I click them nothing happens.


Re: Two questions - Flake. - 16.09.2010

try add SpawnPlayer(playerid); under OnPlayerConnect


Re: Two questions - PixeledNinja - 16.09.2010

I've added that to:
OnPlayerConnect
My login/registration systems

Any other ideas? I know it's possible, because I've seen way to many RP scripts with it.


Re: Two questions - BP13 - 16.09.2010

Well I do not know how to. But I suggest you change the name of your topic to "How to spawn without class selection" or something like that so you will get more replies.