28.10.2012, 23:20
pawn Код:
//Topo do GM
new TTExplodir;
forward ContTempPExplodir(playerid);
//Comando de fugir
if(strcmp(cmd, "/fuga", true) == 0)
{
new contar[10];
if(PlayerInfo[playerid][pMembro] == 5 || PlayerInfo[playerid][pLider] == 5 || PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10 || PlayerInfo[playerid][pMembro] == 12 || PlayerInfo[playerid][pLider] == 12 || PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13
|| PlayerInfo[playerid][pMembro] == 14 || PlayerInfo[playerid][pLider] == 14 || PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15 || PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17 || PlayerInfo[playerid][pMembro] == 18 || PlayerInfo[playerid][pLider] == 18 || PlayerInfo[playerid][pMembro] == 19 || PlayerInfo[playerid][pLider] == 19
|| PlayerInfo[playerid][pMembro] == 20 || PlayerInfo[playerid][pLider] == 20 || PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21 || PlayerInfo[playerid][pMembro] == 22 || PlayerInfo[playerid][pLider] == 22 || PlayerInfo[playerid][pMembro] == 23 || PlayerInfo[playerid][pLider] == 23 || PlayerInfo[playerid][pMembro] == 24 || PlayerInfo[playerid][pLider] == 24) return SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й membro de uma Org particular, Gang ou Mбfia!");
if (PlayerToPoint(20.0, playerid, 268.5397,86.3886,1001.0391))
{
if(tempoexplodir == 60)
{
SetTimer("Contar", 10000, false);
TTExplodir = SetTimer("ContTempPExplodir, 1000, true);
format(contar, sizeof(contar), "~w~%d", tempoexplodir);
GameTextForPlayer(playerid, contar, 1000, 3);
return 1;
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "Vocк jб implantou uma bomba, aguarde...");
format(contar, sizeof(contar), "~w~TEMPO RESTANTE~r~%d", tempoexplodir);
GameTextForPlayer(playerid, contar, 1000, 3);
return 1;
}
}
return true;
}
public ContTempPExplodir(playerid);
{
tempoexplodir--;
if(tempoexplodir == 0)
{
CreateExplosion(268.5397,86.3886,1001.0391,12, 10.0);
GameTextForPlayer(playerid, "Vocк soltou os presos", 5000, 3);
MoveObject( PortaoPmec, 268.5721,93.7202,1001.0391,3);
SetTimer("PortaoFugaDPPMAndando", 10000, false);
tempoexplodir = 60;
KillTimer(TTExplodir);
return 1;
}
return 1;
}
Espero ter sido ъtil.