help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help (
/showthread.php?tid=587266)
help -
ahameed4755 - 29.08.2015
is there anyway to stop f abuse,g abuse, and spray bug
Re: help -
SumX - 29.08.2015
describe the bugs
Re: help -
darkhunter332 - 29.08.2015
as i said,Look for system that people made.
Go to search!
Re: help -
Banana_Ghost - 31.08.2015
Spray (Weapon Switch) bug was fixed in 0.3.7.
G-Abuse -
https://sampforum.blast.hk/showthread.php?tid=353258
Anti F-Abuse -
This below could possibly help you with such.
pawn Код:
CMD:dance(playerid, params[])
{
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_ENTER_VEHICLE)
return SendClientMessage(playerid, -1, "You can't use this command while entering a vehicle.");
else
{
switch(strval(params))
{
case 1: SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE1);
case 2: SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE2);
case 3: SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE3);
case 4: SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE4);
default: SendClientMessage(playerid,-1,"Invalid dance style.");
}
}
return 1;
}
// Below could be vastly improved.
// Below might not even work, but it's worth a try.
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SECONDARY_ATTACK)
{
if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_NONE && !IsPlayerInAnyVehicle(playerid))
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
}
}
return 1;
}