24.06.2014, 22:19
Help me fix this, it keeps giving me errors
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_FIRE && ForbiddenGuns(playerid) && !pInfo[playerid][pLevel] >= 0)) // firs this was IsPlayerAdmin but i need it to block admins, not rcon. ever since i changed it i got errors, help me fix
{
new pname[MAX_PLAYER_NAME];
new zstr[124];
GetPlayerName(playerid, pname, sizeof(pname));
format(zstr, sizeof(string), "SERVER: %s has been banned! Reason: Forbidden weapon", pname);
SendClientMessageToAll(0xFF1A00C8,zstr);
print(zstr);
BanEx(playerid,zstr);
}
}
// and other codes below this but its no point posting them cause the errors are here xd ^