Raised This Month: $ Target: $400
 0% 

Help! about Changing PlayerModel


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lockyleung
Member
Join Date: Aug 2010
Old 08-21-2010 , 14:14   Help! about Changing PlayerModel
Reply With Quote #1

this amxx requires players to use custom player model.

First, SoccerJam mode is installed in my server. When the new round starts (due to the goal), some people will be kicked because of SZ_splace overflow error. How to fix it? (the amxx is attached)

PHP Code:
 /* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>

#define PLUGIN "player"
#define VERSION "1.2"
#define AUTHOR "naven"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_Spawn"player""runda"1);
}
public 
runda(id){
    if(
cs_get_user_team(id) == CS_TEAM_T) {    
    if(
is_user_connected(id))
    
cs_set_user_model(id"winwin")
    }
    else if(
cs_get_user_team(id) == CS_TEAM_CT){
    
cs_set_user_model(id"gogo")
}
}
public 
plugin_precache(){
    
precache_model("models/player/winwin/winwin.mdl")
    
precache_model("models/player/gogo/gogo.mdl")

lockyleung is offline
 


Thread Tools
Display Modes

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 21:51.


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