SA-MP Forums Archive
i have big problem - 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: i have big problem (/showthread.php?tid=635686)



i have big problem - s3ek - 12.06.2017

i have big problem in my server some hacks use 'unknown cheats' and bug sound .. hack can play sound to all players online!!!! i don't know what problem this is code:

PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
 if(
issuerid != INVALID_PLAYER_ID) PlayerPlaySound(issuerid, 17802, 0.0, 0.0, 0.0);
 if(
issuerid != INVALID_PLAYER_ID && iwar[playerid] == 0 && PlayerInfo[playerid][Level] == 0){
 
iwar[playerid]=1;
 
cmde[playerid]=1;
 
SetTimerEx("jetas", 4000, false, "i", playerid);
 }
 return 
1;
} 
pleas help me