Raised This Month: $51 Target: $400
 12% 

API Scripting Help [TUT]How to make a human class (easiest way xD lol)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
newbie550
Member
Join Date: Nov 2013
Location: i'm a pikachu for gods s
Old 11-21-2013 , 19:00   [TUT]How to make a human class (easiest way xD lol)
Reply With Quote #1

hi i am gonna show you how to make a human class *derp* the easiest way though
Just follow this steps...i am lazy to explain it.

STEPS!


STEP 1:
first Copy this code:

Code:
/*================================================================================
	
	----------------------------------
	-*- [ZP] Class: Human: YOU CAN ALSO EDIT THIS -*- //Name of class
	----------------------------------
	
	This plugin is part of Zombie Plague Mod and is distributed under the
	terms of the GNU General Public License. Check ZP_ReadMe.txt for details.
	
================================================================================*/

#include <amxmodx>
#include <zp50_class_human>

// Raptor Human Attributes
new const humanclass2_name[] = "EDIT THIS"  //the name of the class
new const humanclass2_info[] = "YOU CAN ALSO EDIT THIS"  //its info
new const humanclass2_models[][] = { "YOU CAN ALSO EDIT THIS" }  // its model
const humanclass2_health = YOU CAN ALSO EDIT THIS   //its health
const Float:humanclass2_speed = YOU CAN ALSO EDIT THIS  //its speed
const Float:humanclass2_gravity = YOU CAN ALSO EDIT THIS  //its gravity

new g_HumanClassID

public plugin_precache()
{
	register_plugin("[ZP] Class: Human: [name of the class]", ZP_VERSION_STRING, "ZP Dev Team")
	
	g_HumanClassID = zp_class_human_register(humanclass2_name, humanclass2_info, humanclass2_health, humanclass2_speed, humanclass2_gravity)
	new index
	for (index = 0; index < sizeof humanclass2_models; index++)
		zp_class_human_register_model(g_HumanClassID, humanclass2_models[index])
}
just edit the ones with the word saying "EDIT THIS" and also "YOU CAN ALSO EDIT THIS"
after that Just Compile it do whatever you have to do with .sma and .amxx
and you gotta have "zp50" at the name of your plugin like

e.g: zp50_class_human_[nameofyourplugin].sma
e.g(when yu compile it):zp50_class_human_[nameofyourplugin].amxx

------------------------------------------------If you dont know where to put the files?------------------------------------------
for the .sma you gotta put it in yourgame\cstrike\addons\amxmodx\Scripting\zp5 0
for the .amxx you put it in yourgame\cstrike\addons\amxmodx\plugins



HOPE IT HELPED!


p.s: this is my 1st tutorial for people out there who are wondering
"how to enable the human class??"

(except for the higher ranked dudes like senior member i guess they know how to make a human class already 0.0)


CREDITS
-me
-Zombie plague-for this code
-everyone who worked hard on zombie plague ;)
__________________
Gameplay of Kag:20.0%
+karma me if you like and +karma me for this link
Here

Last edited by newbie550; 11-22-2013 at 19:19. Reason: ADDING CREDITS and fixing a total of 23 errors
newbie550 is offline
Send a message via Skype™ to newbie550
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 04:23.


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