Autor |
AdrianMaster
Początkujący

Dołączył: 15 Lip 2006
Posty: 15
Przeczytał: 0 tematów
Ostrzeżeń: 1/5 Skąd: Olsztyn
Sob 19:09, 15 Lip 2006
|
|
Wiadomość |
|
Ban rune
W data/actions/scripts dodajemy pliczek o nazwie banrune i dodajemy do niego
Cytat: | -- Banrune by Adik --
function onUse(cid, item, frompos, item2, topos)
playeraccess = getPlayerAccess(cid)
playername = getPlayerName(item2.uid)
player2access = getPlayerAccess(item2.uid)
if playeraccess >= 2 and item2.itemid == cid then
if player2access == 0 then
doPlayerSay(cid,'/B Player '..playername..' bannished.',23)
doPlayerSay(cid,'/ban '..playername..'',1)
else
doPlayerSendCancel(cid,"You cannot ban this player.")
end
else
return 0
end
return 1
end |
Nastempnie wchodzimy w data/actions/actions i dodajemy linijke
Cytat: | <action itemid="2300" script="banrune.lua" /> |
~Pozdro~
Post został pochwalony 0 razy
|
|
|
    |