Raised This Month: $318 Target: $400
 79%   Almost there!

API Scripting Help Help in making Bird Zombie


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Unknown Guy
Member
Join Date: Dec 2014
Location: Munich, Germany
Old 04-19-2015 , 07:29   Help in making Bird Zombie
Reply With Quote #1

Hey guys,

I want your help to create Bird Zombie, I want Zombie to fly in air for a limited time like i pressed E (+use) and Zombie is flying for limited time like 10 secs but how? This is how i made it :

PHP Code:
/*================================================================================
    
    -----------------------------------
    -*- [ZP] Bird Zombie -*-
    -----------------------------------
    
    ~~~~~~~~~~~~~~~
    - Description -
    ~~~~~~~~~~~~~~~
    
    I know this zombie class sucks and noob but this is my first zombie class.
    
================================================================================*/

#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

// Zombie Attributes
new const zclass_name[] = "Bird Zombie"
new const zclass_info[] = "Fly :D"
new const zclass_model[] = "choose any model for it"
new const zclass_clawmodel[] = "choose any claw for it"
const zclass_health 2000 
const zclass_speed 290 
const Float:zclass_gravity 0.4 
const Float:zclass_knockback 2.0 

// Class IDs
new g_zclassid1

// Zombie Classes MUST be registered on plugin_precache
public plugin_precache()
{
    
register_plugin("[ZP] Bird Zombie""1.0""Jezza")
    
    
// Register the new class and store ID for reference
    
g_zclassid1 zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback)    
}

// User Infected forward
public zp_user_infected_post(idinfector)
{
    
// Check if the infected player is using our custom zombie class
    
if (zp_get_user_zombie_class(id) == g_zclassid1)
    {
        
client_print(idprint_chat"[ZP] You are now Bird Zombie, You can go up if any one is up.")
        
set_pev(idpev_healthfloat(pev(idpev_health)) + 100.0)
    }

Attached Files
File Type: sma Get Plugin or Get Source (zp_bird_zombie.sma - 570 views - 1.5 KB)
Unknown Guy is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 04-19-2015 , 07:48   Re: Help in making Bird Zombie
Reply With Quote #2

lol... search for zombie crow
Depresie is offline
Unknown Guy
Member
Join Date: Dec 2014
Location: Munich, Germany
Old 04-19-2015 , 08:47   Re: Help in making Bird Zombie
Reply With Quote #3

Quote:
Originally Posted by Depresie View Post
lol... search for zombie crow
I don't want to rip anyone code i just want help for creating on my OWN not copying pasting
He won't allow me to take his code.
Unknown Guy is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Location: Tunisia
Old 04-19-2015 , 08:57   Re: Help in making Bird Zombie
Reply With Quote #4

Quote:
Originally Posted by Unknown Guy View Post
I don't want to rip anyone code i just want help for creating on my OWN not copying pasting
He won't allow me to take his code.
zombie crow is a zombie class that does the same thing you want https://forums.alliedmods.net/showthread.php?t=89875
JusTGo is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 04-19-2015 , 13:40   Re: Help in making Bird Zombie
Reply With Quote #5

Quote:
Originally Posted by Unknown Guy View Post
I don't want to rip anyone code i just want help for creating on my OWN not copying pasting
He won't allow me to take his code.
....

watch that code, and learn.. and it is free for use
Depresie is offline
Old 04-19-2015, 15:02
Unknown Guy
This message has been deleted by Unknown Guy. Reason: lol
Unknown Guy
Member
Join Date: Dec 2014
Location: Munich, Germany
Old 04-20-2015 , 08:48   Re: Help in making Bird Zombie
Reply With Quote #6

Its okay now, I got another idea for creating zombie class so close this thread (:
Unknown Guy is offline
Reply


Thread Tools
Display Modes

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 11:30.


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