Raised This Month: $ Target: $400
 0% 

String replace.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xalomi
New Member
Join Date: Jan 2006
Old 12-12-2006 , 02:06   String replace.
Reply With Quote #1

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?
Xalomi is offline
eFrigid
Senior Member
Join Date: Aug 2005
Location: 3o3
Old 12-12-2006 , 02:07   Re: String replace.
Reply With Quote #2

Hello wpK, if Zenith isn't on tomorrow I will try and make your plugin.
__________________
lol
eFrigid is offline
Send a message via AIM to eFrigid Send a message via MSN to eFrigid Send a message via Skype™ to eFrigid
dutchmeat
Senior Member
Join Date: Sep 2006
Old 12-12-2006 , 05:08   Re: String replace.
Reply With Quote #3

A say command ?
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
Xalomi
New Member
Join Date: Jan 2006
Old 12-12-2006 , 06:18   Re: String replace.
Reply With Quote #4

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?
Xalomi is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 12-12-2006 , 06:22   Re: String replace.
Reply With Quote #5

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
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 12-12-2006 , 11:07   Re: String replace.
Reply With Quote #6

Quote:
block it with return PLUGIN_HANDLED
Not possible. It's not sent to the server.
VEN is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 12-12-2006 , 11:40   Re: String replace.
Reply With Quote #7

isn't it a server command ?
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 12-12-2006 , 11:54   Re: String replace.
Reply With Quote #8

It is also a server command but it's handled differently. And anyway he wanted to alter a client command name.
VEN is offline
Reply



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 07:00.


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