AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Halo Vs Predator (https://forums.alliedmods.net/showthread.php?t=13391)

Front Line 05-15-2005 02:09

Halo Vs Predator
 
Finally Got it working...

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

n0obie4life 05-15-2005 04:10

lol. is ur filename a blank?

make sure there ain't too many useless brackets.

Front Line 05-15-2005 04:13

EDIT: thanks for joe help.

genesis 05-15-2005 04:32

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

made a few errors check next post from [genesis]

Front Line 05-15-2005 04:35

bravo i will try n compile it now genesis bravo!

genesis 05-15-2005 04:39

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 }

genesis 05-15-2005 04:43

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.

Front Line 05-15-2005 04:55

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

genesis 05-15-2005 04:56

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.

Front Line 05-15-2005 05:03

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...


All times are GMT -4. The time now is 16:38.

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