Skip to content

Commit

Permalink
Update General.pwn (#794)
Browse files Browse the repository at this point in the history
* Update General.pwn

* Update WeaponUtilities.pwn
  • Loading branch information
FreakinsPL authored Jul 22, 2020
1 parent 7e5633c commit 4157b47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pawn/Elements/Player/Commands/General.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ ExecuteSlapCommand(playerId, targetPlayerId) {
// Author: Jay, Russell
lvp_slap(playerId, params[]) {
if(!params[0]) {
SendClientMessage(playerId, Color::Information, "Usage: /slap [player]");
SendClientMessage(playerId, Color::Information, "Usage: /slap [player], /slapback");
return 1;
}

Expand All @@ -363,8 +363,8 @@ lvp_slap(playerId, params[]) {
UndercoverAdministrator(playerId)->getOriginalUserId() == 31797;

new timeSinceLastSlap = Time->currentTime() - g_LastSlapTime[playerId];
if (timeSinceLastSlap < 10 /* seconds */ && !isLuce) {
SendClientMessage(playerId, Color::Warning, "Error: You can only slap once per 10 seconds.");
if (timeSinceLastSlap < 7 /* seconds */ && !isLuce) {
SendClientMessage(playerId, Color::Warning, "Error: You can only slap once per 7 seconds.");
return 1;
}

Expand Down Expand Up @@ -397,8 +397,8 @@ lvp_slapb(playerId, params[]) {
}

new timeSinceLastSlap = Time->currentTime() - g_LastSlapTime[playerId];
if (timeSinceLastSlap < 10 /* seconds */) {
SendClientMessage(playerId, Color::Warning, "Error: You can only slap once per 10 seconds.");
if (timeSinceLastSlap < 7 /* seconds */) {
SendClientMessage(playerId, Color::Warning, "Error: You can only slap once per 7 seconds.");
return 1;
}

Expand Down

0 comments on commit 4157b47

Please sign in to comment.