01.10.2018, 01:57
(
Last edited by Undef1ned; 01/10/2018 at 04:25 PM.
)
Primeiro, por que usar "stock"?
PHP Code:
IsPlayerInRC(playerid)
{
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
if(pos[0] >= 1435.4246 && pos[1] >= -1720.3379 && pos[0] <= 1522.1321 && pos[1] <= -1600.3434) return 1; // Prefeitura
else if(pos[0] >= 1290.7766 && pos[1] >= -1720.0077 && pos[0] <= 1034.1986 && pos[1] <= -1842.6490) return 1; // Spawn Civil
else if(pos[0] >= 1249.3438 && pos[1] >= -1288.7474 && pos[0] <= 1069.0786 && pos[1] <= -1387.2887) return 1; // Hospital
else return 0;
}