• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action use lever and make the server PVP-ENF

Zerak456

Gorlex.net NEW!
Joined
Aug 13, 2008
Messages
1,060
Reaction score
6
hello this is a script just for they servers who got pvp..

u must place the lever in gm room and u need a gm room

for if u got it in city players go and pull when he is near to kill a player ...

but i place mine in gm room

so heres it

Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 1945 or item.itemid == 1946 then
            doPlayerSendTextMessage(cid, 21, "pvp ENF is now on.")
	getWorldType(PVP-Enf)
        else
            doPlayerSendTextMessage(cid, 21, "pvp ENF is now off.")
	getWorldType(PVP)
end
end
return True
end

tested on tfs0.3.4

REP++ if u like it :)
 
some one want it?

it have been over 2 weeks and no one replied!
 
Nice try, but this is not really usefull since we have a talkaction command that already do this :}
Btw, have you really tested the script? because there are a few bugs:
-you have added a wrong 'end'
-the constants 'PVP-Enf' and 'PVP' might be wrong
-I did not get the point of that 'else'

25th June 2009, 17:50
2 weeks right? :p
 
Back
Top