28.10.2012, 00:13
Fui colocar um sistema de fuga da dp ai o pawno nao copilo, oq tem de errado?
Код:
//News new PortaoFugaDPPM; new tempoexplodir = 60; //Forwards forward Contar(playerid); forward PortaoFugaDPPMAndando(); //Portгo PortaoFugaDPPM = CreateObject(971,268.5397,86.3886,1001.0391,0.0000,0.0000,74.0000); //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 == 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; return true; } format(contar, sizeof(contar), "~w~%d", tempoexplodir); GameTextForPlayer(playerid, contar, 1000, 3); } SetTimer("Contar", 10000, false); tempoexplodir--; } return true; } //Public do portгo public PortaoFugaDPPMAndando() { MoveObject(PortaoFugaDPPMAndando,1359.40002441,-1722.09997559,15.50000000, 2); return true; }