text plugin

Vaata eelmist teemat Vaata järgmist teemat Go down

avatar
ssand
Liige
Postitusi : 53
Maine : 1
Liitus : 09/06/2016
Vaata kasutaja profiili

Postitaminessand on 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);
}
avatar
S0X

Postitusi : 220
Maine : 14
Liitus : 10/01/2013
Vaata kasutaja profiili

PostitamineS0X on 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
avatar
ssand
Liige
Postitusi : 53
Maine : 1
Liitus : 09/06/2016
Vaata kasutaja profiili

Postitaminessand on 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
avatar
ssand
Liige
Postitusi : 53
Maine : 1
Liitus : 09/06/2016
Vaata kasutaja profiili

Postitaminessand on 05.07.16 16:26



Viimati muutis seda ssand (05.07.16 16:28). Kokku muudetud 1 kord
avatar
ssand
Liige
Postitusi : 53
Maine : 1
Liitus : 09/06/2016
Vaata kasutaja profiili

Postitaminessand on 05.07.16 16:27

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 !!
avatar
S0X

Postitusi : 220
Maine : 14
Liitus : 10/01/2013
Vaata kasutaja profiili

PostitamineS0X on 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.
avatar
ssand
Liige
Postitusi : 53
Maine : 1
Liitus : 09/06/2016
Vaata kasutaja profiili

Postitaminessand on 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 : zippyshare.com/v/XefowC8H/file.html


avatar
S0X

Postitusi : 220
Maine : 14
Liitus : 10/01/2013
Vaata kasutaja profiili

PostitamineS0X on 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:
zippyshare.com/v/heHhA9Ou/file.html
zippyshare.com/v/0lUtdaWp/file.html
avatar
ssand
Liige
Postitusi : 53
Maine : 1
Liitus : 09/06/2016
Vaata kasutaja profiili

Postitaminessand on 06.07.16 1:58

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

PostitamineSponsored content

Vaata eelmist teemat Vaata järgmist teemat Tagasi üles

Soovid reklaamidest vabaneda?

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