It is currently 22 Feb 2019 20:32



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 14 posts ]  Go to page Previous  1, 2
 plugin norecoli (rezolvat!) 
Author Message
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1952
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Fond eXtream: 0
Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#include <xs>

#pragma tabsize 0

#define VIP_ACCESS ADMIN_LEVEL_H //flag t
#define is_vip(%0)   (get_user_flags(%0)&VIP_ACCESS)

new Float: cl_pushangle[33][3]

const WEAPONS_BITSUM = (1<<CSW_KNIFE|1<<CSW_HEGRENADE|1<<CSW_FLASHBANG|1<<CSW_SMOKEGRENADE|1<<CSW_C4)

public plugin_init()
{
   register_plugin("[ZP] Extra Item: No-Recoli (O Runda)", "0.1.0", "CarsonMotion")

   new weapon_name[24]
   for (new i = 1; i <= 30; i++)
   {
      if (!(WEAPONS_BITSUM & 1 << i) && get_weaponname(i, weapon_name, 23))
      {
         RegisterHam(Ham_Weapon_PrimaryAttack, weapon_name, "fw_Weapon_PrimaryAttack_Pre")
         RegisterHam(Ham_Weapon_PrimaryAttack, weapon_name, "fw_Weapon_PrimaryAttack_Post", 1)
      }
   }
}

public fw_Weapon_PrimaryAttack_Pre(entity)
{
   if(pev_valid(entity))
   {
   new id = pev(entity, pev_owner)

   if (is_user_alive(id)&&is_vip(id))
   {
      pev(id, pev_punchangle, cl_pushangle[id])
      return HAM_IGNORED;
   }
   }
   return HAM_IGNORED;
}
public fw_Weapon_PrimaryAttack_Post(entity)
{
   if(pev_valid(entity))
   {
   new id = pev(entity, pev_owner)

   if (is_user_alive(id)&&is_vip(id))
   {
      new Float: push[3]
      pev(id, pev_punchangle, push)
      xs_vec_sub(push, cl_pushangle[id], push)
      xs_vec_mul_scalar(push, 0.0, push)
      xs_vec_add(push, cl_pushangle[id], push)
      set_pev(id, pev_punchangle, push)
      return HAM_IGNORED;
   }
   }
   return HAM_IGNORED;
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/


05 Feb 2019 18:16
Profile multumesc ICQ YIM
Membru, skill 0
Membru, skill 0

Joined: 26 Mar 2018 16:51
Posts: 92
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
nu a mai dat erori, vad ca merge bine, multumesc pentru ajutor se poate da t/c.


07 Feb 2019 10:04
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 14 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: Baidu [Spider], iriminescu0132 and 81 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group