Spawn problem
#1

I've got a spawn problem, wich i had in past scripts and i have no clue how to fix it up.
I add the next code in the script:
pawn Код:
SpawnPlayer(playerid);
In any part of my script that would be logic to add in, my problem is, it doesnt spawns, it still shows the skin bar(added in 0.3a), wich i DONT want to be there.

I've tried adding SetSpawnInfo but it spawns me, BUT it sets me skin 0 (idk why) and it shows radar and etc, i tried adding TogglePlayerSpectating but still dont works.

If you guys have any clue it would be really usefull and +rep.

Thanks,
Marricio.
Reply
#2

Put this in your login script:

pawn Код:
SpawnPlayer(playerid);
Reply
#3

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
Put this in your login script:

pawn Код:
SpawnPlayer(playerid);
I said i added that in most logic places, including that.
Reply
#4

is it your own script or editing one ?
Reply
#5

Quote:
Originally Posted by RoleplayEditor
Посмотреть сообщение
is it your own script or editing one ?
Its my own script.
Reply
#6

What do you exactly want to do? Skip the class selection and spawn the player?
Reply
#7

Exactly, something like that.
Reply
#8

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SpawnPlayer(playerid);
    return 0;//You have to return 0 to skip the class selection!
}
Reply
#9

Shame it didnt worked, I'm making a roleplay script so after it logins in or register the skin bar shows up.
Reply
#10

I suggesting killing the player. (Set health to 0.0)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)