04.09.2018, 13:48
PHP код:
if(IsPlayerInLS(playerid)) {
SetPlayerWeather(playerid, climasValidos[Random]);
SendClientMessageToAll(-1, "| INFO | Mudanзa de Tempo Prevista Para Los Santos!");
}
PHP код:
stock IsPlayerInLS(playerid) {
new Float:xls,Float:yls,Float:zls;
GetPlayerPos(playerid,xls,yls,zls);
if(xls > 0 && yls < 0) return 1;
return 0;
}
stock IsPlayerInSF(playerid) {
new Float:xls,Float:yls,Float:zls;
GetPlayerPos(playerid,xls,yls,zls);
if(xls < 0) return 1;
return 0;
}
stock IsPlayerInLV(playerid) {
new Float:xls,Float:yls,Float:zls;
GetPlayerPos(playerid,xls,yls,zls);
if(xls > 0 && yls > 0) return 1;
return 0;
}