Execute sm_beacon by plugin
I want to execute command sm_beacon on player, i tried with ServerCommand("sm_beacon #%i", param1); and ServerCommand("sm_beacon %i", param1); but did not worked.
|
Re: Execute sm_beacon by plugin
Show your code.
And use player #userid, not client index. |
Re: Execute sm_beacon by plugin
Thank you, i solved with ServerCommand("sm_beacon %s", ime); - using string instead ID i did not know how to get this thing work with Player ID. Anyway do you know how to disable notifications in chat about using this?
|
Re: Execute sm_beacon by plugin
hopefully you're not targeting by name, because there is nothing stopping a player from coming into the server with the name ";sm_rcon quit" and running your code if you're using automatic name based targeting
perhaps you should read into how targeting works and what the difference between a userid and a client index is? in any sense, assuming "param1" is our clients' index, you'll want to use GetClientUserId(param1); |
Re: Execute sm_beacon by plugin
Good point man about quit and string, i will fix that. Thank you.
|
All times are GMT -4. The time now is 18:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.