23.12.2010, 17:15
(
Последний раз редактировалось Xapita_Halls; 24.12.2010 в 11:52.
)
tipo galeto o cara loga no sv e depois a gz desparece ajudem ai pf
codes
cmd:
guerra:
att
codes
pawn Код:
public OnPlayerConnect(playerid)
{
GangZoneShowForPlayer(playerid,GZPark,-66);
pawn Код:
public OnPlayerSpawn(playerid)
{
GangZoneShowForPlayer(playerid, GZPark, -66);
pawn Код:
if(strcmp(cmdtext, "/dominar", true) == 0 || strcmp(cmdtext, "/do", true) == 0)
{
if(PlayerInfo[playerid][pMembro] == 19 || PlayerInfo[playerid][pLider] == 19)//vagos
{
if(IsPlayerInPark(playerid))
{
if(Dominando[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб dominando um territorio.");
return 1;
}
if(GuerranoPark == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma guerra nesse territorio.");
return 1;
}
new string [256];
format(string, sizeof(string), " Los Vagos estгo dominando o Park Gleen!");
SendClientMessageToAll(TEAM_VAGOS_COLOR, string);
SendClientMessage(playerid, COLOR_GRAD3, "Fique esperto, todas as mafias e o Policia Federal foram avisados!");
SendClientMessage(playerid, COLOR_GRAD5, "Espere 1 minuto para dominar estб area .");
GangZoneFlashForAll(GZPark,TEAM_VAGOS_COLOR);
Dominando[playerid] = 1;
ProvocoPark[playerid] = 1;
GuerranoPark = 1;
TempoGuerraPark = SetTimerEx("GuerraPark", 60000, 0, "i", playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD3, "Vocк nгo estб em nenhum territуrio!");
}
return 1;
}
return 1;
}
pawn Код:
public GuerraPark(playerid)
{
new string[256];
new playername[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][pMembro] == 19 || PlayerInfo[playerid][pLider] == 19)//VAGOS
{
if(ProvocoPark[playerid] == 1)
{
if(IsPlayerInPark(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e os Los Vagos Dominaram o Park Gleen!",playername);
SendClientMessageToAll(TEAM_VAGOS_COLOR, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou o morro, a cada 3 minutos nele ganhara grana.");
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark,TEAM_VAGOS_COLOR);
Dominando[playerid] = 0;
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 1;
KillTimer(TempoGuerraPark);
return 1;
}
else
{
SendClientMessage(playerid, TEAM_GROVE_COLOR, "Vocк nгo estб no morro.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZPark);
GangZoneShowForAll(GZPark, 0xFFFFFF96);
ProvocoPark[playerid] = 0;
GuerranoPark = 0;
donopark = 0;
KillTimer(TempoGuerraPark);
return 1;
}
}
return 1;
}
return 1;
}