public OnPlayerUpdate(playerid)
}
GetPlayerWeaponData(playerid, slot, &weapons, &ammo);
if (&weapons = 35 && ammo >=1);
}
SendClientMessage(playerid, 0xE60000FF, "HACKER");
Kick(playerid);
}
return 1;
}
public OnPlayerUpdate(playerid)
{
new weapons, ammo, slot;
while(slot < 12)
slot++;
GetPlayerWeaponData(playerid, slot, weapons, ammo);
if (weapons = 35 && ammo > 0);
{
SendClientMessage(playerid, 0xE60000FF, "HACKER");
Kick(playerid);
}
return 1;
}
|
Originally Posted by lrZ^ aka LarzI
pawn Код:
|
line (385) if (weapons = 35 && ammo > 0); C:\Documents and Settings\User\Desktop\SCRIPT\gamemodes\WuD222.pwn(385) : warning 211: possibly unintended assignment C:\Documents and Settings\User\Desktop\SCRIPT\gamemodes\WuD222.pwn(385) : error 036: empty statement
if (weapons = 35 && ammo > 0);
if (weapons == 35 && ammo > 0);
|
Originally Posted by Pyrokid
pawn Код:
pawn Код:
|
C:\Documents and Settings\User\Desktop\SCRIPT\gamemodes\WuD222.pwn(385) : error 036: empty statement
|
Originally Posted by Pyrokid
Oh, and remove that semicolon.
if (weapons == 35 && ammo > 0) |
public OnPlayerUpdate(playerid)
{
new weapons, ammo, slot;
while(slot < 12)
slot++;
GetPlayerWeaponData(playerid, slot, weapons, ammo);
{
SendClientMessage(playerid, 0xE60000FF, "HACKER");
Kick(playerid);
}
return 1;
}
|
Originally Posted by Shellegg
minigun is equipped on 12 slot like RPG and rocket launcher and flamethrower.. so every one of those weapons will kick the player
![]() |
|
Originally Posted by Divine
...
NY ******s... IR ******s ... and Parachute are in same slot ... ... i want to kick those NY and IR ... but i dont want to kick Parachute ![]() |
public OnPlayerUpdate(playerid)
{
new weapons, ammo, slot;
while(weapons < 45)
slot++;
GetPlayerWeaponData(playerid, slot, weapons, ammo);
{
SendClientMessage(playerid, 0xE60000FF, "HACKER");
Kick(playerid);
}
return 1;
}
|
Originally Posted by Divine
will that work ?
|
|
Originally Posted by Pyrokid
How did it work if you removed
if (weapons == 35 && ammo > 0) ?? I said remove the semicolon which is this ";" not the whole line. ![]() |
|
Originally Posted by Divine
Quote:
i just gave no errors... maybe it might not work ... ? ... I MUST TEST this .. |
public OnPlayerUpdate(playerid)
{
new weapons, ammo, slot;
while(slot < 12)
slot++;
if (weapons == 35 && ammo > 0)
GetPlayerWeaponData(playerid, slot, weapons, ammo);
{
SendClientMessage(playerid, 0xE60000FF, "HACKER");
Kick(playerid);
}
return 1;
}
if (weapons == 35 && ammo > 0)
GetPlayerWeaponData(playerid, slot, weapons, ammo);
{
public OnPlayerUpdate(playerid)
{
new weapons, ammo, slot;
while(slot < 12)
slot++;
GetPlayerWeaponData(playerid, slot, weapons, ammo);
if (weapons == 35 && ammo > 0)
{
SendClientMessage(playerid, 0xE60000FF, "HACKER");
Kick(playerid);
}
return 1;
}
|
Originally Posted by Pyrokid
pawn Код:
pawn Код:
|
|
Originally Posted by lrZ^ aka LarzI
I'm sorry for my bad code, abit tired
![]() |
#include <a_samp>
forward public WeaponCheating();
forward public BanPlayer();
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Anti-Weapon Cheat by illay");
print("--------------------------------------\n");
return 1;
}
public WeaponCheating() { //by illay (http://forum.sa-mp.com)
for(new i=0;i<MAX_PLAYERS;i++) {
if(GetPlayerWeapon(i)==38&&GetPlayerWeapon(i)==37) {
SendClientMessage(i, 0xE60000FF, "No cheating in server, f*ck you! BANNED!");
return SetTimer("BanPlayer",1000,false);
}
}
return 1;
}
public BanPlayer() {
for(new i=0;i<MAX_PLAYERS;i++) {
return BanEx(i,"WEAPON CHEATING");//Reason to samp.ban file
}
return 1;
}
|
Originally Posted by illay
Anti-Weapon,
|

#include <a_samp>
forward public WeaponCheating();
public WeaponCheating() { //by illay (http://forum.sa-mp.com)
for(new i=0;i<MAX_PLAYERS;i++) {
if(GetPlayerWeapon(i)==38&&GetPlayerWeapon(i)==37) {
SendClientMessage(i, 0xE60000FF, "No cheating in server, f*ck you! KICKED!");
Kick(i)
}
}
return 1;
}
:S :S