[Ajuda] /bomba sem timer.
#3

Ja que й GodFather tenta

pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
    if(strcmp(cmdtext,"/bomba",true)==0) {
        new dinid,Float:x,Float:y,Float:z;
        if(BombTime[playerid] == 1) {
            SendClientMessage(playerid,COLOR_GREY," Vocк precisa esperar 4 minutos para usar esse comando denovo !");
            return 1;
        }
        if(PlayerInfo[playerid][pMember] == 8) {
            GetPlayerPos(playerid,x,y,z);
            ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
            GivePlayerGP(playerid, 0);
            dinid = CreateDynamicObject(1654,x+1,y,z-0.8,0,0,0);
            SendClientMessage(playerid,COLOR_YELLOW,"[Believe RP] Vocк armou a bomba: Use o botгo de atirar para detona-la");
            BombTime[playerid] = 1;
            SetTimerEx("BombTimer", 240000, false, "i", playerid);
            WantedPoints[playerid]+=1;
            SetPlayerCriminal(playerid,255,"Atentado terrorista");
        }
        else return SendClientMessage(playerid, COLOR_GREY,"Vocк nгo й membro dos Hitmans.");
        return 1;
    }
    return 0;
}


public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == KEY_FIRE) {
        new Float:X,Float:Y,Float:Z,tipo,Float:diam;
        CreateExplosion(X,Y,Z,tipo,diam);
        CreateExplosion(X+2,Y+2,Z+2,tipo,diam);
        CreateExplosion(X+3,Y+3,Z+3,tipo,diam);
        DestroyDynamicObject(dinid );
    }

    return 1;
}
Reply


Messages In This Thread
[Ajuda] /bomba sem timer. - by Felipe_Wesker - 07.05.2011, 19:44
Re: [Ajuda] /bomba sem timer. - by Prates_Style - 07.05.2011, 19:51
Re: [Ajuda] /bomba sem timer. - by zbt_Daimyo - 07.05.2011, 20:11
Re: [Ajuda] /bomba sem timer. - by JonathanFeitosa - 07.05.2011, 20:20
Re: [Ajuda] /bomba sem timer. - by Felipe_Wesker - 07.05.2011, 20:38
Re: [Ajuda] /bomba sem timer. - by JonathanFeitosa - 07.05.2011, 20:40
Re: [Ajuda] /bomba sem timer. - by Felipe_Wesker - 07.05.2011, 20:42
Re: [Ajuda] /bomba sem timer. - by JonathanFeitosa - 07.05.2011, 20:45
Re: [Ajuda] /bomba sem timer. - by Shadoww5 - 07.05.2011, 20:49
Re: [Ajuda] /bomba sem timer. - by Felipe_Wesker - 07.05.2011, 21:37

Forum Jump:


Users browsing this thread: 1 Guest(s)