Raised This Month: $ Target: $400
 0% 

Cmds taking wrong executor's id


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 07-03-2021 , 07:45   Re: Cmds taking wrong executor's id
Reply With Quote #9

Quote:
Originally Posted by jimaway View Post
it works with bhop command but not with bh?
anyway stop using the inner player id as a command argument. the players have no way to find this information, use something that the players have access to (cmd_target() is a useful native to id players).
you also can't use get_playersnum() to reliably loop through all players in the server since player id's wont always be in order, use get_players() instead.
hmm... first i used "plist" command and it printed all users ids in console, then i used any of provided ids in "bhop toggle" and it worked and i found nothing wrong. but thank you for remark

Quote:
Originally Posted by fysiks View Post
Spoiler
okay. I think i should rework entirely whole plugin because it was my first plugin and i was unexperienced. Thank you for helping and explanation!

Last edited by kww; 07-03-2021 at 07:50.
kww is offline
 



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 02:34.


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