13.08.2011, 21:13
Why it works only first ?
The code :
When I said first,i said about frist IsPlayerInArea condition.
Thanks for help!
The code :
Код:
if(IsPlayerInArea(killerid,1091.817, 2707.167, 1513.54, 2858.022)) { SendClientMessage(killerid, COLOR_GREY, " You have been kicked by Server, reason DM in SAFEZONE !"); Kick(killerid); } else if(IsPlayerInArea(killerid,1098.173, -2116.114, 1356.766, -1958.204)) { SendClientMessage(killerid, COLOR_GREY, " You have been kicked by Server, reason DM in SAFEZONE !"); Kick(killerid); } else if(IsPlayerInArea(killerid,1310.488, 664.8284, 1548.684, 827.2872)) { SendClientMessage(killerid, COLOR_GREY, " You have been kicked by Server, reason DM in SAFEZONE !"); Kick(killerid); } else if(IsPlayerInArea(killerid,1695.218, -1883.197, 1813.106, -1816.085)) { SendClientMessage(killerid, COLOR_GREY, " You have been kicked by Server, reason DM in SAFEZONE !"); Kick(killerid); } else if(IsPlayerInArea(killerid,1436.625, -1764.764, 1550.711, -1587.116)) { SendClientMessage(killerid, COLOR_GREY, " You have been kicked by Server, reason DM in SAFEZONE !"); Kick(killerid); } else if(IsPlayerInArea(killerid,679.8611, -1591.064, 820.566, -1421.311)) { SendClientMessage(killerid, COLOR_GREY, " You have been kicked by Server, reason DM in SAFEZONE !"); Kick(killerid); } else if(IsPlayerInArea(killerid,2505.372, 2223.659, 2642.041, 2440.271)) { SendClientMessage(killerid, COLOR_GREY, " You have been kicked by Server, reason DM in SAFEZONE !"); Kick(killerid); } else if(IsPlayerInArea(killerid,2611.702, -1144.969, 2828.463, -1054.171)) { SendClientMessage(killerid, COLOR_GREY, " You have been kicked by Server, reason DM in SAFEZONE !"); Kick(killerid); }
Thanks for help!