Avarian
Bring Out Your Dead!
Created by Nikolas
Okey here is the purpose of this script:
It's a report rule violation script so a gamemaster can see ingame reports.
Here is the script:
in data/talkactions/scripts
save this as report.lua
in talkactions.xml write
All credits to Nikolas, i'm just posting because TFS doesnt have ctrl+r anymore.
Okey here is the purpose of this script:
It's a report rule violation script so a gamemaster can see ingame reports.
Here is the script:
in data/talkactions/scripts
save this as report.lua
Code:
function onSay(cid,words,param)
GmName = {"GM Lady I", "GM Lady II", "Other GM name here"} --- Put the GMs name in order of importance ( Gods first, then Gms, counsellors, etc)
ExhaustedTime = 120 ---Time that the player will have to wait between one report and other (prevent spam)
ExhaustedValue = 1337 --- Storage value that the exhausted will be saved
for y = 1, #GmName do
if getPlayerByName(GmName[y]) ~= 0 then
if param ~= "" then
if exhaust(cid,ExhaustedValue,ExhaustedTime) == 1 then
doPlayerSendTextMessage(cid,25,'Your report has been sent, wait patiently for a reply.')
doPlayerSendTextMessage(getPlayerByName(GmName[y]),25,'Player '..getPlayerName(cid)..' reported: '..param..'')
else
doPlayerSendCancel(cid,'You cannot report now.')
end
else
doPlayerSendCancel(cid,'You must write something to report.')
end
end
end
end
in talkactions.xml write
Code:
<talkaction words="!rulereport" script="report.lua" />
All credits to Nikolas, i'm just posting because TFS doesnt have ctrl+r anymore.