[ASK]Auto Spawn
#1

how to auto spawn player after login?
like this..



i want remove that 'Spawn Tool Bar' and Auto Spawn Player..

please help me!!..
Reply
#2

pawn Код:
public OnPlayerConnect(playerid)
{
SpawnPlayer(playerid);
return 1;
}
Reply
#3

Quote:
Originally Posted by Seven.
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
SpawnPlayer(playerid);
return 1;
}
After login, not connect.

If you have an OnPlayerLogin callback in your script, put SpawnPlayer(playerid); in where they log in.
Reply
#4

Quote:
Originally Posted by Seven.
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
SpawnPlayer(playerid);
return 1;
}
not working..
that's "Spawn Tool Bar" still appear..
and not auto spawn player.. T_T
Reply
#5

At OnPlayerConnect Do:
pawn Код:
TogglePlayerSpectating(playerid, 1);
And when the player log in, do:
pawn Код:
TogglePlayerSpectating(playerid, 0);
Reply
#6

yeay..
Thank's.. that's work!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)