SA-MP Forums Archive
How to skip Class Requesting (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)
+--- Thread: How to skip Class Requesting (OnPlayerRequestClass)??? (/showthread.php?tid=250452)



How to skip Class Requesting (OnPlayerRequestClass)??? - Nexotronix - 23.04.2011

I tryed:

pawn Код:
return 0;
then

pawn Код:
SpawnPlayer(playerid);
^ This was reason of GTA Blue screen on spawn ^


then
[pawn]SetSpawnInfo(...)[/playerid]

Just tell me, how in RP server skips OnPlayerRequestClass(...) ??


Re: How to skip Class Requesting (OnPlayerRequestClass)??? - Seven_of_Nine - 23.04.2011

Ima bump this for you, cuz I'm interested too..


Re: How to skip Class Requesting (OnPlayerRequestClass)??? - Tommy_Mandaz - 23.04.2011

bump


Re: How to skip Class Requesting (OnPlayerRequestClass)??? - sciman001 - 23.04.2011

Ima also bump because i would like to have this too.


Re: How to skip Class Requesting (OnPlayerRequestClass)??? - Michael@Belgium - 23.04.2011

lol 3 reply's = 3 bumps xD

But i don't think it's possible ..


Re: How to skip Class Requesting (OnPlayerRequestClass)??? - XFlawless - 23.04.2011

https://sampwiki.blast.hk/wiki/SetSpawnInfo


Re: How to skip Class Requesting (OnPlayerRequestClass)??? - Katros - 23.04.2011

PHP код:
public OnPlayerConnect(playeridclassid)
{    
    
SetSpawnInfoplayerid001958.331343.1215.36269.152636281500);
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
SpawnPlayer(playerid);

Recommended


Re: How to skip Class Requesting (OnPlayerRequestClass)??? - Nexotronix - 23.04.2011

Quote:
Originally Posted by Katros
Посмотреть сообщение
PHP код:
public OnPlayerConnect(playeridclassid)
{    
    
SetSpawnInfoplayerid001958.331343.1215.36269.152636281500);
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
SpawnPlayer(playerid);

Recommended
BIG thanks!!!!!! it works, but i have intro like in Deathly Combinations, and after this player spawnig, so i decided show register dialog with changing player's camera pos in public OnPlayerSpawn

Damn thank you dude!


Re: How to skip Class Requesting (OnPlayerRequestClass)??? - sanya_gnoy - 29.08.2012

Quote:
Originally Posted by Katros
Посмотреть сообщение
PHP код:
public OnPlayerConnect(playeridclassid)
{    
    
SetSpawnInfoplayerid001958.331343.1215.36269.152636281500);
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
SpawnPlayer(playerid);

Recommended
does not work

after connect skips class choice, but after pressing F4 player freezes and does not press the button spawn.

how to disable the F4 button(I saw it on some server)? can you give me full code pwn??


Re: How to skip Class Requesting (OnPlayerRequestClass)??? - DarkPower2 - 28.06.2014

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
SetSpawnInfoplayerid001958.331343.1215.36269.152636281500);
    
SpawnPlayer(playerid);
    return 
1;
}

public 
OnPlayerConnect(playerid)
{
    
SetSpawnInfoplayerid001958.331343.1215.36269.152636281500);
    
    
ShowPlayerDialog(playerid1DIALOG_STYLE_MSGBOX"SPAWNER""SPAWN?""YES""NO");
    return 
1;
}

public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    switch(
dialogid)
    {
        case 
1:
        {
            if (
response)
            {
                
SpawnPlayer(playerid);
            }
        }

    }
    return 
1;