Raised This Month: $ Target: $400
 0% 

MODEL


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PsychoStand
Member
Join Date: Apr 2006
Old 05-02-2006 , 14:51   MODEL
Reply With Quote #1

Il Hope u will help me if u do i will apriciate it see i made a hero but i want a model into it but question is how i have tryed to Precache it like prechache_model ("name/name.mdl") and i cant see the hero on me
Code:
new gmorphed[SH_MAXSLOTS+1] 
//----------------------------------------------------------------------------------------------    
{ 
   // NEW ROUND 
   register_event("ResetHUD","newSpawn","b") //Called on a New Spawn 
   //Death of Player 
   register_event("DeathMsg", "jetstream_death", "a") 

   // CHECK SOME BUTTONS 
   set_task(0.1,"checkButtons",0,"",0,"b") 
} 
//---------------------------------------------------------------------------------------------- 
public plugin_precache() 
{ 
   precache_model("models/player/JetStream/sh_jetstream.mdl") 
} 
//---------------------------------------------------------------------------------------------- 
jetstream_init() 
{    
   if ( hasPowers ) //Check if person selected this hero 
   { 
      jetstream_tasks(id) 
   } 
   if ( !hasPowers  && is_user_connected(id) ) //Check if person dropped this hero 
   { 
      //Do stuff to him if he just droppped it 
      jetstream_unmorph(id) 
   } 
} 
//---------------------------------------------------------------------------------------------- 
public newSpawn(id) 
{ 
   if ( gHasjetstreamPower[id] && is_user_alive(id) && shModActive() ) 
   { 
      jetstream_tasks(id) 
   } 
   return PLUGIN_HANDLED 
} 
//---------------------------------------------------------------------------------------------- 
public jetstream_tasks(id) 
{ 
   set_task(1.0, "jetstream_morph", id) 
} 
//---------------------------------------------------------------------------------------------- 
public jetstream_morph(id) 
{ 
   if ( gmorphed[id] || !is_user_alive(id) ) return 

   #if defined AMXX_VERSION 
   cs_set_user_model(id, "sh_jetstream") 
   #else 
   CS_SetModel(id, "sh_jetstream") 
   #endif 

   // Message 
   set_hudmessage(50, 205, 50, -1.0, 0.40, 2, 0.02, 4.0, 0.01, 0.1, 7) 
   show_hudmessage(id, "You now wear your JetStream armor.") 

   gmorphed[id] = true 
} 
//---------------------------------------------------------------------------------------------- 
public jetstream_unmorph(id) 
{ 
   if ( gmorphed[id] ) { 
      // Message 
      set_hudmessage(50, 205, 50, -1.0, 0.40, 2, 0.02, 4.0, 0.01, 0.1, 7) 
      show_hudmessage(id, "You are not wearing your JetStream armor.") 

      #if defined AMXX_VERSION 
      cs_reset_user_model(id) 
      #else 
      CS_ClearModel(id) 
      #endif 

      gmorphed[id] = false 
   } 
} 
//---------------------------------------------------------------------------------------------- 
public jetstream_death() 
{ 
   new id = read_data(2) 
   jetstream_unmorph(id) 
} 
//---------------------------------------------------------------------------------------------- 
public client_connect(id) 
{ 
   gmorphed[id] = false 
} 
//----------------------------------------------------------------------------------------------
What do i need to putt the model in
PsychoStand is offline
SSJ2GOKU
Senior Member
Join Date: Oct 2005
Location: Belgium
Old 05-03-2006 , 05:14  
Reply With Quote #2

err where are your includes ?
and btw is this a plugin for counterstrike

if you have no includes add this:

Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun>
SSJ2GOKU is offline
Send a message via MSN to SSJ2GOKU
Batman/Gorlag
Senior Member
Join Date: Aug 2005
Old 05-03-2006 , 06:20  
Reply With Quote #3

Do as jtp10181 says.

Change this:

Code:
public plugin_precache() 
{ 
   precache_model("models/player/JetStream/sh_jetstream.mdl") 
}
To this:

Code:
public plugin_precache() {    precache_model("models/player/sh_jetstream/sh_jetstream.mdl") }

Then, after that you have to change the name of your folder from JetStream to sh_jetstream in the models/player folder.

And from there, your model should work.
__________________
GRR If only the amxmod programming were in Java.....
Java and C used to be two different languages, now Java is turning into another C. My logevent plugin
Batman/Gorlag is offline
PsychoStand
Member
Join Date: Apr 2006
Old 05-03-2006 , 09:35  
Reply With Quote #4

Hey Thanks for the help it worked and me and xel0z realesed a new hero called JetStream Check it OUT
PsychoStand 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 05:07.


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