Help with a simple team switch blocker
Hi i want to make a team switch blocker for TFC(hl1 mod).
Basically i made this code: Code:
#include <amxmodx>So i need to basically "validate" that if the user isn't in a team(or in spect) they can choose a team, and if the user is in a team (red blue green yellow, 1, 2, 3, 4) they can't use the jointeam command.... Anyone can help me? THanks!! |
Re: Help with a simple team switch blocker
Code:
#include <amxmodx> |
Re: Help with a simple team switch blocker
Hey thanks
it worked but with a little problem.. when i choose a team and i am in red blue or green i can't change the teams, so it's ok but when i am in the yellow team the plugin don't work so i can change the team. (jointeam 1 = blue, jointeam 2 = red, jointeam 3 = yellow, jointeam = 4 green) and another little question, if i want to make a similar plugin that instead of blocking Team switch i allow to team switch but adding a 5 seconds penalty to respawn, is it possible ? thanks!! |
Re: Help with a simple team switch blocker
Quote:
|
Re: Help with a simple team switch blocker
can you tell me what function should i use or whatever to do this?
and if you know how to fix the bug that the yellow team can change and the others no, i think something is wrong in the if structure thanks a lot :) |
Re: Help with a simple team switch blocker
If you don't know how to do, you can freeze the player who changed team with this stocks :
Code:
|
| All times are GMT -4. The time now is 08:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.