leonardo123
New Member
- Joined
- Jul 10, 2008
- Messages
- 90
- Reaction score
- 0
Here's The Script For Change PvP InGame
This Script Works With Optional Pvp Script
Go To Data/Talkactions/Tlkactions.xml Go To
And Paste The Next Code After This
then go to Talkactions/Scripts/ And Make A New File Named pvpmode.lua
Then Paste This Inside
Then Say /reload Talkactions And Its Ready
Explain:
When You Say !pvp on Your Pvp Mode Will Be Channged To 1
And When You Say !pvp off Your Pvp Mode Will Be Channged To 0
It Don't Channge If You Have Pz Or Any PK.
Please Leave Comments And If You Want Give Me Some Reputation
Credits To Me!!!
This Script Works With Optional Pvp Script
Go To Data/Talkactions/Tlkactions.xml Go To
Code:
<talkaction words="!online" event="script" value="online.lua"/>
Code:
<talkaction words="!pvp" event="script" value="pvpmode.lua"/>
then go to Talkactions/Scripts/ And Make A New File Named pvpmode.lua
Then Paste This Inside
Code:
function onSay(cid, words, param, channel)
local playerSkull = getPlayerSkullType(cid)
local p = string.explode(param, ',')
if(param == "") then
doPlayerSendCancel(cid, "command requieres param")
return true
end
if (param == "on") and getCreatureSkullType(cid) == SKULL_NONE getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE then
setPlayerPVPMode(cid, 1)
doSendAnimatedText(getPlayerPosition(cid), "PVPON!", 180)
end
if(param == "off") and playerSkull == SKULL_NONE
getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE then
setPlayerPVPMode(cid, 0)
doSendAnimatedText(getPlayerPosition(cid), "PVPOFF!", 180)
end
return FALSE
end
end
Then Say /reload Talkactions And Its Ready
Explain:
When You Say !pvp on Your Pvp Mode Will Be Channged To 1
And When You Say !pvp off Your Pvp Mode Will Be Channged To 0
It Don't Channge If You Have Pz Or Any PK.
Please Leave Comments And If You Want Give Me Some Reputation
Credits To Me!!!
Last edited: