Moin,
bin dabei ein Anti Waffenhack zu machen, doch es passiert nichts,
wenn man mit einer Minigun rumläuft, egal ob Admin On-Duty oder nicht.
Es kommt keine Meldung, nichts...
- new name1[MAX_PLAYERS],string[128];
if(IsPlayerConnected(playerid)){
if(aduty[playerid] != 1){
if(GetPlayerWeapon(playerid) == 1 || GetPlayerWeapon(playerid) == 2 || GetPlayerWeapon(playerid) == 3 || GetPlayerWeapon(playerid) == 4 || GetPlayerWeapon(playerid) == 5 || GetPlayerWeapon(playerid) == 6 || GetPlayerWeapon(playerid) == 7|| GetPlayerWeapon(playerid) == 8){
if(GetPlayerWeapon(playerid) == 9 || GetPlayerWeapon(playerid) == 10|| GetPlayerWeapon(playerid) == 11|| GetPlayerWeapon(playerid) == 12 || GetPlayerWeapon(playerid) == 13|| GetPlayerWeapon(playerid) == 14|| GetPlayerWeapon(playerid) == 15|| GetPlayerWeapon(playerid) == 16){
if(GetPlayerWeapon(playerid) == 17|| GetPlayerWeapon(playerid) == 18|| GetPlayerWeapon(playerid) == 19 ||GetPlayerWeapon(playerid) == 20 || GetPlayerWeapon(playerid) == 21 || GetPlayerWeapon(playerid) == 22 || GetPlayerWeapon(playerid) == 26){
if(GetPlayerWeapon(playerid) == 27 || GetPlayerWeapon(playerid) == 28 || GetPlayerWeapon(playerid) == 32 || GetPlayerWeapon(playerid) == 33 || GetPlayerWeapon(playerid) == 36 || GetPlayerWeapon(playerid) == 37 || GetPlayerWeapon(playerid) == 38 || GetPlayerWeapon(playerid) == 39){
if(GetPlayerWeapon(playerid) == 40 || GetPlayerWeapon(playerid) == 41 || GetPlayerWeapon(playerid) == 42 || GetPlayerWeapon(playerid) == 43 || GetPlayerWeapon(playerid) == 44 || GetPlayerWeapon(playerid) == 4 || GetPlayerWeapon(playerid) == 46){
GetPlayerName(playerid,name1,sizeof(name1));
format(string,sizeof(string),"System: %s wurde gebannt. Grund: Waffenhack",name1);
printf(string);
SendClientMessageToAll(RED, string);
SendClientMessage(playerid, RED, "Melde dich bei einen Admin auf unserem Teamspeak 3, wenn du einen Einwand hast. (*********)");
SpielerInfo[playerid][Banned] = 1;
Kick(playerid);}
}
}
}
}
}
}
Hab kp woran es liegt
MfG Farid