SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 22/09/2019, 03:46 AM   #1
smith
Big Clucker
 
smith's Avatar
 
Join Date: Aug 2019
Location: São Paulo
Posts: 87
Reputation: 1
Default KillTimer

Galera to faazendo um sistema de explosao de cofre porem nao to consseguindo fazer um killtimer tentei dessa forma
pawn Code:
forward Explodirp();
public Explodirp()
{
 
 CreateExplosion(824.400390625, 10, 1004.299987793, 12, 10.0);
 SetTimerEx("RECONSTROI", minutos(20), false, "i");
 DestroyObject(Objetos[2]);
 KillTimer(cfb[playerid]);
}
MAIS nao conssegui da erro preciso da kill no settimer Explodirp
pawn Code:
CMD:explodircofre(pid, params[]){
if(Explodiu == 1)return msg(pid, -1, "O cofre foi detonado a poco tempo espere 20m e tente denovo");
Explodiu = 1;
ApplyAnimation (playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
cfb[playerid] = SetTimer("Explodirp", segundos(30), true);
new str[128], No[MAX_PLAYER_NAME];
GetPlayerName(playerid, No, sizeof(No));
format(str, sizeof(str), "O Assaltante %s Esta tentando", No);
SendClientMessageToAll(Azul, str);
format(str, sizeof(str), "Explodir o cofre do banco Apoio policial!!", No);
SendClientMessageToAll(Azul, str);
return 1;
}
ea animaçao tbm nao execulta nao faiz nada
__________________
Não vivo para agradar ninguém, pois quando for fazer as minhas escolhas terei de as enfrentar sozinho.
smith is offline   Reply With Quote
Old 22/09/2019, 05:10 AM   #2
oRaphael
Big Clucker
 
oRaphael's Avatar
 
Join Date: Jul 2019
Location: Goiânia, Goias.
Posts: 181
Reputation: 2
Default Re: KillTimer

Tira esse playerid do Settimer e tira também do Killtimer.
__________________
Fundador, Hyze RPG.
oRaphael is offline   Reply With Quote
Old 22/09/2019, 06:13 AM   #3
l3eksz
Big Clucker
 
l3eksz's Avatar
 
Join Date: Nov 2018
Location: Behind you
Posts: 165
Reputation: 2
Default Re: KillTimer

Questao das anims

No onPlayerSpawn
pawn Code:
PreloadAnimLib(playerid,"BOMBER");
    PreloadAnimLib(playerid,"RAPPING");
    PreloadAnimLib(playerid,"SHOP");
    PreloadAnimLib(playerid,"BEACH");
    PreloadAnimLib(playerid,"SMOKING");
    PreloadAnimLib(playerid,"FOOD");
    PreloadAnimLib(playerid,"ON_LOOKERS");
    PreloadAnimLib(playerid,"DEALER");
    PreloadAnimLib(playerid,"CRACK");
    PreloadAnimLib(playerid,"CARRY");
    PreloadAnimLib(playerid,"COP_AMBIENT");
    PreloadAnimLib(playerid,"PARK");
    PreloadAnimLib(playerid,"INT_HOUSE");
    PreloadAnimLib(playerid,"FOOD");
    PreloadAnimLib(playerid,"ROB_BANK");
    PreloadAnimLib(playerid,"ON_LOOKERS");
    PreloadAnimLib(playerid,"GANGS");

Final do GM:
pawn Code:
stock PreloadAnimLib(playerid,animlib[])
{
    ApplyAnimation(playerid,animlib,"null",0,0,0,0,0,1);
    return 1;
}

E faz o que o amigao ai de cima falou, tira o playerid do timer.


PHP Code:
CMD:explodircofre(pidparams[])
{
    new 
str[128], No[MAX_PLAYER_NAME];
    if(
Explodiu == 1) return msg(pid, -1"O cofre foi detonado a poco tempo espere 20m e tente denovo");
    
Explodiu 1;
    
ApplyAnimation(playerid"BOMBER""BOM_Plant"4.000000);
    
cfb SetTimer("Explodirp"segundos(30), true);
    
GetPlayerName(playeridNosizeof(No));
    
format(strsizeof(str), "O Assaltante %s Esta tentando"No);
    
SendClientMessageToAll(Azulstr);
    
format(strsizeof(str), "Explodir o cofre do banco Apoio policial!!"No);
    
SendClientMessageToAll(Azulstr);
    return 
1;

__________________
--------- 𝑄𝑢𝑒 𝑎 𝑡𝑒𝑚𝑝𝑒𝑠𝑡𝑎𝑑𝑒 𝑛𝑜𝑠 𝑔𝑢𝑖𝑒 𝑒𝑚 𝑚𝑒𝑢 𝑑𝑒𝑠𝑝𝑒𝑟𝑡𝑎𝑟 ---------
l3eksz is offline   Reply With Quote
Old 22/09/2019, 01:49 PM   #4
smith
Big Clucker
 
smith's Avatar
 
Join Date: Aug 2019
Location: São Paulo
Posts: 87
Reputation: 1
Default Re: KillTimer

vlw +rep ns 2
__________________
Não vivo para agradar ninguém, pois quando for fazer as minhas escolhas terei de as enfrentar sozinho.
smith is offline   Reply With Quote
Old 22/09/2019, 08:34 PM   #5
l3eksz
Big Clucker
 
l3eksz's Avatar
 
Join Date: Nov 2018
Location: Behind you
Posts: 165
Reputation: 2
Default Re: KillTimer

Quote:
Originally Posted by smith View Post
vlw +rep ns 2
De nada
__________________
--------- 𝑄𝑢𝑒 𝑎 𝑡𝑒𝑚𝑝𝑒𝑠𝑡𝑎𝑑𝑒 𝑛𝑜𝑠 𝑔𝑢𝑖𝑒 𝑒𝑚 𝑚𝑒𝑢 𝑑𝑒𝑠𝑝𝑒𝑟𝑡𝑎𝑟 ---------
l3eksz is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] KillTimer JoshNudock Português/Portuguese 8 03/03/2015 07:54 PM
KillTimer Banditukas Scripting Help 0 15/01/2015 07:53 PM
How To KillTimer RandomDude Scripting Help 5 30/07/2013 06:50 PM
[Ajuda] KillTimer hbzi Português/Portuguese 6 27/10/2012 08:44 AM
[HELP] KillTimer admantis Help Archive 9 09/12/2010 01:21 AM


All times are GMT. The time now is 02:25 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.