AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Biohazard] INFECT GRENADE ( ZOMBIE ONLY) (https://forums.alliedmods.net/showthread.php?t=128469)

Daku 06-01-2010 13:21

[Biohazard] INFECT GRENADE ( ZOMBIE ONLY)
 
Hi,

as in the title I wanted to write a plugin that gives the same infectious zombies garnet pomegranate dish is a breeze

Code:

* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <xs>
#include <fun>
#include <biohazard>


#define PLUGIN "INFECT GRENADE"
#define VERSION "1.0"
#define AUTHOR "DAKU[PL]"

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
}

public granat(id) {
    if(is_user_alive(id))
        {
            if(is_user_infected(id))
            {
                give_item(id, "weapon_hegrenade");
                client_print(id, print_chat, "[BIOHAZARD] Jestes zombi dostales granat infekcyjny");
// UP translate [BIOHAZARD] You are a zombie, you got a infect grenade
            }
        }
    }

at the moment I have so much a person gets infected with a grenade and only so much I can do (I am newbie with scriptingu) I ask you for help


All times are GMT -4. The time now is 05:15.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.