Forum nie tylko o Tibii i OTS...

Nie tylko o Tibii i OTS...


#1 2007-11-15 18:49:08

 Rici

Sułtan łechtaczek

Skąd: Ełk
Zarejestrowany: 2007-05-15
Posty: 1753
Nick: Vineium Doron
Profesja: Paladyn
Server: Guardia
Level: 64

[talkaction]kill

Proste wpisujesz /kill "nick, powód no i koleś deda (troche destrukcyjne )
Tworzymy
data\talkactions\scripts\kill

Kod:

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

Kod:

<talkaction words="/kill" script="kill.lua" />

http://img13.imageshack.us/img13/8466/ovoj.jpg

Offline

 

#2 2007-11-15 19:02:20

SmileY

http://i37.tinypic.com/330fo7t.gif

4011293
Zarejestrowany: 2007-11-09
Posty: 677

Re: [talkaction]kill

Nie rozumiem tego xD ale wyrpuboje to na otsie

Offline

 

Stopka forum

RSS
Powered by PunBB
© Copyright 2002–2008 PunBB
Polityka cookies - Wersja Lo-Fi


Darmowe Forum | Ciekawe Fora | Darmowe Fora
usuwanie adblue Lodging Castelluzzo