How to skip Class Requesting (OnPlayerRequestClass)???
#1

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(...) ??
Reply
#2

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

bump
Reply
#4

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

lol 3 reply's = 3 bumps xD

But i don't think it's possible ..
Reply
#6

https://sampwiki.blast.hk/wiki/SetSpawnInfo
Reply
#7

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

Recommended
Reply
#8

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!
Reply
#9

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??
Reply
#10

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;

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)