20.09.2011, 18:57
pawn Код:
OnPlayerSpawn
GangZoneShowForPlayer(playerid,GZRocinha, 0xC0C0C0AA);
ShowPlayerStats
PlayerInfo[playerid][PAbriu] = 1;
On Game Mode Init
GZRocinha = GangZoneCreate(2299.869, -872.5749, 2478.603, -785.7246);
OnPlayerCommandText
if(PlayerInfo[playerid][PAbriu] <= 1)
PlayerInfo[playerid][PAbriu] = 0;
stock IsPlayerInRocinha(playerid)//gangzones
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(x >= 2117.333 && y >= -872,5749 && x <= 2478,603 && y <= -785,7246)
{
return 1;
}
return 0;
}
GuerranaRocinha = 1;