Cerere modificare deagle cu un glont

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
ah3llboy
Membru, skill +1
Membru, skill +1
Posts: 156
Joined: 10 Jul 2012, 07:34
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Been thanked: 1 time
Contact:

31 Jul 2012, 06:57

ms acuma merge perfect :D
ah3llboy
Membru, skill +1
Membru, skill +1
Posts: 156
Joined: 10 Jul 2012, 07:34
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Been thanked: 1 time
Contact:

03 Aug 2012, 07:53

da am o problema este 150 ammo si 150 heal dar cand anti teroristi sunt lasati sa ne prinda am 100 ap dc?
User avatar
Ulquiorra
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2054
Joined: 25 Jul 2010, 16:29
Detinator Steam: Da
CS Status: A mai trecut o zi asteptand una mai buna
Detinator server CS: Retras.
SteamID: STEAM_0:1:318247XX
Reputatie: Scripter eXtreamCS
Nick anterior: sPuf ?, a^ml), Loca Tapioca, Askhanar
Fost Moderator ajutator
Location: Braila, Romania.
Has thanked: 214 times
Been thanked: 1131 times
Contact:

03 Aug 2012, 09:50

K1d0x wrote:
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>

#define PLUGIN "simple VIP"
#define VERSION "0.1"
#define AUTHOR "sfinxcs"

#define VIP_LEVEL      ADMIN_IMMUNITY

new const gTitle[] = "Beneficii Vip"

public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR);
        register_clcmd("say /vip", "Motd");
        RegisterHam(Ham_Spawn, "player", "Spawn", 1);
}

public Spawn(id) {
        new GetFlags = get_user_flags(id);

        if(is_user_alive(id)) {
                if((GetFlags & (ADMIN_IMMUNITY|ADMIN_RESERVATION|ADMIN_KICK|ADMIN_BAN|ADMIN_SLAY)) == (ADMIN_IMMUNITY|ADMIN_RESERVATION|ADMIN_KICK|ADMIN_BAN|ADMIN_SLAY)) {
                        set_task(0.5, "iScoreBoard", id + 6969)
                        set_task(1.0, "give", id)
                }
        }
}

public iScoreBoard(tID) {
        new id = tID - 6969;
        
        message_begin(MSG_ALL, get_user_msgid("ScoreAttrib"));
        write_byte(id);
        write_byte(4);
        message_end();
}

public give(id) {
        if(cs_get_user_team(id) == CS_TEAM_T) {
                new wID = give_item(id, "weapon_deagle");
                cs_set_weapon_ammo(wID, 1);
                set_user_health(id, 250);
                cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM);
        }
	
        if(cs_get_user_team(id) == CS_TEAM_CT) {
                new wID = give_item(id, "weapon_deagle");
                cs_set_weapon_ammo(wID, 1);
                set_user_health(id, 250);
                cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM);
        }
}

public Motd(id) {
        new iCfgDir[32], iFile[192];
        
        get_configsdir(iCfgDir, charsmax(iCfgDir));
        formatex(iFile, charsmax(iFile), "%s/vip.html", iCfgDir);

        show_motd(id, iFile, gTitle);
}
poti face direct

Code: Select all

  if((GetFlags == read_flags( "abcde" ) ) {

si doar cei cu abcde si atat vor avea ;) dar vad ca s-a rezolvat..
am vrut sa va arat si alta metoda..
""Copilarie, iarta-ma c-am vrut sa fiu om mare.. ""
User avatar
K1d0x
Fost moderator
Fost moderator
Posts: 800
Joined: 26 Feb 2012, 15:57
Detinator Steam: Da
CS Status: We Build Together ;3 RedFear
Detinator server CS: PuB.RedFear.Ro
SteamID: k1dox
Reputatie: Fost moderator ajutator
Location: Reșița
Been thanked: 152 times
Contact:

03 Aug 2012, 12:32

sPuf? wrote:
K1d0x wrote:
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>

#define PLUGIN "simple VIP"
#define VERSION "0.1"
#define AUTHOR "sfinxcs"

#define VIP_LEVEL      ADMIN_IMMUNITY

new const gTitle[] = "Beneficii Vip"

public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR);
        register_clcmd("say /vip", "Motd");
        RegisterHam(Ham_Spawn, "player", "Spawn", 1);
}

public Spawn(id) {
        new GetFlags = get_user_flags(id);

        if(is_user_alive(id)) {
                if((GetFlags & (ADMIN_IMMUNITY|ADMIN_RESERVATION|ADMIN_KICK|ADMIN_BAN|ADMIN_SLAY)) == (ADMIN_IMMUNITY|ADMIN_RESERVATION|ADMIN_KICK|ADMIN_BAN|ADMIN_SLAY)) {
                        set_task(0.5, "iScoreBoard", id + 6969)
                        set_task(1.0, "give", id)
                }
        }
}

public iScoreBoard(tID) {
        new id = tID - 6969;
        
        message_begin(MSG_ALL, get_user_msgid("ScoreAttrib"));
        write_byte(id);
        write_byte(4);
        message_end();
}

public give(id) {
        if(cs_get_user_team(id) == CS_TEAM_T) {
                new wID = give_item(id, "weapon_deagle");
                cs_set_weapon_ammo(wID, 1);
                set_user_health(id, 250);
                cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM);
        }
	
        if(cs_get_user_team(id) == CS_TEAM_CT) {
                new wID = give_item(id, "weapon_deagle");
                cs_set_weapon_ammo(wID, 1);
                set_user_health(id, 250);
                cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM);
        }
}

public Motd(id) {
        new iCfgDir[32], iFile[192];
        
        get_configsdir(iCfgDir, charsmax(iCfgDir));
        formatex(iFile, charsmax(iFile), "%s/vip.html", iCfgDir);

        show_motd(id, iFile, gTitle);
}
poti face direct

Code: Select all

  if((GetFlags == read_flags( "abcde" ) ) {

si doar cei cu abcde si atat vor avea ;) dar vad ca s-a rezolvat..
am vrut sa va arat si alta metoda..

Code: Select all

  if((GetFlags == read_flags( "abcde" ) ) ) {

Asa :) e acelasi lucru
ah3llboy wrote:da am o problema este 150 ammo si 150 heal dar cand anti teroristi sunt lasati sa ne prinda am 100 ap dc?
Pentru ca 100 AP seteaza plugin-ul
Image
32slots.net - Sursa ta de încredere de KIT-uri CS 1.6
RedFear.Ro România - | Afiseaza codul
Vă aştept cu un Register pe Forum
- Suntem în căutare de Dezvoltatori & Administratori :
HTML
PHP
MYSQL
C++
Ofer Server CS spre administrare | Afiseaza codul
Condiții : 
- Să dispui de timp liber
- Să ai cunoștințe AMXX & HLDS
Boostul este asigurat de către Mine (PM pentru. detalii)
ik1d0x@redfear.ro
ah3llboy
Membru, skill +1
Membru, skill +1
Posts: 156
Joined: 10 Jul 2012, 07:34
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Been thanked: 1 time
Contact:

04 Aug 2012, 18:02

da miam dat seama...
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 29 guests