[ajuda]Bomba
#2

opa...:


pawn Код:
new bombas[MAX_PLAYERS];
new Float:PosBombaX, Float:PosBombaY, Float:PosBombaZ;

if(strcmp(cmd, "/comprarbomba", true)==0)
       {
    if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15 || PlayerInfo[playerid][pLider] == 27 || PlayerInfo[playerid][pMembro] == 27)
    {
     if(bombas[playerid] == 0)
     {
     new pName[MAX_PLAYER_NAME];
     GetPlayerName(playerid, pName, sizeof(pName));
     format(string, sizeof(string), " %s Compro uma bomba e o Detonador.", pName);
     ProxDetector(30.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
 SendClientMessage(playerid, COLOR_GREEN, "USE:/plantarbomba e /detonarbomba.");
     bombas[playerid] = 1;
     } else { SendClientMessage(playerid, COLOR_WHITE, "Vocк jб tem uma bomba!"); }
    } else { SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й de uma gang!"); }
   return 1;
   }

if(strcmp(cmd, "/plantarbomba", true)==0)
     {
    if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15 || PlayerInfo[playerid][pLider] == 27 || PlayerInfo[playerid][pMembro] == 27)
    {
     if(bombas[playerid] == 1)
     {
     new pName[MAX_PLAYER_NAME];
     GetPlayerName(playerid, pName, sizeof(pName));
     format(string, sizeof(string), " %s Detonor a Bomba.", pName);
     ProxDetector(30.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
     bombas[playerid] = 2;
     GetPlayerPos(playerid,PosBombaX,PosBombaY,PosBombaZ);
     } else { SendClientMessage(playerid, COLOR_WHITE, "Vocк Nгo tem uma bomba!"); }
    } else { SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й de uma gang!"); }
   return 1;
   }
if(strcmp(cmd, "/detonarbomba", true)==0)
     {
    if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15 || PlayerInfo[playerid][pLider] == 27 || PlayerInfo[playerid][pMembro] == 27)
    {
     if(bombas[playerid] == 2)
     {
     new pName[MAX_PLAYER_NAME];
     GetPlayerName(playerid, pName, sizeof(pName));
     format(string, sizeof(string), " %s Detonou a Bomba.", pName);
     ProxDetector(30.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
     CreateExplosion(PosBombaX,PosBombaY,PosBombaZ,7,30.0);
     F_DestroyObject(Banco);
     bombas[playerid] = 0;
     } else { SendClientMessage(playerid, COLOR_WHITE, "Vocк Nгo tem uma bomba!"); }
    } else { SendClientMessage(playerid, COLOR_WHITE, "Vocк nгo й de uma gang!"); }
   return 1;
   }


Tenta..

PS: Sу vim resolver aqui pk ele me pediu no MSN
Reply


Messages In This Thread
[ajuda]Bomba - by brunogysin - 22.06.2010, 20:12
Re: [ajuda]Bomba - by andmeida10 - 23.06.2010, 18:52

Forum Jump:


Users browsing this thread: 2 Guest(s)