Raised This Month: $59 Target: $400
 14% 

Roll (WoW analog)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   Hawk552 (427)
HoRRoR [CSM]
Member
Join Date: May 2009
Old 06-28-2009 , 16:32   Roll (WoW analog)
Reply With Quote #1

Description
[EN] There was such a situation ... ZP mod, it was not long Nemesis mode. I propose to start the mode manually. players agree, the question arises, who do nemesis? A lot of people want them to stay. Recall the analogy /roll of World of Warcraft decided to first search a plugin, as well as it had been decided to make himself.

[RU] Возникла такая ситуация... ZP мод, долго не было режима немезис. Я админ предлагаю стартовать режим вручную. игроки согласны и возникает вопрос, кого сделать немезисом? Много кто-хочет им побыть. Вспомнив аналогию /roll из World of Warcraft решил сначала поискать такой плагин, ну а т.к. его не было, решил сделать сам.

This is my first plugin.

Chat commands
[EN]
- for all:
/roll - the withdraw of a random number from 1 to 100. And everybody sees how those emissions.
- for admins:
/endroll - finish the roll. This command show name of the winner and how he threw.
/resetroll - Allows players to start the roll again, as per round is allowed only one /roll.
/playerroll - displays the name of a random player.

[RU]
- для всех:
/roll - вывод случайного числа от 1 до 100. Аналог выбрасывания костей. Причем все видят, кто сколько выбросил.
- для администраторов:
/endroll - закончить ролл. Т.е. бывает не уследить за чатом, кто сколько выбросил. Эта комманда показыват имя победителя и сколько он выбросил.
/resetroll - Позволяет игрокам начать ролл заново, т.к. за раунд допускается только один /roll.
/playerroll - выводит имя случайного игрока.

Changelog
0.2 - first relise
0.3 - added multilingual (EN,DE,ES,PL,NL,LT,RU)

Note: put roll.txt to /addons/amxmodx/data/lang/ folder.

(!) I will not be able to do translations to other languages is because not be able to correct the translation of Google translator. Please write me in this topic translated into your language.
Attached Files
File Type: sma Get Plugin or Get Source (amx_roll.sma - 1190 views - 4.3 KB)
File Type: txt roll.txt (2.6 KB, 253 views)

Last edited by HoRRoR [CSM]; 08-25-2009 at 04:54.
HoRRoR [CSM] is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 06-28-2009 , 17:36   Re: Roll (WoW analog)
Reply With Quote #2

First Suggestion: Make this multilingual

Second: Edit your post, you spelled "Withdrawal" wrong
__________________

Home of the AMX SUPER
Discord
DruGzOG is offline
Send a message via AIM to DruGzOG
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-28-2009 , 18:15   Re: Roll (WoW analog)
Reply With Quote #3

PHP Code:
for (new 033i++) 
NO WAY! xD

Hook get_maxplayers( ); into global variable and use it instead of 33
__________________
xPaw is offline
shine771
Senior Member
Join Date: Jun 2007
Location: Latvia
Old 06-28-2009 , 18:20   Re: Roll (WoW analog)
Reply With Quote #4

No, that sucks. It's way cooler to check from 0 to 32 than from 1 to, for example, 16.
__________________
shine771 is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 06-28-2009 , 18:31   Re: Roll (WoW analog)
Reply With Quote #5

Add ML

But cool plugin
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-28-2009 , 18:35   Re: Roll (WoW analog)
Reply With Quote #6

You could also use formatex, cache get_user_msgid("SayText").
I suggest you to use unreliable MSG_xxx instead of reliable.

You could also use some chatcolor stock.
__________________
- tired and retired -
ConnorMcLeod is offline
Simax
Member
Join Date: Apr 2009
Old 06-29-2009 , 06:43   Re: Roll (WoW analog)
Reply With Quote #7

Quote:
Originally Posted by HoRRoR [CSM] View Post
Description
[RU] Возникла такая ситуация... ZP мод, долго не было режима немезис. Я админ предлагаю стартовать режим вручную. игроки согласны и возникает вопрос, кого сделать немезисом? Много кто-хочет им побыть. Вспомнив аналогию /roll из World of Warcraft решил сначала поискать такой плагин, ну а т.к. его не было, решил сделать сам

[RU]
- для всех:
/roll - вывод случайного число от 1 до 100. Аналог выбрасывания костей. Причем все видят, кто сколько выбросил.
- для администраторов:
/endroll - закончить ролл. Т.е. бывает не уследить за чатом, кто сколько выбросил. Эта комманда показыват имя победителя и сколько он выбросил.
/resetroll - Позволяет игрокам начать ролл заново, т.к. за раунд допускается только один /roll.
/playerroll - выводит имя случайного игрока.
thx for the Ru translit)
Simax is offline
HoRRoR [CSM]
Member
Join Date: May 2009
Old 06-29-2009 , 06:52   Re: Roll (WoW analog)
Reply With Quote #8

added multilingual
HoRRoR [CSM] is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 06-29-2009 , 11:02   Re: Roll (WoW analog)
Reply With Quote #9

ES Translation

Code:
[es]
SIMPLE_ROLL = %s laminadas en la %d (1-100)
PLAYER_ROLL = Jugador es aleatoria : %s
END_ROLL = El rollo de ganar %s con %d anotó.
ALREADY_ROLLED = Tú rodó en esta ronda.
RESET_ROLL = Rollo ha sido reseted.
NOT_ADMIN = Tú no es de administrador.
ROLL_FAILED = Rollo no, porque no se escribió un /roll
__________________

Home of the AMX SUPER
Discord
DruGzOG is offline
Send a message via AIM to DruGzOG
HoRRoR [CSM]
Member
Join Date: May 2009
Old 06-29-2009 , 11:15   Re: Roll (WoW analog)
Reply With Quote #10

thx
HoRRoR [CSM] 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 15:49.


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