Raised This Month: $ Target: $400
 0% 

BIG umbrella swarm error.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-15-2010 , 13:21   Re: BIG umbrella swarm error.
Reply With Quote #2

You need to check if the player is connected before doing anything else with the player.

Code:
public Task_Strip(task) {     new id = task - TASKID_STRIP     if (!is_user_connected(id))         return         if (cs_get_user_submodel(id)) - this is the 2946 line.         cs_set_user_submodel(id, 0)     fm_strip_user_weapons(id)     if (g_zombie[id] && InfectedClass[id] == 0)         {

Code:
if(get_pcvar_num(cvar_zmrespawn))     {             static id, CsTeams:team             id = tid-TID_RESP         // you are using cs_get_user_team() before even checking if the player is connected             team = cs_get_user_team(id)             if(!is_user_connected(id) || is_user_alive(id) || (team != CS_TEAM_T))                 return
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 03:32.


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