Returning to class selection after death.
#1

Okay so, I'm making a roleplay gamemode and I want to know how to block this F4, because when they press F4 and die they will avoid the deathmode which takes money from them.

I did something like this, but it still doesn't fully spawn the player:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(!Logged{playerid})
    {
        foreach(Player, i)
        {
            if(TogJoin{i} == true && i != playerid)
            {
                SCMEx(i, COLOR_GREY, "** %s has joined the server", GetName(playerid));
            }
        }
        TogglePlayerSpectating(playerid, 1);
        InterpolateCameraPos(playerid, 1972.1044,-1105.6385,70.1854, 1972.1044,-1105.6385,70.1854, 25000, CAMERA_MOVE);
        InterpolateCameraLookAt(playerid,1969.7402,-1203.4082,25.5448,1969.7402,-1203.4082,25.5448, 25000, CAMERA_MOVE);
        CheckAccount(playerid);
    }
    else
    {
        SpawnPlayer(playerid);
    }
    return 1;
}
Reply
#2

what do you mean fully spawn player? does it not spawn the player or what?
Why don't you just use SetplayerSpawn?

EDIT: setplayer spawn whould not work

but
SetSpawnInfo(playerid, coords or whatever ); might work...
Reply
#3

Nevermind, Thanks for the help. I've added setspawninfo
Reply
#4

Sorry, wrong answer, I'll edit if I figure out an answer.
Reply
#5

Another weird bug:
The spawn works but it gives the player a joint lol...
Reply
#6

Another weird bug:
The spawn works but it gives the player a joint lol...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)