Robbing Mall Help [Timers]
#1

Right, I need help making this...

when I enter the checkpoint, and restart the server, the server restarts but there's no gamemode, and once I have entered the checkpoint once, and even when i restart the server... the server restarts again after 30 seconds, can anyone help me please...
pawn Code:
forward disable(playerid);
public disable(playerid)
{
    SendRconCommand("gmx");
    DisablePlayerCheckpoint(playerid);
    GameTextForPlayer(playerid, "~r~ The raiders won! Server restarting...",5000, 5);
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    if(gTeam[playerid] == RAIDERS)
    {
        new string[128];
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s (ID:%d) is now robbing the bank! Kill him", pname);
        SendClientMessageToAll(COLOR_RED, string);
        GameTextForPlayer(playerid, "~r~robbing the mall, stay in checkpoint for 30 seconds", 5000, 5);
        SetTimer("disable", 30000, true);
    }
    return 1;
}
Reply


Messages In This Thread
Robbing Mall Help [Timers] - by BigAl - 24.08.2011, 13:16
Re: Robbing Mall Help [Timers] - by =WoR=G4M3Ov3r - 24.08.2011, 13:40
Re: Robbing Mall Help [Timers] - by Wesley221 - 24.08.2011, 13:42

Forum Jump:


Users browsing this thread: 2 Guest(s)