newby
Active Member
- Joined
- Jun 11, 2016
- Messages
- 183
- Reaction score
- 43
I'm need to check if player is not in PVP
To make a protect script (to if player got internet down he don't die to monster... but i don't wan't nobody abusing it in PVP)
How to make?
To make a protect script (to if player got internet down he don't die to monster... but i don't wan't nobody abusing it in PVP)
Code:
function onThink(interval, lastExecution)
if playerGetLastPing(cid) > 2000 then
-- if player is only in PVE (not in PVP) then
print(playerGetLastPing(cid))
doRemoveCreature(cid)
end
end
end
How to make?