Raised This Month: $ Target: $400
 0% 

Player models won't change and they get bugged.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
wicked95
Member
Join Date: Dec 2012
Old 02-24-2015 , 06:17   Player models won't change and they get bugged.
Reply With Quote #1

I can't see the problem in the code. I made a custom jailbreak plugin with days, shop, games and other sh*t but the player model won't change. And not only does it not change but it gets bugged. Like arms are coming out of his mouth or they get a 3rd leg that is not moving xD.
The plugin got quite large. About 156KB .sma file.
I hope this is gona be enough:
PHP Code:
RegisterHam(Ham_Spawn"player""player_spawn"1); 
PHP Code:
precache_model("models/player/jbemodel/jbemodel.mdl"); 
PHP Code:
public player_spawn(id)
{
 if(
is_user_alive(id))
 {
  if(
bBlockSpawn && get_bit(g_BlockSpawnid))
  {
   
clear_bit(g_BlockSpawnid);
   
user_silentkill(id);
   return;
  }
  if(
task_exists(id+TASK_CAMOFLAGE))
   
remove_task(id+TASK_CAMOFLAGE);
  static 
CsTeams:iTeam;
  
set_bit(g_Aliveid);
  
iUserHealth[id] = get_user_health(id);
  
player_strip_weapons(id);
  
cs_reset_user_model(id);
  
set_user_info(id"model""jbemodel");
  
set_user_rendering(id);
  
iTeam cs_get_user_team(id);
  if(
iTeam == CS_TEAM_T)
  {
   if(
get_bit(g_FreeDayNextid) || bFreedayAll)
   {
    
freeday_set(0id);
    
clear_bit(g_FreeDayNextid);
   }
   else
   {
    
entity_set_int(idEV_INT_body2);
    
entity_set_int(idEV_INT_skinrandom_num(02));
   }
   
cs_set_user_armor(id0CS_ARMOR_NONE);
   if(
bFrozen)
   {
    
set_pev(idpev_flagspev(idpev_flags) | FL_FROZEN);
    
set_pev(idpev_maxspeed0.01);
   }
   
iPlayerKnife[id] = KN_HANDS;
   
ShowKnifeShopMenu(idg_menuPage[id] = 0);
   
set_user_gravity(id1.0);
  }
  else if(
iTeam == CS_TEAM_CT)
  {
   if(
iSimon == id)
    
entity_set_int(idEV_INT_body1);
   else
    
entity_set_int(idEV_INT_body3);
   
cs_set_user_armor(id100CS_ARMOR_VESTHELM);
   
iPlayerKnife[id] = KN_ELECTROSHOCK;
  }
 }
 
CheckForLastPrisoner();


Last edited by wicked95; 02-24-2015 at 06:25.
wicked95 is offline
 



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 18:05.


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