Raised This Month: $ Target: $400
 0% 

Halo Vs Predator


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Front Line
Senior Member
Join Date: Jan 2005
Old 05-15-2005 , 02:09   Halo Vs Predator
Reply With Quote #1

Finally Got it working...

http://forums.alliedmods.net/showthread.php?t=13398
__________________
My plugins...

Are all Here...Click Me
Front Line is offline
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 05-15-2005 , 04:10  
Reply With Quote #2

lol. is ur filename a blank?

make sure there ain't too many useless brackets.
__________________
Plugins:
none

n0obie4life is offline
Front Line
Senior Member
Join Date: Jan 2005
Old 05-15-2005 , 04:13  
Reply With Quote #3

EDIT: thanks for joe help.
__________________
My plugins...

Are all Here...Click Me
Front Line is offline
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 05-15-2005 , 04:32  
Reply With Quote #4

try this ... extremely optimize, but don't know if i have messed with your "vision"

made a few errors check next post from [genesis]
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
Front Line
Senior Member
Join Date: Jan 2005
Old 05-15-2005 , 04:35  
Reply With Quote #5

bravo i will try n compile it now genesis bravo!
__________________
My plugins...

Are all Here...Click Me
Front Line is offline
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 05-15-2005 , 04:39  
Reply With Quote #6

sorry a few small road blocks ... no errors or warnings on offline compiler
just because it has no compile errors doesn't guarantee no runtime errors or that it even does what is intended. But logistically it looks sound, I haven't tested it at all though.

Code:
// HALO vs PREDATOR MOD // by Front Line // Night scream helped with editing code // Genesis Cleaned up the code MAJORLY #include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> public plugin_init() {     register_plugin("Halo vs Predator", "0.1", "Front Line")     register_event("ResetHUD", "resetModel", "b") } public plugin_precache() {     precache_model("models/player/p_terror/p_terror.mdl")     precache_model("models/player/p_arctic/p_arctic.mdl")     precache_model("models/player/p_leet/p_leet.mdl")     precache_model("models/player/p_guerilla/p_guerilla.mdl")     precache_model("models/player/h_gsg9/h_gsg9.mdl")     precache_model("models/player/h_urban/h_urban.mdl")     precache_model("models/player/h_sas/h_sas.mdl")     precache_model("models/player/h_gign/h_gign.mdl")     precache_model("models/player/masterchief/masterchief.mdl") } public resetModel(id) {     new usermodel[33]     cs_get_user_model(id, usermodel, 32)         if(cs_get_user_team(id) == CS_TEAM_CT)     {         if(equali(usermodel, "GSG9"))         {             client_print( id, print_chat, "Welcome private, prepare for battle." )             cs_set_user_model(id, "h_gsg9")         }         else if(equali(usermodel, "GIGN"))         {             client_print( id, print_chat, "Search and destroy all Predators" )             cs_set_user_model(id, "f_gign")                 }         else if(equali(usermodel, "URBAN"))         {                     client_print( id, print_chat, "Use the allied forces to protect the motherland." )                     cs_set_user_model(id, "h_urban")         }         else if(equali(usermodel, "SAS"))         {                         client_print( id, print_chat, "Welcome private, prepare for battle." )                         cs_set_user_model(id, "h_sas")         }         else if(equali(usermodel, "VIP"))         {             client_print( id, print_chat, "Rescue the commander, Move out!" )             cs_set_user_model(id, "masterchief")         }         set_user_armor(id,200)         set_user_health(id,125)         set_user_maxspeed(id,Float:350)     }     else if(cs_get_user_team(id) == CS_TEAM_T)     {         if(equali(usermodel, "TERROR"))         {             client_print( id, print_chat, "Moveout and disinerate the humans" )             cs_set_user_model(id, "p_terror")         }         else if(equali(usermodel, "ARCTIC"))         {             client_print( id, print_chat, "Use your camoflage in the snow" )             cs_set_user_model(id, "p_arctic")         }         else if(equali(usermodel, "GUERILLA"))         {             client_print( id, print_chat, "Don't allow the allys to recapture the land!" )             cs_set_user_model(id, "p_guerilla")     }         else if(equali(usermodel, "LEET"))         {             client_print( id, print_chat, "Seek 'n' Destory the humans!" )             cs_set_user_model(id, "p_leet")         }         set_user_armor(id,75)         set_user_health(id,175)         set_user_maxspeed(id,Float:200)     }     return PLUGIN_CONTINUE }
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 05-15-2005 , 04:43  
Reply With Quote #7

The jist is basically this right:

CT's and T's have unique models for each of the Nine models ... CT's are more powerful and T's are less powerful, and you want to make sure that if a person changes team that they be sure to then get the attributes of said team.


this version ^^ sets teh unique models, health, armor, and speed at the beginning of every round so if they switch it will be updated no problem ... don't even need global vars. to keep track.
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
Front Line
Senior Member
Join Date: Jan 2005
Old 05-15-2005 , 04:55  
Reply With Quote #8

only one thing u mixed up...preds are faster then the halos and u accidently got em mixed up...i'll fix it./.
__________________
My plugins...

Are all Here...Click Me
Front Line is offline
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 05-15-2005 , 04:56  
Reply With Quote #9

ah i see, at first I was wtf

CT's have more armor, health, speed than T's .... where is the balance but now I see.

see if this works somewhat .. I have a feeling the speed won't last and you'll have to add a current weapon event to reinforce the speed settings but it should work for models and health and armor .... so check.
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
Front Line
Senior Member
Join Date: Jan 2005
Old 05-15-2005 , 05:03  
Reply With Quote #10

Quote:
Originally Posted by genesis
ah i see, at first I was wtf

CT's have more armor, health, speed than T's .... where is the balance but now I see.

see if this works somewhat .. I have a feeling the speed won't last and you'll have to add a current weapon event to reinforce the speed settings but it should work for models and health and armor .... so check.

For preds...
set_user_armor(player,75)
set_user_health(player,175)
set_user_maxspeed(player,300)
Masterchiefs...
set_user_armor(player,250)
set_user_health(player,125)
set_user_maxspeed(player,200)

think about it they have alot of armor = slowdown...
but i wanna be able to make this a thread...and put it on the forums...
so i wanna be able to compile it...
__________________
My plugins...

Are all Here...Click Me
Front Line 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 16:38.


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