public OnPlayerUpdate(playerid)
new weaponid = GetPlayerWeapon(playerid); new Nam[MAX_PLAYER_NAME]; new str[128];
public OnPlayerUpdate(playerid) { new weaponid = GetPlayerWeapon(playerid);//This will cause the "weaponid not defined" Error new Nam[MAX_PLAYER_NAME]; new str[128]; if(weaponid == 16) // The weapon ID { GetPlayerName(playerid,Nam,sizeof(Nam)); format(str,sizeof(str),"ANTI WEAPON HACK: %s has been banned from server for spawning a bad weapon!",Nam); SendClientMessageToAll(0xFF0000FF,str); BanEx(playerid,"ANTI WEAPON HACK: Weapon Hack!"); } return 1; }
if(weaponid == 16) // The weapon ID //The number i add 16 is for gernade :p you can make plenty of lines and you can change the number if you want to so that people cant get the weapon reach them,,,if it reached them the player is banned >:D public OnPlayerUpdate(playerid) { new weaponid = GetPlayerWeapon(playerid);//This ...!will cause the "weaponid not defined" Error new Nam[MAX_PLAYER_NAME]; new str[128]; if(weaponid == 16) // The weapon ID { GetPlayerName(playerid,Nam,sizeof(Nam)); format(str,sizeof(str),"ANTI WEAPON HACK: %s has been banned from server for spawning a bad weapon!",Nam); SendClientMessageToAll(0xFF0000FF,str);// Sends message to everyone BanEx(playerid,"ANTI WEAPON HACK: Weapon Hack!"); } //make another line if(weaponid == WEAPONID) // The weapon ID { GetPlayerName(playerid,Nam,sizeof(Nam)); format(str,sizeof(str),"ANTI WEAPON HACK: %s has been banned from server for spawning a bad weapon!",Nam); SendClientMessageToAll(0xFF0000FF,str);// Sends message to everyone BanEx(playerid,"ANTI WEAPON HACK: Weapon Hack!"); } return 1; }
if(weaponid == WEAPONID)
Hello guyz today im here to teach you how to make an simple weapon detecter
Код:
public OnPlayerUpdate(playerid) Код:
new weaponid = GetPlayerWeapon(playerid); new Nam[MAX_PLAYER_NAME]; new str[128]; Код:
public OnPlayerUpdate(playerid) { new weaponid = GetPlayerWeapon(playerid);//This will cause the "weaponid not defined" Error new Nam[MAX_PLAYER_NAME]; new str[128]; if(weaponid == 16) // The weapon ID { GetPlayerName(playerid,Nam,sizeof(Nam)); format(str,sizeof(str),"ANTI WEAPON HACK: %s has been banned from server for spawning a bad weapon!",Nam); SendClientMessageToAll(0xFF0000FF,str); BanEx(playerid,"ANTI WEAPON HACK: Weapon Hack!"); } return 1; } Код:
if(weaponid == 16) // The weapon ID //The number i add 16 is for gernade :p you can make plenty of lines and you can change the number if you want to so that people cant get the weapon reach them,,,if it reached them the player is banned >:D public OnPlayerUpdate(playerid) { new weaponid = GetPlayerWeapon(playerid);//This ...!will cause the "weaponid not defined" Error new Nam[MAX_PLAYER_NAME]; new str[128]; if(weaponid == 16) // The weapon ID { GetPlayerName(playerid,Nam,sizeof(Nam)); format(str,sizeof(str),"ANTI WEAPON HACK: %s has been banned from server for spawning a bad weapon!",Nam); SendClientMessageToAll(0xFF0000FF,str);// Sends message to everyone BanEx(playerid,"ANTI WEAPON HACK: Weapon Hack!"); } //make another line if(weaponid == WEAPONID) // The weapon ID { GetPlayerName(playerid,Nam,sizeof(Nam)); format(str,sizeof(str),"ANTI WEAPON HACK: %s has been banned from server for spawning a bad weapon!",Nam); SendClientMessageToAll(0xFF0000FF,str);// Sends message to everyone BanEx(playerid,"ANTI WEAPON HACK: Weapon Hack!"); } return 1; } Код:
if(weaponid == WEAPONID) |