[FilterScript] Atentado Torres Gйmeas
#7

Quote:
Originally Posted by 4LiSs0N
Посмотреть сообщение
Humildadeforever nao fui eu que fiz aquilo so copiei oque estava no pastebin que o mostrinhoverde fez Rsrs.
Olha o Codigo Dele.

pawn Код:
//Criado por Monstrinho Verde
//Copyright - All rights reserved '-'
//Este FS tem por iniciativa criar um local de atentados para os terroristas, pois os novatos
//gostam de atentar os locais mais visitados (Prefeitura e DP) e este FS lhes farб atentar as torres
//Caso encontre algum bug, resolva-o vocк, pois eu sou novato '-'
 
#include <a_samp>
 
#pragma tabsize 0
 
#define cor_vermelha 0xFF0000
 
new torre1;
new torre2;
 
CreateObject(4585,1436.09997559,1369.40002441,99.80000305,0.00000000,0.00000000,0.00000000);
CreateObject(4585,1436.59997559,1369.50000000,275.39999390,0.00000000,0.00000000,90.00000000);
CreateObject(4585,1432.80004883,1510.00000000,99.80000305,0.00000000,0.00000000,358.00000000);
CreateObject(4585,1436.30004883,1509.19995117,275.60000610,0.00000000,0.00000000,357.99499512);
CreateObject(13728,1438.00000000,1508.90002441,390.39999390,0.00000000,0.00000000,0.00000000);
CreateObject(3785,1438.40002441,1508.90002441,411.20001221,0.00000000,0.00000000,0.00000000);
CreateObject(3785,1438.00000000,1509.19995117,411.10000610,0.00000000,0.00000000,0.00000000);
CreateObject(3785,1438.00000000,1508.59997559,411.10000610,0.00000000,0.00000000,0.00000000);
CreateObject(3785,1437.80004883,1508.80004883,411.10000610,0.00000000,0.00000000,0.00000000);
 
 
public OnFilterScriptInit()
{
torre1 = CreateObject(4585,1436.59997559,1369.50000000,275.39999390,0.00000000,0.00000000,90.00000000);
MoveObject(torre1,1436.09997559,1369.40002441,99.80000305,3.0);
torre2 = CreateObject(4585,1436.30004883,1509.19995117,275.60000610,0.00000000,0.00000000,357.99499512);
MoveObject(torre2,1436.30004883,1509.19995117,275.60000610,3.0);
return 0;
}
public OnPlayerCommandText(playerid,cmdtext[])
{
if(strcmp(cmdtext,"/atentartorre1",true)==0) {
MoveObject(torre1,1436.09997559,1369.40002441,99.80000305,3.0);
SendClientMessageToAll("%s atentou a primeira torre gйmea")
return 1;
}
if (strcmp(cmdtext,"atentartorre2",true)==0 {
MoveObject(torre2,1432.80004883,1510.00000000,99.80000305,3.0);
SendClientMessageToAll("%s atentou a segunda torre gйmea")
return 1;
}
if(strcmp(cmdtext,"/desatentartorre1",true)==0) {
MoveObject(torre1,1436.09997559,1369.40002441,99.80000305,3.0);
SendClientMessageToAll("O atentado а primeira torre gйmea acabou")
return 1;
}
if (strcmp(cmdtext,"desatentartorre2",true)==0) {
MoveObject (torre2,1436.30004883,1509.19995117,275.60000610,3.0);
SendClientMessageToAll("O atentado а segunda torre gйmea acabou")
return 0;
}
Atб, foi mal, й que nгo vi bem o code, sу vi a imagem, o que tem e o que falta por, nгo olhei bem o code, '-'
Sу vi que tб meio "desindentado" kkk' =D
De qualquer forma, tб corrigido

@Edit: Olhei melhor o code, e vi que tem algumas coisas erradas. Os CreateObject estгo fora da public, vocк colocou pra mover objetos na public OnFilterScriptInit. E nгo fechou a public OnPlayerCommandText. Tentou compilar o FS? Porque provavelmente vai dar erros...
Se der tempo, eu arrumo ele
Reply


Messages In This Thread
Atentado Torres Gйmeas - by MonstrinhoVerde - 21.02.2012, 07:54
Re: Atentado Torres Gйmeas - by 4LiSs0N - 21.02.2012, 11:09
Re: Atentado Torres Gйmeas - by humildadeforever - 21.02.2012, 11:54
Re: Atentado Torres Gйmeas - by Lipe_Stronda - 21.02.2012, 12:02
Re: Atentado Torres Gйmeas - by 4LiSs0N - 21.02.2012, 12:07
Re: Atentado Torres Gйmeas - by MonstrinhoVerde - 21.02.2012, 12:11
Re: Atentado Torres Gйmeas - by humildadeforever - 21.02.2012, 12:15
Re: Atentado Torres Gйmeas - by 4LiSs0N - 21.02.2012, 12:18
Re: Atentado Torres Gйmeas - by andmeida10 - 21.02.2012, 12:27
Re: Atentado Torres Gйmeas - by Bosma_cmd - 22.02.2012, 20:01

Forum Jump:


Users browsing this thread: 1 Guest(s)