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?