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
Something like this
HEY!!! Keep in your mind that the function "getPlayerInArea" not are real...
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...