07.02.2017, 21:12
Hello, i downloaded a filterscript that when you die, the weapon is on the ground, so, when im trying to get it, the server kicks me for " hack weapon ".
This is the stuff i think , sorry for asking but i can't fix it!.
hackerTrigger(playerid,newweapon){
if(!gPlayerLogged{playerid}) { return 1; }
if(Info[playerid][pTut] == 0) { return 1; }
if(GetPVarInt(playerid, "IsInArena") == 1) { return 1; }
new reason[94],string[94];
format(string, sizeof(string), "AdmWarning: {FFFFFF}%s - Weapon Hacking (%s).", GetPlayerNameEx(playerid), WeaponNames[newweapon]);
ABroadCast(COLOR_ORANGE,string, 2);
format(string, sizeof(string), "AdmCmd: %s fue expulsado por el servidor, razуn: weapon hack", GetPlayerNameEx(playerid));
SendClientMessageToAllEx(COLOR_LIGHTRED, string);
SafeDialogEx(playerid,INVALID_DIALOG,DIALOG_STYLE_ MSGBOX,"Haz sido expulsado del servidor","El Servidor\nte ha expulsado\nRazon: Weapon Hack","Salir","");
SetTimerEx("KickxD",500,0,"d",playerid);
format(reason, sizeof(reason), "Weapon Hacking (%s).", WeaponNames[newweapon]);
return 1;
}
This is the stuff i think , sorry for asking but i can't fix it!.
hackerTrigger(playerid,newweapon){
if(!gPlayerLogged{playerid}) { return 1; }
if(Info[playerid][pTut] == 0) { return 1; }
if(GetPVarInt(playerid, "IsInArena") == 1) { return 1; }
new reason[94],string[94];
format(string, sizeof(string), "AdmWarning: {FFFFFF}%s - Weapon Hacking (%s).", GetPlayerNameEx(playerid), WeaponNames[newweapon]);
ABroadCast(COLOR_ORANGE,string, 2);
format(string, sizeof(string), "AdmCmd: %s fue expulsado por el servidor, razуn: weapon hack", GetPlayerNameEx(playerid));
SendClientMessageToAllEx(COLOR_LIGHTRED, string);
SafeDialogEx(playerid,INVALID_DIALOG,DIALOG_STYLE_ MSGBOX,"Haz sido expulsado del servidor","El Servidor\nte ha expulsado\nRazon: Weapon Hack","Salir","");
SetTimerEx("KickxD",500,0,"d",playerid);
format(reason, sizeof(reason), "Weapon Hacking (%s).", WeaponNames[newweapon]);
return 1;
}