SpawnPlayer();
#1

When using SpawnPlayer(); you will be kicked.
The temporarly solution is to use SetSpawnInfo(); before using SpawnPlayer();

I did this but i'm still getting kicked..
Reply
#2

Show your code.
Reply
#3

Quote:
Originally Posted by MP2
View Post
Show your code.
Code:
SetSpawnInfo(playerid, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
And i'm still getting kicked.. SA:MP team fix this! it's so annoying players can't play on my server!
Reply
#4

Quote:
Originally Posted by WackoX
View Post
Code:
SetSpawnInfo(playerid, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
And i'm still getting kicked.. SA:MP team fix this! it's so annoying players can't play on my server!
In which callback/public are you putting the SpawnPlayer and SetSpawnInfo in?
Reply
#5

I use this on my gamemode i use it on the callback OnPlayerRequestClass and on OnPlayerDialogResponse and it doesn't kick my players. maybe your using it wrong.

pawn Code:
public OnPlayerRequestClass(playerid, classid)
{
    SetSpawnInfo(playerid, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
    SpawnPlayer(playerid);
    return 1;
}
Reply
#6

Quote:
Originally Posted by Shadow_
View Post
I use this on my gamemode i use it on the callback OnPlayerRequestClass and on OnPlayerDialogResponse and it doesn't kick my players. maybe your using it wrong.

pawn Code:
public OnPlayerRequestClass(playerid, classid)
{
    SetSpawnInfo(playerid, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
    SpawnPlayer(playerid);
    return 1;
}
Thank you!
I had this problem too, and now it's don't happen .
+rep.
Reply
#7

I'll explain it a littlebit better, this is what i have explained on the easy way:

Code:
public OnPlayerRequestClass()
{
    ShowPlayerDialog();
}
public OnDialogResponse()
{
    LoginPlayer();
}
LoginPlayer()
{
    SetSpawnInfo();
    SpawnPlayer();
}
And i'm still getting kicked, see:

Reply
#8

Works again.
Reply
#9

Set the spawn info and spawn player OnPlayerRequestClass
Reply
#10

pawn Code:
public OnPlayerRequestClass(playerid, classid)
{
    SpawnPlayer(playerid);
    SetSpawnInfo(playerid, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
    return 1;
}
I'm pretty sure it's like that.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)