Raised This Month: $ Target: $400
 0% 

get_players issue


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 07-19-2013 , 09:55   get_players issue
Reply With Quote #1

So, I have a VIP plugin that respawns player once in a round. Thats what it should do and it worked for sometime, but now, it has stoped working for some players.
PHP Code:
        new team get_user_team(id)
        new 
players[32]
        new 
num 0

        
if(team == 2)
            
get_players(players,num,"ae","CT")
        else if(
team == 1get_players(players,num,"ae","TERRORIST")

        if(
num >= 1)
        {
            
ExecuteHamB(Ham_CS_RoundRespawnid)
            
g_DidDie[id] = true
            vip_glow
(id1)
            static 
Float:originF[3]
            
pev(idpev_originoriginF)
            
emit_sound(id,CHAN_BODY,SOUND_EXPLODE,VOL_NORM,ATTN_NORM,0,PITCH_NORM)
            
entity_blast(originF)
        }
        else 
ColorChat(idNORMAL"CANT SPAWN"
It gives that CANT SPAWN message so they cant spawn, but it sure is that there is alive >=1 player for that team. Whats wrong? I think it is that get_players, but why and why now as it worked before just fine?
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness

Last edited by GuskiS; 07-19-2013 at 09:57.
GuskiS 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 06:22.


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