• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[TALK] Premy command

f@bio

Fudera Otserver
Joined
Jul 10, 2007
Messages
213
Reaction score
0
Location
Brasil
-- Hello friends, on this time i need help to make a litle command, this command its:

/addpremmy PLAYER, COUNT

-- Plx someone help me to make this, i want this update account, for player on or offline and need count days to add...

REP++ for helping me...

Many thx for all

F@bio
 
Code:
local params = string.explode(param, ",")
local playerName = params[1]
local days = params[2]

local player = getPlayerByName(playerName)
if (not player) then
	return true
end

if (not days) then
	days = 1
end

doPlayerAddPremiumDays(player, days)
 
Back
Top