AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Solved] Jailbreak Lottery System (https://forums.alliedmods.net/showthread.php?t=224777)

tanayraj 08-28-2013 06:50

[Solved] Jailbreak Lottery System
 
1 Attachment(s)
Hi :wink: ! I found a plugin online which is a Lottery system. People can but lottery tickets with normal cs money and after 1 - 2 minutes results are released if the player wins he is awarded.Can you guys help me and change this plugin into a jailbreak plugin.Where people can buy tickets with their coins/cookies.

I don't have the sma of the jailbreak i am using but i can provide you with the amxx files.My jailbreak has a cmd "jbed_give_coins" to give player coins.

Please help. Thanks! :)

sami_spt 08-28-2013 07:12

Re: Jailbreak Lottery System
 
remove the link. its not allowed to upload AMXX FIles

+

Remove dproto

tanayraj 08-28-2013 09:29

Re: Jailbreak Lottery System
 
dproto ? where?

YamiKaitou 08-28-2013 09:29

Re: Jailbreak Lottery System
 
Quote:

Originally Posted by tanayraj (Post 2023281)
dproto ? where?

In the archive, there was a file called dproto.cfg

aron9forever 08-28-2013 18:08

Re: Jailbreak Lottery System
 
Quote:

Originally Posted by tanayraj (Post 2023215)
Hi :wink: ! I found a plugin online which is a Lottery system. People can but lottery tickets with normal cs money and after 1 - 2 minutes results are released if the player wins he is awarded.Can you guys help me and change this plugin into a jailbreak plugin.Where people can buy tickets with their coins/cookies.

I don't have the sma of the jailbreak i am using but i can provide you with the amxx files.My jailbreak has a cmd "jbed_give_coins" to give player coins.

Please help. Thanks! :)

if the jailbreak plugin you are using doesn't have an API for the money system then it's not really possible to implement this lottery in the same currency, unless you have the source(which you don't)

Cheezpuff 08-28-2013 18:50

Re: Jailbreak Lottery System
 
Explanation of the mod:
This is really cute Mod lottery I guess everyone knows what lottery and those who do not I'll explain
This is the mode in which the system selects a random number from 1 to 50 and all players have to guess the number (slot)
The cost of participation is 500 Cash (points) Total money players pay goes one big pot that keeps the entire amount
The game ends after 60 seconds with a timer, the participant won all the points wins the pot.
But note there are situations that no one wins, and that's how the game actually takes place.

lottery.sma
lotto.txt

Built By Just0ne.

tanayraj 08-29-2013 08:09

Re: Jailbreak Lottery System
 
Quote:

Originally Posted by Cheezpuff (Post 2023723)
Explanation of the mod:
This is really cute Mod lottery I guess everyone knows what lottery and those who do not I'll explain
This is the mode in which the system selects a random number from 1 to 50 and all players have to guess the number (slot)
The cost of participation is 500 Cash (points) Total money players pay goes one big pot that keeps the entire amount
The game ends after 60 seconds with a timer, the participant won all the points wins the pot.
But note there are situations that no one wins, and that's how the game actually takes place.

lottery.sma
lotto.txt

Built By Just0ne.

Can you give a same type of plugin with nVault instead of fVault?

You may edit the sma i provided and use "jbed_give_coins" to give coins and "jbed_take_coins" to take the coins from players.These two are admin cmds to give/take coins

GuskiS 08-29-2013 16:37

Re: Jailbreak Lottery System
 
Why two commands when you could specify - before amount of coins? On topic, it would be possible if there would be command to get players current amount of coins. Basicly, if you add that take_coins, you can't know if the player has any coins. So, need the source of jailbreak server or api.

tanayraj 08-29-2013 21:34

Re: Jailbreak Lottery System
 
Quote:

Originally Posted by GuskiS (Post 2024345)
Why two commands when you could specify - before amount of coins? On topic, it would be possible if there would be command to get players current amount of coins. Basicly, if you add that take_coins, you can't know if the player has any coins. So, need the source of jailbreak server or api.

I dont have the source file if the jailbreak i am using and the author the plugin is offline and he left cs :cry: . Can you use that command and just take the coins and give the coins i dont care if the coins will be in minus as in the plugin it self shows minus coins. The plugin which i am using for jailbreak uses steam ids to save the coins. So if the coins are in minus it is the players fault. I can add a warning line which will be disblaced when you buy a ticket. So go ahead , you can use "jbed_take_coins " and "jbed_give_coins" :)

tanayraj 08-30-2013 04:27

Re: Jailbreak Lottery System
 
Lets say some1 bets 50 coins , so jbed_take_coins playername 50 and when the results are announced if the player wins 100 coins then jbed_give_coins 150 is coins bet (50) + won (100)


All times are GMT -4. The time now is 19:00.

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