AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   String replace. (https://forums.alliedmods.net/showthread.php?t=48453)

Xalomi 12-12-2006 02:06

String replace.
 
Dear all,

I was wondering if it is at all possibly in Pawn to make a client command, and when they type it, Pawn takes the output, replaces any string with the new string, and update the client?

eFrigid 12-12-2006 02:07

Re: String replace.
 
Hello wpK, if Zenith isn't on tomorrow I will try and make your plugin. :)

dutchmeat 12-12-2006 05:08

Re: String replace.
 
A say command ?

Xalomi 12-12-2006 06:18

Re: String replace.
 
I don't know what kind of command to give an example for, so lets just say status, is there a way to replace lets say... The name of someone?

dutchmeat 12-12-2006 06:22

Re: String replace.
 
no it's not, you will have to recreate the whole status function, which means:

Forward it,
block it with return PLUGIN_HANDLED
go through all clients, get their names,pings,scores,
check if the names are correct, else change them
print new status command

VEN 12-12-2006 11:07

Re: String replace.
 
Quote:

block it with return PLUGIN_HANDLED
Not possible. It's not sent to the server.

dutchmeat 12-12-2006 11:40

Re: String replace.
 
isn't it a server command ?

VEN 12-12-2006 11:54

Re: String replace.
 
It is also a server command but it's handled differently. And anyway he wanted to alter a client command name.


All times are GMT -4. The time now is 07:00.

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