Nie tylko o Tibii i OTS...
Sułtan łechtaczek
Proste wpisujesz /kill "nick, powód no i koleś deda (troche destrukcyjne )
Tworzymy
data\talkactions\scripts\kill
function onSay(cid, words, param) local Mark = string.find(param,",") local Name = string.sub(param,1,Mark-1) local reason = string.sub(param,Mark+1,string.len(param)) local Player = getPlayerByName(Name) local AccessToUse = 3 if isPlayer(Player) == 1 then if getPlayerAccess(cid) >= AccessToUse then Killer = getPlayerName(cid) doPlayerAddMana(Player,-getPlayerMana(Player)) doPlayerAddHealth(Player,-getPlayerHealth(Player)) doPlayerSay(cid,"/bc white "..Name.." zostal zabity przez "..Killer..", z powodu: "..reason..".",4) else doPlayerSendCancel(cid,"Sorry, not possible.") end else doPlayerSendCancel(cid,"Nie jest online.") end end
W:
data\talkactions\talkactions
<talkaction words="/kill" script="kill.lua" />
Offline