AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Public player's played time (https://forums.alliedmods.net/showthread.php?t=326809)

Magicher0ex 08-17-2020 17:15

Public player's played time
 
Here is the link because i don't know how to upload directly (with include file): https://easyupload.io/m/6d1q04

Can anyone make it to see every player's time in the server with /time "name" and if the system doesn't found the name to print in the chat

client_print_color(id, "There is no OR multiple players with that name ->^x03 %s", szTarget);
exactly like this

fysiks 08-17-2020 18:26

Re: Public player's played time
 
Quote:

Originally Posted by Magicher0ex (Post 2714587)
Here is the link because i don't know how to upload directly (with include file): https://easyupload.io/m/6d1q04

You upload directly to the forums by attaching the file to your post using the "Manage Attachments" function.

Also note that because this is the Scripting Help section, you are asking for help editing the plugin on your own. So, you should attempt to make the changes yourself (and test them). If you have issues doing this, you should post a specific question about what you're having issues with.

If you want someone else to make the edit for you, you need to post in the "Suggestions/Requests" section.

Often people have issues trying to take in arguments for chat commands because you can't do it in the same way that a console command does it. Taking in arguments in a chat message requires hooking "say" and parsing the string to 1) determine if it's the command that you're handling and 2) what the arguments are. When you've determined that it is your command and can identify the argument, you can pass it to an existing function to do the normal functionality.


All times are GMT -4. The time now is 13:53.

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