Raised This Month: $ Target: $400
 0% 

make anything for CT only


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 01-29-2017 , 17:24   Re: make anything for CT only
Reply With Quote #8

Quote:
Originally Posted by edon1337 View Post
PHP Code:
if(cs_get_user_team(id) == CS_TEAM_T
         return;                                                     
/* Restrict Terrorists from using */

else 
         
//.. code ..//                                              /* What can CTs do with it */ 
Dont do that. Despite it it will work, but there is no reason for the dangling `else` unbraced.

Do something like:
PHP Code:
if(cs_get_user_team(id) == CS_TEAM_T
{
    return;                                                     
/* Restrict Terrorists from using */
}
else 
{
    
//.. code ..//                                             /* What can CTs do with it */

or
PHP Code:
if(cs_get_user_team(id) == CS_TEAM_T
    return;                                                         
/* Restrict Terrorists from using */

//.. code ..//                                                      /* What can CTs do with it */ 
or
PHP Code:
if(cs_get_user_team(id) == CS_TEAM_T) return;                       /* Restrict Terrorists from using */

//.. code ..//                                                      /* What can CTs do with it */ 
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 01-29-2017 at 18:28.
addons_zz 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 21:03.


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