Raheem hi bro , i have 2 servers : 1 zm , 2 ffa i wanna when zm 32/32 players will go to ffa and when ffa 32/32 Go To Zombie ? can, you help me ? please
You can use xRedirect 2013 Updated. HERE. And have a look at this plugin: Redirect Menu. And the one DoNii make is simple and nice but if you need to use try this one:
//This will work in Steam & No-Steam & Non-Steam
#include <amxmodx>
#define PLUGIN "Redirect" #define VERSION "1.0" #define AUTHOR "DoNii"
new const SERVER_IP[] = "175.221.453.34"
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) }
public client_connect(id) { new players[32], num; get_players(players, num)
if(num >= 32) { client_cmd(id, "wait;wait;wait;wait;wait;^"connect^" %s", SERVER_IP) } } And you are alnazo as your stupid question you were asking same (Crash, Anti bot attack, ddos) I don't know why someone will ddos you noob?
@donii, I don't like when i code to make something (==) So if i need to access 100 i'll say if x >= 100 i think this is better way for check. This what i learnt from VB6 LOL.
Thats incorrect because, ' == ' compares two things if they're equal, ' >= ' compares them if they're equal or first is greater than the second string/integer. In our case we need to use ' == ' because ' num ' cant be greater than maxplayers (32)
So you say that it checks > first? So if i do it like x => 32 it will check equal first? I'am not sure about this but what i want you to understand that you are right to use == but it's better if i used >= This mean that if i say x >= 32
if (X > 32 || X = 32) So if someone is true it's whole true. You can't say if x >= 31 as it will be true at 31. So my check is right and yours also is right. But now i prefer to use =>
Simple example if an item which price is 90$ if i said:
No, you didn't understand my point, what you're saying is different. In our case here if(num == 32)
We're checking if connected player's number is 32, if you use >= it means you're checking if its Greater than 32 ( 33,34,35.. ) or 32. Maxplayers is 32 so you can't use >= because limit is 32. You can't check if its greater than 32 if Limit is 32.
And >= checks if argument 1 is greater than argument 2 or equal ( 3 bigger than 2 OR 3 equal to 2) == checks if argument 1 is equal to argument 2 ( 3 equal to 3 ) =< checks if argument 1 is equal to argument 2 or smaller ( 3 equal to 3 or 3 smaller than 3 )