Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update HideGame.pwn #227

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions pawn/Elements/Player/Tow.pwn
Expand Up @@ -111,7 +111,7 @@ lvp_tow(playerid, params[])
else
{
// Is the ID valid?
if(location < 0 || location >= NumberOfTowLocations)
if(location < 0 || location > NumberOfTowLocations)
return SendClientMessage(playerid, Color::Red, "You entered an invalid location ID!");

// Lets take their money and tow them!
Expand Down Expand Up @@ -162,4 +162,4 @@ CanPlayerUseTow(playerid)
// If the previous conditions aren't true, then we don't let him use tow.
else
return false;
}
}
6 changes: 3 additions & 3 deletions pawn/Resources/Minigames/Core/HideGame.pwn
Expand Up @@ -125,7 +125,7 @@ new Menu:mLocationMenu3;
new aHidePlayerState[MAX_PLAYERS];
new iSeekerPlayer;
new iHideGameSignups = 0;
new iFrozenCount = 60;
new iFrozenCount = 20;//better than 60 Second
new iFrozenCountDown;
new iHideStartTimer;
new iHideSecondCountDown;
Expand Down Expand Up @@ -1369,7 +1369,7 @@ CHideGame__ResetVariables()
iHideGameState = HS_STATE_NONE;
iSeekerPlayer = INVALID_PLAYER_ID;
iHideGameSignups = 0;
iFrozenCount = 60;
iFrozenCount = 20;
iMapRunning = -1;

// Reset the per-player information.
Expand Down Expand Up @@ -1462,7 +1462,7 @@ public CHideGame__Start()
aHidePlayerState[playerId] = HS_STATE_PLAYING;
SetPlayerInterior(playerId, aLocationInfo[ iMapRunning ] [ 2 ]);
SetPlayerPos(playerId, aLocationCoordinates[ iMapRunning ] [ 0 ], aLocationCoordinates[ iMapRunning ] [ 1 ], aLocationCoordinates[ iMapRunning ] [ 2 ] );
SendClientMessage(playerId, COLOR_LIGHTBLUE, "* You have 60 seconds to find yourself a hiding place! What are you waiting for? Go!");
SendClientMessage(playerId, COLOR_LIGHTBLUE, "* You have 20 seconds to find yourself a hiding place! What are you waiting for? Go!");

ColorManager->setPlayerMinigameColor(playerId, 0xFFFFFF00);

Expand Down