06.12.2010, 20:29
sei lб, tenta isto
pawn Код:
#include a_samp
new
DonoGZ1[50], // Seu slots ou MAX_PLAYERS
DonoGZ2[50], // Seu slots ou MAX_PLAYERS
GZ1,
GZ2
;
public
OnPlayerSpawn(playerid)
{
if(DonoGZ1[playerid] == 1) return GangZoneShowForPlayer(playerid, GZ1, 0x0000D391);
if(DonoGZ1[playerid] == 2) return GangZoneShowForPlayer(playerid, GZ1, 0x0000D3B9);
if(DonoGZ1[playerid] == 12) return GangZoneShowForPlayer(playerid, GZ1, 0x00FF00A8);
if(DonoGZ1[playerid] == 13) return GangZoneShowForPlayer(playerid, GZ1, 0x0000FFBB);
if(DonoGZ1[playerid] == 14) return GangZoneShowForPlayer(playerid, GZ1, 0x000000A4);
if(DonoGZ1[playerid] == 15) return GangZoneShowForPlayer(playerid, GZ1, 0xFFE700A9);
if(DonoGZ1[playerid] == 16) return GangZoneShowForPlayer(playerid, GZ1, 0x00000087);
if(DonoGZ1[playerid] == 17) return GangZoneShowForPlayer(playerid, GZ1, 0x8900FFA4); //gz2
if(DonoGZ2[playerid] == 0) return GangZoneShowForPlayer(playerid, GZ2, 0xC0C0C096);
if(DonoGZ2[playerid] == 1) return GangZoneShowForPlayer(playerid, GZ2, 0x0000D391);
if(DonoGZ2[playerid] == 2) return GangZoneShowForPlayer(playerid, GZ2, 0x0000D3B9);
if(DonoGZ2[playerid] == 12) return GangZoneShowForPlayer(playerid, GZ2, 0x00FF00A8);
if(DonoGZ2[playerid] == 13) return GangZoneShowForPlayer(playerid, GZ2, 0x0000FFBB);
if(DonoGZ2[playerid] == 14) return GangZoneShowForPlayer(playerid, GZ2, 0x000000A4);
if(DonoGZ2[playerid] == 15) return GangZoneShowForPlayer(playerid, GZ2, 0xFFE700A9);
if(DonoGZ2[playerid] == 16) return GangZoneShowForPlayer(playerid, GZ2, 0x00000087);
if(DonoGZ2[playerid] == 17) return GangZoneShowForPlayer(playerid, GZ2, 0x8900FFA4);
return true;// й mesma coisa que return 1;
}
public
OnGameModeInit()
{
GZ1 = GangZoneCreate(2731.853, 1241.17, 2880.237, 1392.025); //ok
GZ2 = GangZoneCreate(1337.822, 2564.049, 1486.206, 2672.355);//ok
return true;
}