Help getting server initiate commands on players
Okay, I got a little menu where you can choose the slay player, everything works fine except to the slaying where nothing happens. Its exactly the same with ban too. I will give you my execute handle in the menu.
Slay handle: Code:
public HandleSlay(id, menu, item)Code:
public HandleBan(id, menu, item) |
Re: Help getting server initiate commands on players
You need to find out the exact command that is being sent to the server AFTER the name gets formatted in there. If that isn't incorrect then try:
server_cmd("amx_slay #%d", get_user_userid(szSlayHim)) Also, try to avoid using the "sz" prefix on non-string variables as "sz" denotes a string and makes your code less readable if used incorrectly. |
Re: Help getting server initiate commands on players
What about ban?
I saw your correction on the slaycode and ima send it home since im in school but please tell me the ban correction :p |
Re: Help getting server initiate commands on players
Change amx_slay to amx_ban . . . .
|
| All times are GMT -4. The time now is 19:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.