AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Edit script (https://forums.alliedmods.net/showthread.php?t=324746)

GoldBull3t 05-26-2020 05:25

Edit script
 
Hello guys,

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

[AbNerScore] to like [DevilCM]??

Pls help!!

jugule 05-26-2020 07:53

Re: Edit script
 
edit tag in the .sp file

Tilex 05-26-2020 12:16

Re: Edit script
 
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.

jugule 05-27-2020 01:01

Re: Edit script
 
Quote:

Originally Posted by Tilex (Post 2702411)
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)

GoldBull3t 05-27-2020 03:19

Re: Edit script
 
Quote:

Originally Posted by jugule (Post 2702520)
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]

jugule 05-27-2020 03:50

Re: Edit script
 
Quote:

Originally Posted by GoldBull3t (Post 2702533)
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.

Tilex 05-29-2020 20:22

Re: Edit script
 
Quote:

Originally Posted by GoldBull3t (Post 2702533)
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.


All times are GMT -4. The time now is 22:14.

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