Skip to content
Permalink
Browse files
Update General.pwn (#794)
* Update General.pwn

* Update WeaponUtilities.pwn
  • Loading branch information
FreakinsPL committed Jul 22, 2020
1 parent 7e5633c commit 4157b47f471de17f58af7d18cf858264bbdeb734
Showing 1 changed file with 5 additions and 5 deletions.
@@ -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;
}

@@ -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;
}

@@ -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;
}

0 comments on commit 4157b47

Please sign in to comment.