Checkpoint Help
#3

Quote:
Originally Posted by twitch2k8
Посмотреть сообщение
OnPlayerEnterCheckpoint snippet here
pawn Код:
if(event[playerid] == 1)
    {
        new string[72];
        format(string, sizeof(string) , "{FFFFFF}[WON] %s{FFFFFF} won the event and got a free ticket!!" ,PlayerName(playerid));
        SendClientMessageToAll(0x0088FFFF, string);
        DisablePlayerCheckpoint(playerid);
        PInfo[playerid][Tickets]=PInfo[playerid][Tickets]+1;
        ServerTickets = ServerTickets+1;
        SaveStuff();
        AdminLog(playerid, "Event Won", "Awarded Ticket", PlayerName(playerid));
        TicketLog( "Server" , PlayerName(playerid), "Event Winner");
        SetPlayerVirtualWorld(playerid, 0);
        SpawnPlayer(playerid);
        FreezePlayerForTime(playerid, 3);
        event[playerid] = 0;
    }
    return 1;
}
Won't DisablePlayerCheckpoint(playerid); just disable the checkpoint for the player that has just finished the event first (triggering OnPlayerEnterCheckpoint), and not for other players in the event until they finish?
Reply


Messages In This Thread
Checkpoint Help - by Ashley - 11.04.2012, 02:23
Re: Checkpoint Help - by Ashley - 11.04.2012, 14:00
Re: Checkpoint Help - by linuxthefish - 11.04.2012, 22:46

Forum Jump:


Users browsing this thread: 1 Guest(s)