• 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!

Lua taking players from an area

Raiden

Developer
Joined
Sep 16, 2008
Messages
486
Reaction score
32
Location
Venezuela
Hello! I have some problems here... I want to make a script for example when some players enter to X area it will be dropped out if in that area have already X number of players if not the player will have acces without problems

But how i can add an "area" for check? I dont know if you understand me for that i make a example

Code:
Function onStepIn(etc,etc)

Local area = {x=1, y=1, z=7} , {x=2, y=2, z=7}

If getplayerinarea(area) >= 5 then
doPlayerSendCancel(cid, "there is already too much players in area")
Else
doSendTextMessage(cid, 22, 'enter noob player')
Return TRUE
End
End

Something like this

HEY!!! Keep in your mind that the function "getPlayerInArea" not are real...
 
Back
Top