SpawnPlayer(playerid);
#1

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

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...
Reply
#3

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
Reply
#4

SpawnPlayer is to spawn... When you click spawn it will ofcourse spawn you -.-
Reply
#5

omg...
I gues I explained it wrong.
Reply
#6

maybe LoL
Reply
#7

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

I think you mean you want to use SpawnPlayer at OnPlayerRequestSpawn and OnPlayerRequestClass right?
If that's the question, then no.
Reply
#9

You need to set the player's data with SetSpawnInfo first. Only then you can spawn the player.
Reply
#10

Quote:
Originally Posted by Shetch
View Post
You need to set the player's data with SetSpawnInfo first. Only then you can spawn the player.
Yep I found that out too, but still thanks for your help. (including you Gertin)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)