Raised This Month: $ Target: $400
 0% 

Chicken fight pluigin or mod


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ravi81
Junior Member
Join Date: Jun 2022
Old 06-05-2022 , 09:24   Re: Chicken fight pluigin or mod
Reply With Quote #1

I already know all this, I don't want to enter a command. I want the server to turn everyone who joins the game into a chicken when the plugin is active.
amx_chicken is already running on my server i can turn everyone into a chicken with one command.
c_chicken is a command that other plugins can use as it says in the description of chickenrebirth.
Thanks anyway.

something like this, I tried to write the code myself but I don't think it's really right?
PHP Code:
#include <amxmodx>
#include <hamsandwich>
 
public plugin_init() {
        
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1)
}
 
public 
fwHamPlayerSpawnPost(iPlayer) {
        if (
is_user_alive(iPlayer)) {
                
// player spawned
        
}


public 
UseCommand()
{
    
server_cmd("c_chicken *(iPlayer)")
    return 
PLUGIN_HANDLED


Last edited by Ravi81; 06-05-2022 at 20:44.
Ravi81 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:20.


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