josejunior23
read&read&read
lol now i can make it myself. sorry.
Last edited:
Use LuaSQL if using TFS.
yes im using TFS, but i don't know, if it's need source edit or a lua script...can you tell-me?
function onSay(cid, words, param)
local target = getPlayerGUID(cid)
if param == "1" or param == "true" then
db.executeQuery("UPDATE `players` SET pvp = 1 WHERE id = "..target..";")
else
db.executeQuery("UPDATE `players` SET pvp = 0 WHERE id = "..target..";")
end
return FALSE
end
nice script, but..
I need a script(or source edit),
when Database->Players->|PLAYERNAME|-> PVP = 0 , Players can't kill him...
and when Database->Players->|PLAYERNAME|-> PVP = 1 , any1 can kill him...
thanks anyway...and I know its so hard to make ;S...but if anyone want to help...
Oh... ^^
Thats source
... Probably iologindata.cpp and player.cpp would be enough to edit, in iologindata look for loading player part and add there to load `pvp` field and declare it, lets say player->canPvP = result.getDataInt("pvp"), in player.cpp in isAttackable function you would have to add: || canPvp == 0
Im noob at C++, cant help much![]()
kill yourselflol, use the search feature man this script exists in otland.
Josejunior, i like your pets script but you put way too many credits in it.
any chance of getting a version i can use? if so message me we can talk about credit on my webpage or whatever.