[HELP] Connection buttons - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Connection buttons (
/showthread.php?tid=196782)
[HELP] Connection buttons -
Pooh7 - 06.12.2010
hi
how to remove
<<< | >>> | Spawn button on player connection?
I have textdraw on place where is this button, so i want to remove it.
Is it possible?
Re: [HELP] Connection buttons -
SkizzoTrick - 06.12.2010
Put this
pawn Код:
public OnPlayerConnect(...)
{
SpawnPlayer(playerid);
return 1;
}
MY 300th POST!!!!!!
Re: [HELP] Connection buttons -
Pooh7 - 06.12.2010
No...
Textdraw is actually intro, and server check if player have registered account. If no, server will show couple textdraws. After that, on scene become server rules, registration, blabla.
One more reason why I can't do that on your way, it's because if is player spawned without registration(login), server will kick him.
Quote:
Originally Posted by SkizzoTrick
MY 300th POST!!!!!!
|
Congratulations
Re: [HELP] Connection buttons -
SkizzoTrick - 06.12.2010
Quote:
Originally Posted by Pooh7
No...
Textdraw is actually intro, and server check if player have registered account. If no, server will show couple textdraws. After that, on scene become server rules, registration, blabla.
One more reason why I can't do that on your way, it's because if is player spawned without registration(login), server will kick him.
Congratulations
|
You need to update that on your script like me,look:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if (gPlayerLogged[playerid] != 1)
{
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
if (!dini_Exists(file))
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Hello and Welcome! International Airport.", "You need a passport,please register", "Register", "Leave");
}
if(fexist(file))
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Hello! This is International Airport.", "Please tell me some information about you((Password))", "Login", "Leave");
}
SetPlayerCameraPos(playerid, 1014.5112,-1483.1392,89.9052);
SetPlayerCameraLookAt(playerid, 1372.2992,-1976.3547,73.5682);
}
else
{
SpawnPlayer(playerid);
}
return 1;
}
I made the login/registration before Requesting class
Re: [HELP] Connection buttons -
Alex_Valde - 06.12.2010
When the player connects:
pawn Код:
TogglePlayerSpectating(playerid, true);
When Player spawns:
pawn Код:
TogglePlayerSpectating(playerid, false);
But keep in mind this will by pass the whole "class selection" screen so you will need to assign the skin to the player before he spawns.