How can i get steamid of this menu?
HTML Code:
#include <amxmodx>Like in my code: PHP Code:
HTML Code:
client_cmd( id, "say Selected reason: Banned for cheating. Player steamid: PLAYER STEAMID GOES HERE" ); |
Re: How can i get steamid of this menu?
The least you could do was indent the code and remove blank lines, which you can do with NotePad++ in 5 seconds.
Here's a better looking code: PHP Code:
|
Re: How can i get steamid of this menu?
Quote:
Ban current player in server: 1) Player1 2) Player2 3) Player3 and etc. If admin choose on Player1 he get another menu: 1) Ban for 10min 2) Ban for 20min 3) Ban for 30min and if admin choose option 2, player get banned by admin comand in console: client_cmd amx_ban 10 PlayerID PlayerUsername Reason: 10Minutes |
Re: How can i get steamid of this menu?
Quote:
|
Re: How can i get steamid of this menu?
Quote:
UPDATED: HTML Code:
#include <amxmodx> |
Re: How can i get steamid of this menu?
Great, you killed the indentation again.
|
Re: How can i get steamid of this menu?
You can get the SteamID of a player with get_user_authid(), used the same way as get_user_name().
|
Re: How can i get steamid of this menu?
Ok so i tried from 0 and now works but not everytime. Then i first join in the server and then another player connect to server everyting works fine, but if i joined second and try to ban some player i get banned by myself. Any suggestion? Code:
HTML Code:
#include <amxmodx> |
Re: How can i get steamid of this menu?
Check if userid is corret
|
Re: How can i get steamid of this menu?
I dont understand how it works for u? I checked and i think your last posted plugin is totally mess...
|
| All times are GMT -4. The time now is 12:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.