Raised This Month: $ Target: $400
 0% 

Change user skin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 05-04-2016 , 17:01   Re: Change user skin
Reply With Quote #8

You're right, sirius, if is for all players, dont need get_players because functions that have not a id, like models() dont need that and set_task(TASK_SETMODEL), just add set_task(3.0,"models")

Like

PHP Code:
public new_round() 
{     
   
set_task(3.0,"models")   
     


public 
models()  
{  
    new 
players[32],inum  
    get_players
(players,inum,"a")  
    for(new 
0;i<inum;i++)  
    {  
        switch(
cs_get_user_team(players[i])) 
        {  
            case 
CS_TEAM_Tcs_set_user_model(players[i], "vermelho_ws")  
            case 
CS_TEAM_CTcs_set_user_model(players[i],"azul_ws")  
        }  
    }   

__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 05-04-2016 at 17:02.
EFFx 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:39.


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