[Help] Forces the user to spawn - 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)
+--- Thread: [Help] Forces the user to spawn (
/showthread.php?tid=326758)
[Help] Forces the user to spawn -
VMe89 - 18.03.2012
Hello! I've been looking for a script that forces the user to spawn. I have tried searching the forums but found nothing that works. I use
https://sampforum.blast.hk/showthread.php?tid=285755 as a template to get it done quickly.
Best regards, Tomas
Re: [Help] Forces the user to spawn -
Jonny5 - 18.03.2012
you mean to re select the class?
i use this YCMD command
edit it how you like
pawn Код:
YCMD:reclass(playerid, params[], help)
{
#pragma unused params
if (help)
{
SendClientMessage(playerid, 0xFF0000AA, "Pick A New Class.");
}
else
{
ForceClassSelection(playerid);
TogglePlayerSpectating(playerid, 1);
SendClientMessage(playerid,-1,"Returning To Class Selection ... Please Wait.");
TogglePlayerSpectating(playerid, 0);
}
return 1;
}
This forum requires that you wait 120 seconds between posts. Please try again in 6 seconds. <~~~ lol
Re: [Help] Forces the user to spawn -
Tanush123 - 18.03.2012
I think this is what you mean.
Re: [Help] Forces the user to spawn -
VMe89 - 18.03.2012
No. Want to have so that it spawns the user with the skin they logged out last with. I save everything in the database pos and skin. I've got it so they will go where they logged out last, but they must press the "spawn" button to get into the game. That's what I want to avoid that people should have to do.
Re: [Help] Forces the user to spawn -
VMe89 - 18.03.2012
Quote:
Originally Posted by Tanush123
I think this is what you mean.
|
Can not make it work. I have put it everywhere.
Re: [Help] Forces the user to spawn -
Tanush123 - 18.03.2012
When player disconnects, save the skin in a variable. And under your player login, do this
pawn Код:
SpawnPlayer(playerid);
SetPlayerSkin(playerid,Oldskin[playerid]);//edit oldskin to your variable
Re: [Help] Forces the user to spawn -
VMe89 - 18.03.2012
Quote:
Originally Posted by Tanush123
When player disconnects, save the skin in a variable. And under your player login, do this
pawn Код:
SpawnPlayer(playerid); SetPlayerSkin(playerid,Oldskin[playerid]);//edit oldskin to your variable
|
ok
![Smiley](images/smilies/smile.png)
Thx. Its works now.