Raised This Month: $ Target: $400
 0% 

A bit of help please


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LOLZEYE
Member
Join Date: Dec 2008
Location: AMXx Studio
Old 06-20-2010 , 05:39   A bit of help please
Reply With Quote #1

Hello,i was trying to make an plugin starting from original xPaw's plugin,Santahat

I changed the model of santahat and puted an other model for terorist(devil2.mdl)

Is it possible that CT's will have an model and T's could have another one?

I want the ct's to have angel2.mdl and T's devil2.mdl


And one more thing,could someone help me whit making an menu which at end of a map(when 5 min remainig) could ask players if they like the map,and then store the data into a cfg file?(the result ) ex: de_dust2->people like the map

The should be so:

Do you like the map?
Yes
I'm not sure
No




The models and the script for the first plugin are here:

Thx for your help
Attached Files
File Type: sma Get Plugin or Get Source (devilhat.sma - 490 views - 958 Bytes)
File Type: zip Models.zip (45.4 KB, 55 views)
__________________
LOLZEYE is offline
Send a message via AIM to LOLZEYE Send a message via Yahoo to LOLZEYE
Old 06-21-2010, 10:54
LOLZEYE
This message has been deleted by YamiKaitou. Reason: bump
LOLZEYE
Member
Join Date: Dec 2008
Location: AMXx Studio
Old 06-23-2010 , 13:38   Re: A bit of help please
Reply With Quote #3

could someone help me whit this?
__________________
LOLZEYE is offline
Send a message via AIM to LOLZEYE Send a message via Yahoo to LOLZEYE
infek
Senior Member
Join Date: May 2009
Location: Behind you
Old 06-23-2010 , 16:59   Re: A bit of help please
Reply With Quote #4

Not sure if this is what you mean but here
PHP Code:
#include <amxmodx> 
#include <fakemeta> 
#include <hamsandwich> 
new g_Enable;
new 
g_bwEnt[33];
new 
g_CachedStringInfoTarget;
public 
plugin_init() {
 
register_plugin"Hat plugin""1.2""xPaw" );
 
register_cvar("devil2""1.2"FCVAR_SERVER);
 
g_Enable register_cvar("amx_devil""1");
 
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1);
 
g_CachedStringInfoTarget engfuncEngFunc_AllocString"info_target" );
}
public 
plugin_precache()
{
 
precache_model("models/hat/devil2.mdl");
 
precache_model("models/hat/angel2.mdl");
}
public 
fwHamPlayerSpawnPostid, const player ) {
 new 
team get_user_teamid );
 if ( 
get_pcvar_numg_Enable ) && is_user_aliveplayer ) && team == ) {
  new 
iEnt g_bwEntplayer ];
  if( !
pev_validiEnt ) ) {
   
g_bwEntplayer ] = iEnt engfunc EngFunc_CreateNamedEntityg_CachedStringInfoTarget );
   
set_peviEntpev_movetypeMOVETYPE_FOLLOW );
   
set_peviEntpev_aimentplayer );
   
engfuncEngFunc_SetModeliEnt"models/hat/devil2.mdl" );
  }
  else if ( 
team == ) {
   if ( !
pev_validiEnt ) ) {
    
g_bwEntplayer ] = iEnt engfunc EngFunc_CreateNamedEntityg_CachedStringInfoTarget );
    
set_peviEntpev_movetypeMOVETYPE_FOLLOW );
    
set_peviEntpev_aimentplayer );
    
engfuncEngFunc_SetModeliEnt"models/hat/angel2.mdl" );
   }
  }
 }

__________________
"Domo Arigato, Mr. Roboto!"
PM me if you want to know a secret
infek is offline
LOLZEYE
Member
Join Date: Dec 2008
Location: AMXx Studio
Old 06-24-2010 , 06:16   Re: A bit of help please
Reply With Quote #5

oh it dosen't work,anywhay thanks for initiative
__________________
LOLZEYE is offline
Send a message via AIM to LOLZEYE Send a message via Yahoo to LOLZEYE
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 14:44.


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