[Ajuda] /bomba sem timer.
#4

Exemplo Simples :

pawn Код:
new JFS[MAX_PLAYERS];
new JFS1;
if(!strcmp(cmd,"/bomba",true))
{
    if(PlayerInfo[playerid][pMember] == 8)
    {
           ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // anim
           JFS1 = CreateDynamicObject(1654,x+1,y,z-0.8,0,0,0); // a Bomba Irб Criar ( OBJETO )
           SendClientMessage(playerid,COLOR_YELLOW,"Vocк armou a bomba: Use o botгo de atirar para detona-la");
    }
    return true;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == KEY_FIRE)
    {
        new Float:X,Float:Y,Float:Z,tipo,Float:JFS2;
        CreateExplosion(X,Y,Z,10,JFS2);
        CreateExplosion(X+2,Y+2,Z+2,10, JFS2);
        CreateExplosion(X+3,Y+3,Z+3,10, JFS2);
        DestroyDynamicObject(JFS1);
        SendClientMessage(playerid,COLOR_YELLOW," DETONADA !");
    }
    return true;
}
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: 2 Guest(s)