TDM bug
#1

Hello, I have a problem: I have amde and TDM system, that when match ends player gets teleported to another area, but if new player connects, he gets teleported to an old area if it has changed. any ideas how to fix it?

If you need a part of my script, post it here.

RenisiL
Reply
#2

You can make a easy variable like

pawn Код:
new Stage;
And then

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(Stage == 1)
    {
        SetPlayerPos(...)
    }
    else if(Stage == 2)
    {
        SetPlayerPos(...)
    }
...
Edit: When the match ends you must do this:

pawn Код:
Stage = (NewStage);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)