[Help] Forces the user to spawn
#1

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
Reply
#2

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
Reply
#3

pawn Код:
SpawnPlayer(playerid);
I think this is what you mean.
Reply
#4

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.
Reply
#5

Quote:
Originally Posted by Tanush123
Посмотреть сообщение
pawn Код:
SpawnPlayer(playerid);
I think this is what you mean.
Can not make it work. I have put it everywhere.
Reply
#6

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
Reply
#7

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 Thx. Its works now.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)