06.03.2011, 08:48
pawn Code:
#include <a_samp>
public WeaponCheck() {
for(new i = 0; i < MAX_PLAYERS; i++) { // Neater loop
if(GetPlayerWeapon(i) == 38 && minigun[playerid] == 0) { // You need to use two equal operators.
new
pname[MAX_PLAYER_NAME], // You only need ~24 cells!
string[91]; // You only need ~91 cells!
GetPlayerName(i, pname, sizeof(pname)); // Get the name
format(string, sizeof(string), "-Server- %s has been banned from this server (Reason: Minigun hack)", pname); // Format the string
SendClientMessageToAll(COLOR_RED,string); // Message everyone
Ban(i); // Ban that player
}
}
return 1;
}