Raised This Month: $12 Target: $400
 3% 

Edit script


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GoldBull3t
New Member
Join Date: May 2020
Old 05-26-2020 , 05:25   Edit script
Reply With Quote #1

Hello guys,

im new at this,how can i change the prefix of a script like:

[AbNerScore] to like [DevilCM]??

Pls help!!
GoldBull3t is offline
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 05-26-2020 , 07:53   Re: Edit script
Reply With Quote #2

edit tag in the .sp file
jugule is offline
Tilex
Junior Member
Join Date: May 2020
Old 05-26-2020 , 12:16   Re: Edit script
Reply With Quote #3

The plugin has some code like..
PHP Code:

public Plugin myinfo 
{
    
name "nameOfMyScript",
    
author PLUGIN_AUTHOR,
    
description "My script does this and that.",
    
version PLUGIN_VERSION,
    
url "example.com/coolscripts"
}; 
It should be your name field, that you need to change here.
Tilex is offline
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 05-27-2020 , 01:01   Re: Edit script
Reply With Quote #4

Quote:
Originally Posted by Tilex View Post
The plugin has some code like..
PHP Code:

public Plugin myinfo 
{
    
name "nameOfMyScript",
    
author PLUGIN_AUTHOR,
    
description "My script does this and that.",
    
version PLUGIN_VERSION,
    
url "example.com/coolscripts"
}; 
It should be your name field, that you need to change here.
Do you use abner resetscore?
Post .sp here and I'll help you. If you have another private code, you can try to change it in translations. (Phrases)
jugule is offline
GoldBull3t
New Member
Join Date: May 2020
Old 05-27-2020 , 03:19   Re: Edit script
Reply With Quote #5

Quote:
Originally Posted by jugule View Post
Do you use abner resetscore?
Post .sp here and I'll help you. If you have another private code, you can try to change it in translations. (Phrases)
I don't know if I'm explaining it well for example, I open my server's chat and type "! Rs",then appears "[AbNer ResetScore], your rank has been reset". And I wanted to change this "[AbNer ResetScore] to [DevilCM]

Last edited by GoldBull3t; 05-27-2020 at 03:20.
GoldBull3t is offline
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 05-27-2020 , 03:50   Re: Edit script
Reply With Quote #6

Quote:
Originally Posted by GoldBull3t View Post
I don't know if I'm explaining it well for example, I open my server's chat and type "! Rs",then appears "[AbNer ResetScore], your rank has been reset". And I wanted to change this "[AbNer ResetScore] to [DevilCM]
Usually the tag is written in source (.sp) or sometimes in phrases. You can search using notepad ++ (example) by pressing CTRL + F and search for that text. You will definitely find it. You can also find it in configs (FTP), I don't know where you want to change so I gave you a simple solution.
jugule is offline
Tilex
Junior Member
Join Date: May 2020
Old 05-29-2020 , 20:22   Re: Edit script
Reply With Quote #7

Quote:
Originally Posted by GoldBull3t View Post
I don't know if I'm explaining it well for example, I open my server's chat and type "! Rs",then appears "[AbNer ResetScore], your rank has been reset". And I wanted to change this "[AbNer ResetScore] to [DevilCM]
I get what you describe there and I'd expect some code, which goes like:
PHP Code:
PrintToChat(client"[%s], your rank has been reset"myinfo.name"); 
But maybe it's just hardcoded into the chat messages. Or in the translations, as jugule said.
Tilex is offline
Reply


Thread Tools
Display Modes

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 17:45.


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