Raised This Month: $ Target: $400
 0% 

Solved Block jointeam T but allow CT and SPEC


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-16-2019 , 00:03   Re: Block jointeam T but allow CT and SPEC
Reply With Quote #3

Quote:
Originally Posted by LearninG View Post
Auto join also blocked :
Code:
#include <amxmodx> public plugin_init() {     register_clcmd("jointeam", "join_team") } public join_team(id) {     new arg[2]     read_argv(1, arg, charsmax(arg))     if ( str_to_num(arg)-1 == 0 || str_to_num(arg)-1 == 4)     {         engclient_cmd(id,"chooseteam")         return PLUGIN_HANDLED     }     return PLUGIN_CONTINUE }
Why hard coding stuff ?

Instead of

str_to_num(arg)-1 == 0

Simply str_to_num(arg) == 1

And also this won't block joining team fully.

OP : plugins such like are already exists don't be lazy to search for them.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 09-16-2019 at 00:15.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
 



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 17:24.


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