10.09.2009, 15:08
Use "||" in the if statement, instead of the commas. Also, where you've added "playerid", replace it with "i".
Use this code instead, it will be more efficient and beneficial for your administration:
You'll have to sort the indentation out, though.
Use this code instead, it will be more efficient and beneficial for your administration:
pawn Код:
for (new i = 0; i < MAX_PLAYERS; i++)
{
new weapon[128], string[128];
switch(GetPlayerWeapon(i))
{
case 38, 37, 21, 9, 8, 7, 6, 18, 32, 28, 36, 40:
{
format(string, sizeof(string), "WARNING: %s has obtained a potentially hacked weapon (%s).", name, weapon);
SendClientMessageToAdmins(RED, string);
}
}
}