15.09.2012, 08:00
Romel i get error if i put else if in the checkarea ummmmmmm still getting nothing
Код:
stock IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); if(minx < x < maxx && miny < y < maxy) return true; return false; } forward CheckArea(playerid); public CheckArea(playerid) { if(IsPlayerInArea(playerid,2424,-1758,2640,-1620)) { SendClientMessage(playerid,COLOR_GREEN,"Your on Property of GS Watch Your back"); } else if(!IsPlayerInArea(playerid,2424,-1758,2640,-1620)) { SendClientMessage(playerid,COLOR_GREEN,"Your on Property of GS Watch Your back"); } return 1; }