AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Copoum Code (https://forums.alliedmods.net/showthread.php?t=253739)

Syturi0 12-27-2014 15:51

Copoum Code
 
I want to make a Copoum Code System, for players to get rewards.
I want to make each copoum code only usable once, only 1 player can use it, once its used no outher playe can use it again.
This is what i have so far:

Spoiler


Can someone help me fix this?

YamiKaitou 12-27-2014 16:05

Re: Copoum Code
 
Using SQL would be the easiest way. Otherwise, using a file or vault could work as well

Syturi0 12-27-2014 16:06

Re: Copoum Code
 
Quote:

Originally Posted by YamiKaitou (Post 2240754)
Using SQL would be the easiest way. Otherwise, using a file or vault could work as well

Can you show me how i do that?

I tried nVault before but i failed.

YamiKaitou 12-27-2014 16:21

Re: Copoum Code
 
Set the code as the vault key and then set the value to either 1 or 0 to indicate if it has been used

Syturi0 12-27-2014 16:29

Re: Copoum Code
 
Quote:

Originally Posted by YamiKaitou (Post 2240762)
Set the code as the vault key and then set the value to either 1 or 0 to indicate if it has been used

Sorry, i dont know how to do that


All times are GMT -4. The time now is 15:28.

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