Posts: 727
Threads: 79
Joined: Mar 2012
Reputation:
0
Hello, I'm getting a little confused.
I thought the function SpawnPlayer(playerid); let the player spawn.
Because thats what the name says isn't?
But unfortunately it doesn't work. OnPlayerRequestSpawn and OnPlayerRequestClass are both on Return 1;
And when I click on the spawn button it works fine.
So maybe somebody known a alternative function for this.
Posts: 130
Threads: 12
Joined: Jan 2012
Reputation:
0
yes it is for respawn a player like:
public OnPlayerCommandText(playerid)
{
if(strcmp("/spawn"...) == 0)
{
SpawnPlayer(playerid);
return 1;
}
return 0;
}
but u can use it as admin command for respawn some other player by ID... but for using admin command then uu have to know how to add...
Posts: 727
Threads: 79
Joined: Mar 2012
Reputation:
0
Lol, I know it it's for respawning a player...
But it doesn't work.
But nevermind about this question, I understand you guys cannot help me because my question fails.
Sorry
Posts: 1,355
Threads: 68
Joined: Nov 2011
Reputation:
0
SpawnPlayer is to spawn... When you click spawn it will ofcourse spawn you -.-
Posts: 727
Threads: 79
Joined: Mar 2012
Reputation:
0
omg...
I gues I explained it wrong.
Posts: 1,057
Threads: 90
Joined: May 2009
Reputation:
0
I think you mean you want to use SpawnPlayer at OnPlayerRequestSpawn and OnPlayerRequestClass right?
If that's the question, then no.
Posts: 526
Threads: 59
Joined: Feb 2011
Reputation:
0
You need to set the player's data with SetSpawnInfo first. Only then you can spawn the player.