Raised This Month: $ Target: $400
 0% 

Strings and pawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sskillz
Member
Join Date: Apr 2005
Old 02-25-2007 , 09:54   Re: Strings and pawn
Reply With Quote #1

You forgot one of the parameters with the explode (input string).
Also that kick didn't work for me, after look in how amx_kick can kick steamIDs
I learned how to kick them here is what I did in the end:

Code:
 new steamid[32][32];
		    ExplodeString(steamid,2,31,buf,'%');
			
		    //Handle Data
			server_print("(SnapShooter) GOT PEOPLE TO KICK");
			server_print("(SnapShooter) READ(%i bytes): %s",z,buf);
			
			new i;
            for (i = 1; i <= 32; i++) { 
			    if (strlen(steamid[i]) > 5) { 
	                new reason[43] = "(SnapShooteR) Please activate SnapShooter!";			
	                new player = cmd_target(1, steamid[i], 0);	
	                new userid = get_user_userid(player);
	                server_cmd("kick #%d ^"%s^"", userid, reason)
			    } 
			}
sskillz is offline
Reply



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 00:45.


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