Kick no-steam ppl
1 Attachment(s)
Hi.I have this plugin that supose to act like this:"When the server is full and a player with steam is connecting, kick a random "no-steam" player!"
*I dunno how to kick a random "no-steam" player,maybe a stock or...., *I don't know i plugin works!Someone tells me is not working...:| Thanks. |
Re: Kick no-steam ppl
Your checking here if the user is a bot.
PHP Code:
PHP Code:
PHP Code:
|
Re: Kick no-steam ppl
Im bored so i fixed cheap_suit's suggestions/hints and optimized a little..
Hope that is ok ;) The returns are strange i would return PLUGIN_HANDLED or PLUGIN_CONTINUE, but i don't know which is better so i don't touched this..0o Code:
#include <amxmodx> |
Re: Kick no-steam ppl
heh thanks ^^!! but strange code :lol:
Code:
if(!equal(authid,"STEAM_ID_PENDING") && (containi(authid,"STEAM_0:0") == -1) && (containi(authid,"STEAM_0:1") == -1))Code:
if(!equal(authid,"STEAM_ID_PENDING") && (containi(authid,"STEAM_0:0") != -1) || (containi(authid,"STEAM_0:1") =! -1)) |
Re: Kick no-steam ppl
The first check is rather redundant since STEAM_0:0/1 is not contained within STEAM_ID_PENDING.
|
Re: Kick no-steam ppl
Quote:
Means you will kick a steamplayer *g* Quote:
Then this check would be correct because STEAM_0: wouldn't contain STEAM_ID_PENDING. But i got doubts that "STEAM_ID_PENDIG" is a valid steamaccount...dont know exactly... greetz regalis |
Re: Kick no-steam ppl
My mistake. I was a little confused as to whether you were checking for a valid or invalid SteamID. I should pay more attention.
|
| All times are GMT -4. The time now is 10:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.