text plugin

Vaata eelmist teemat Vaata järgmist teemat Go down

ssand
ssand
Juunior
Liitus : 09/06/2016
Postitusi : 53

Postitaminessand 05.07.16 3:44

Hello please i want add THis in txt

zp_auto_respawn.txt

Kood:
}
public respawn_player(id){
client_print(id,print_chat,"[ZP] %L",LANG_PLAYER," You Have Been Revived");
zp_respawn_user(id,ZP_TEAM_ZOMBIE);
}
S0X
S0X
Liige
Liitus : 10/01/2013
Postitusi : 220

PostitamineS0X 05.07.16 14:57

Add a register dictionary line to your plugin_init in your script. Don't delete other lines, just add a line:

Kood:
public plugin_init() {
     register_dictionary("zp_auto_respawn.txt")
     }

And then edit the code you send to us:

Kood:
public respawn_player(id){
     client_print(id, print_chat, "[ZP] %L", LANG_PLAYER, "RESPAWN_PLAYER", id)
     zp_respawn_user(id,ZP_TEAM_ZOMBIE);
}

Then add in your zp_auto_respawn.txt file line like this:

[en]
RESPAWN_PLAYER = And here put your text, what you want to show to players
ssand
ssand
Juunior
Liitus : 09/06/2016
Postitusi : 53

Postitaminessand 05.07.16 16:09

i try this but still not work  [en]
RESPAWN_PLAYER = And here put your text, what you want to show to players
ssand
ssand
Juunior
Liitus : 09/06/2016
Postitusi : 53

Postitaminessand 05.07.16 16:26

text plugin File


Viimati muutis seda ssand (05.07.16 16:28). Kokku muudetud 1 kord
ssand
ssand
Juunior
Liitus : 09/06/2016
Postitusi : 53

Postitaminessand 05.07.16 16:27

http://www11.zippyshare.com/v/kbgo74OL/file.html

i want txt to This , i try add  [en]
RESPAWN_PLAYER = And here put your text, what you want to show to players

but not Work pls help guys !!
S0X
S0X
Liige
Liitus : 10/01/2013
Postitusi : 220

PostitamineS0X 05.07.16 19:08

Don't edit .txt file. Replace it in data/lang folder.
Example: Make .txt file called zp_auto_respawn to your desktop. Add line to it:
[en]
RESPAWN_PLAYER = And here put your text, what you want to show to players.

Delete zp_auto_respawn.txt file from your server's data/lang folder. Transfer zp_auto_respawn.txt that you have on desktop to your server's data/lang folder. Restart server.

When you do all points like i said including scripting from my previous post, it works.
ssand
ssand
Juunior
Liitus : 09/06/2016
Postitusi : 53

Postitaminessand 05.07.16 20:32

i do it
creat new file txt zp_auto_respawn and add Code
[en]
RESPAWN_PLAYER = You Have been Revived

then i go to data/lang and add file , but not work
i think this code u give is not work

can u try it ?

sma of plugin : http://www70.zippyshare.com/v/XefowC8H/file.html


S0X
S0X
Liige
Liitus : 10/01/2013
Postitusi : 220

PostitamineS0X 06.07.16 0:06

Of course your plugin doesn't work, when you didn't put code like i gave to you.

Your line in .sma is:
Kood:
client_print(id,print_chat,"[ZP] %L",LANG_PLAYER,"YOU_HAVE_BEEN_REVIVED")

But i gave to you:
Kood:
client_print(id, print_chat, "[ZP] %L", LANG_PLAYER, "RESPAWN_PLAYER", id)

You had to copy all the code as i gave, but you didn't.
Of course it cannot find a lang line as you mentoned in script that it has to take line from: YOU_HAVE_BEEN_REVIVED ,but it has to be from RESPAWN_PLAYER

I edited .sma and text file and here they are for you:
http://www20.zippyshare.com/v/heHhA9Ou/file.html
http://www103.zippyshare.com/v/0lUtdaWp/file.html
ssand
ssand
Juunior
Liitus : 09/06/2016
Postitusi : 53

Postitaminessand 06.07.16 1:58

Ok Thank You
Contact me in Skype : nohel122
i want ask u something . :)

Vaata eelmist teemat Vaata järgmist teemat Tagasi üles

Soovid vestluses osaleda?

Selleks logi sisse või tee endale kasutaja.

Liitu foorumiga

Tee endale kasutaja ning osale aruteludes.


Tee uus kasutaja

Logi sisse

Omad foorumis juba kasutajat? Logi sisse.


Logi sisse

 
Permissions in this forum:
Sa ei saa vastata siinsetele teemadele