halo gan mau tanya dong kalo mau tambahin cash coin gimana ya caranya??
PLEASE SUPPORT US BY CLICK THE ADS LINK, TURN OFF ADBLOCK
OR YOU CAN SUPPORT US THROUGH PAYPAL / SAWERIA
THE FORUM WILL BE SHUT DOWN IN THE END OF THE YEAR
IF WE GOT NO SUPPORT ANYMORE
Code:
/****** Bacuy`s Area ******/
/****** Script add premium, tanpa harus mendelete ******/
/****** jika sudah ada pada table ******/
DECLARE @id VARCHAR(13)
DECLARE @status int
DECLARE @lama int
DECLARE @cash int
/****** Your Name ******/
SET @id = 'strom'
/****** Set 2 for turn on Premium or Set 1 for turn off Premium ******/
SET @status = '2'
/****** How long players get premium service (in days) exemple : 1 for 1 days, 2 for 2 days, 3 for 3days. ******/
SET @lama = '30'
/****** Ini gak perlu di isi, ini query khusus add premium aja ******/
SET @cash = '0'
/************************************************************************************************************************************************/
declare @count numeric(18, 0)
select @count = COUNT(*) from [BILLING].[dbo].[tbl_UserStatus] where id = @id
if (@count = 0)
begin
INSERT INTO [BILLING].[dbo].[tbl_UserStatus]
(
[id],
[Status],
[DTStartPrem],
[DTEndPrem],
[Cash]
)
VALUES
(
@id,
@status,
CONVERT(datetime,GETDATE()),
CONVERT(datetime,GETDATE()+@lama),
@cash
)
end
else
begin
update [BILLING].[dbo].[tbl_UserStatus]
set [Status] = @status,
[DTStartPrem] = CONVERT(datetime,GETDATE()),
[DTEndPrem] = CONVERT(datetime,GETDATE()+@lama),
[Cash] = @cash
where id = @id
end
/***********************************************************************************************************************************************/