AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   A bit of help please (https://forums.alliedmods.net/showthread.php?t=130080)

LOLZEYE 06-20-2010 05:39

A bit of help please
 
2 Attachment(s)
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

LOLZEYE 06-23-2010 13:38

Re: A bit of help please
 
could someone help me whit this:|?

infek 06-23-2010 16:59

Re: A bit of help please
 
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" );
   }
  }
 }



LOLZEYE 06-24-2010 06:16

Re: A bit of help please
 
oh it dosen't work,anywhay thanks for initiative:D


All times are GMT -4. The time now is 14:44.

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