,



 [ 3 posts ] 
Cerere plugin VIP CSDM 
Author Message
Membru
User avatar
Posts: 125
Membru din: Wed Jun 08, 2016 4:15 pm
Status: Offline
Puncte: 125 - NOOB
Multumiri date: 0 time

Multumiri primite: 3 times
Detinator Steam: Da

deci am incercat si eu sa fac un plugin de vip (asa cat de cat si tot gresesc ) pnm nu am mai lucrat de mult de vro 4 ani in pawn si c++

incercarea mea

Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "VIP_CSDM"
#define VERSION "1.0"
#define AUTHOR "Salat3

#define   VIP_HEALTH   120
#define   VIP_ARMOR   200
#define   KNIFE_SPEED   400
#define VIP_FLAG   ADMIN_LEVEL_H

new jumpnum [ 33 ] = 0
new bool: dojump [ 33 ] = false;

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   
   RegisterHam ( Ham_Spawn, "player", "Player_Spawn", "1");
   
   register_cvar ( "vip_maxjumps", "2");
   
   register_event ( "CurWeapon", "CurrentWeapon", "be", "1=1" );
}

public client_putinserver ( id ) {
   
   jumpnum [ id ] = 0;
   dojump [ id ] = false;
}

public client_disconnect ( id ) client_putinserver ( id );

public Player_Spawn ( id ) {
   
   if ( is_user_alive ( id ) && is_user_vip ( id ) ) {
      
      set_user_health ( id, VIP_HEALTH );
      set_user_armor ( id, VIP_ARMOR );
      
   }
   
}

public CurrentWeapon ( id ) {
   
   if ( is_user_vip ( id ) && get_user_weapon ( id ) == CSW_KNIFE )
      set_user_maxspeed ( id, float ( KNIFE_SPEED ) );
}

// Multi Jump

public client_PreThink(id)
{
   if(!is_user_alive(id) || !is_user_vip ( id )) return PLUGIN_CONTINUE
   new nbut = get_user_button(id)
   new obut = get_user_oldbutton(id)
   if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP))
   {
      if(jumpnum[id] < get_cvar_num("vip_maxjumps"))
      {
         dojump[id] = true
         jumpnum[id]++
         return PLUGIN_CONTINUE
      }
   }
   if((nbut & IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
   {
      jumpnum[id] = 0
      return PLUGIN_CONTINUE
   }
   return PLUGIN_CONTINUE
}

public client_PostThink(id)
{
   if(!is_user_alive(id) || !is_user_vip ( id )) return PLUGIN_CONTINUE
   if(dojump[id] == true)
   {
      new Float:velocity[3]   
      entity_get_vector(id,EV_VEC_velocity,velocity)
      velocity[2] = random_float(265.0,285.0)
      entity_set_vector(id,EV_VEC_velocity,velocity)
      dojump[id] = false
      return PLUGIN_CONTINUE
   }
   return PLUGIN_CONTINUE
}   

bool: is_user_vip ( id ) {
   
   if ( get_user_flags  ( id ) & VIP_FLAG )
      return true;
      
   return false;
   
}


vipul sa dea 120 viata la fiecare runda (100 armor + armura de pe sv) si 400 viteza pe knife 2x jump (in aer) 3x jump










CSGAMERS.RO - SEMNATURA
Image
Image




Mon Jul 22, 2019 11:59 pm
Super Moderator
User avatar
Posts: 1596
Membru din: Sat Jan 02, 2016 10:16 pm
Location: Sânnicolau Mare
Age: 19
Status: Offline
Puncte: 1596 - TURBAT
Multumiri date: 59 times

Multumiri primite: 76 times
Detinator Steam: Da
SteamID: dozerradu

:41:

Sincer nici nu ştiu cum să încep să rezolv pluginul tău :44: ... mai bine aş începe de la 0 din nou pluginul doar că nu stau bine cu timpul pentru un plugin de la zero.
Quote:
AMX Mod X Compiler 1.8.3-manual
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Modified for http://www.Freakz.ro / amx.freakz.ro

VIP.sma(19) : error 037: invalid string (possibly non-terminated string)
VIP.sma(19 -- 21) : error 001: expected token: ",", but found "-identifier-"
VIP.sma(21) : error 017: undefined symbol "RegisterHam"
VIP.sma(21) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.
Done.


Dacă doreşti îţi pot oferi pluginul meu de CSDM .










CSGAMERS.RO - SEMNATURA
Image




Tue Jul 23, 2019 3:49 pm
Membru
User avatar
Posts: 125
Membru din: Wed Jun 08, 2016 4:15 pm
Status: Offline
Puncte: 125 - NOOB
Multumiri date: 0 time

Multumiri primite: 3 times
Detinator Steam: Da

am nevoie doar de vip nu de modu de csdm










CSGAMERS.RO - SEMNATURA
Image
Image




Thu Jul 25, 2019 10:41 pm
Display posts from previous:  Sort by  
   [ 3 posts ] 

,


Who is online

Users browsing this forum: No registered users and 5 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:  
cron
 
Translation/Traducere: phpBB Romania
Design realizat de catre EPIKAL pentru Counter-Strike Gamers Romania
For browsing this site is recommended to use Google Chrome with widescreen resolution 1280 x 1024 pixels. This website is Search Engine Optimization (SEO)
COPYRIGHT © CSGAMERS.RO - All right reserved.