[HELP] SetSpawnInfo doesnt work?
#1

Hi,

Today i tried to add a SetSpawnInfo into OnPlayerClassSelection, but it still shown the class selection. But SetSpawnInfo might spawn player with any class selection or something (direct spawn after connected), isnt it?

I've used it like this:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 );
}
It's the same code with samp's SetSpawnInfo tut. But it doesnt work, too. Whats wrong here?
Reply
#2

Wait, you want direct spawn after connect?!
Reply
#3

Quote:
Originally Posted by vakhtang
Посмотреть сообщение
Wait, you want direct spawn after connect?!
HELL YEAH!!

(I want to remove that class selection...)
Reply
#4

SpawnPlayer(playerid);
Reply
#5

Код:
public OnPlayerRequestClass(playerid, classid)
{
       SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 );
       SpawnPlayer(playerid);
}
Reply
#6

Quote:
Originally Posted by [HUN]Jaki
Посмотреть сообщение
Already know it, but sometimes even "spawnplayer" doesnt work. It still shows class selection.
Reply
#7

ahh yeah, thanks for ideas, especially armyoftwo's one. Solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)