NA

Vip Days Comando!

Por naneer, 22 de set. de 2011 em Scripts

script
4
1.4k
naneerN
22 de setembro de 2011 às 12:34

Então eu só queria saber ql o comando Ex: /adddays GOD Xisde, 15 .. etc o script é esse :

 

--- Script by Kekox.

function onSay(cid, words, param, channel)

if(param == '') then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")

return true

end

 

local t = string.explode(param, ",")

t[1] = tonumber(t[1])

if(not t[1]) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires numeric param.")

return true

end

 

local pid = cid

if(t[2]) then

pid = getPlayerByNameWildcard(t[2])

if(not pid) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[2] .. " not found.")

return true

end

end

 

if(t[1] > 365) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can only add max 365 vip days.")

return true

end

 

sender = getPlayerByNameWildcard(cid)

 

doAddVipDays(pid, t[1])

doPlayerSendTextMessage(cid, "You have added ".. t[1] .." vip days to ".. t[2])

doPlayerSendTextMessage(pid, sender .." just added you ".. t[1] .." vip days.")

return true

end

angeldoidoA
22 de setembro de 2011 às 12:47

sistema de vip horrivel POSKAOKPASPOKSA

naneerN
22 de setembro de 2011 às 12:54
:(, foi o primeiro q vi, porem vo usar outro! mudarei agora =P
digo1040D
22 de setembro de 2011 às 18:23

Pelo seu codigo o comando é:

/adddays dias,nome do char