10.01.2014, 14:47
FilterScript
PHP код:
/*############################################################################*/
/* */
/* Creado por Micaela_Dia */
/* */
/*################### - CONSERVA LOS CREDITOS - ##############################*/
// comandos: /mision - /infomision
#include <a_samp>
#include <zcmd>
new RutaAvion;
new Text3D:AVION_3D_INFO[MAX_VEHICLES],AVIONCARTEL;
new ObjetoAvion[MAX_VEHICLES], CartelTimer[MAX_PLAYERS];
forward FuncionesA(playerid);
forward F_AVION_CARTEL(playerid);
forward F_AVION_CARTEL2(playerid);
forward F_AVION_CARTEL3(playerid);
forward F_AVION_CARTEL4(playerid);
forward F_AVION_CARTEL5(playerid);
forward SetRaceCheckpoint(playerid,target,next);
public OnGameModeInit()
{
print("/////////// = ///////////////////////////// = /////////////////////////");
print("MMMM MMMM 44444 2222222 @@@@@@@@ ");
print("M:::M M:::M 4::::4 2::::::::2 @::::::::@ ");
print("M::::M M::::M 4::4::4 2:::2 2 2:::2 @::@@@@@@::@ ");
print("M::MM::M M::MM::M 4::4 4::4 2:::2 2:::2 @::@ @@ @::@");
print("M::M M::M M::M M::M 4::4 4::4 22222 2:::2 @::@ @ @::@");
print("M::M M::M M::M M::M 4::4 4::4 2:::2 @::@ @::@");
print("M::M M::M::M M::M 4::4 4::4 2:::2 @::@ @@@@@::@");
print("M::M M:::M M::M 4::4444444::44444 2:::2 @::@ @ @::@");
print("M::M M:M M::M 4::::::::::::::::4 2:::2 @::@ @ @::@");
print("M::M M M::M4444444444444444444 2:::2 @::@ @@@@@::@");
print("M::M M::M 4::4 2:::2222222222 @::@@@@@@@::@ ");
print("M::M M::M 4::4 2:::::::::::::2 @:::::::::@ ");
print("MMMM MMMM 4444 2222222222222222 @@@@@@@@@ ");
print("////////////// AVION PUBLICITARIO POR M42@ //////////////////////////");
AVIONCARTEL = AddStaticVehicleEx(593, 1914.4635, -2522.8806, 15.5145, 58.2378, 0, 1, 15);
AVION_3D_INFO[ AVIONCARTEL ] = Create3DTextLabel(" [!] USE {FF99FF}\n/mision",0xFFFFFFFF, 0.0, 0.0, 0.0, 60.0, 0, 1 );
Attach3DTextLabelToVehicle( AVION_3D_INFO[ AVIONCARTEL ] , AVIONCARTEL, 0.0, 0.0, 2.0);
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
F_AVION_CARTEL5(playerid);
DisablePlayerRaceCheckpoint(playerid);
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
AVION_3D_INFO[ AVIONCARTEL ] = Create3DTextLabel(" [!] USE {FF99FF}\n/mision",0xFFFFFFFF, 0.0, 0.0, 0.0, 60.0, 0, 1 );
Attach3DTextLabelToVehicle( AVION_3D_INFO[ AVIONCARTEL ] , AVIONCARTEL, 0.0, 0.0, 2.0);
return 1;
}
public SetRaceCheckpoint(playerid,target,next)
{
if(RutaAvion == 1)
{
SetPlayerRaceCheckpoint(playerid,3, 1695.85, -2493.36, 25.47, 1090.16, -2388.76, 55.68, 10);
}
else if(RutaAvion == 2)
{
SetPlayerRaceCheckpoint(playerid,3, 1090.16, -2388.76, 55.68, 959.30, -2168.90, 55.68, 10);
}
else if(RutaAvion == 3)
{
SetPlayerRaceCheckpoint(playerid,3, 959.30, -2168.90, 55.68, 892.61, -1873.03, 55.68, 10);
}
else if(RutaAvion == 4)
{
SetPlayerRaceCheckpoint(playerid,3, 892.61, -1873.03, 55.68, 365.09, -1942.27, 55.68, 10);
}
else if(RutaAvion == 5)
{
SetPlayerRaceCheckpoint(playerid,3, 365.09, -1942.27, 55.68, 151.80, -1964.90, 55.68, 10);
}
else if(RutaAvion == 6)
{
SetPlayerRaceCheckpoint(playerid,3, 151.80, -1964.90, 55.68, 93.18, -1573.96, 55.68, 10);
}
else if(RutaAvion == 7)
{
SetPlayerRaceCheckpoint(playerid,3, 93.18, -1573.96, 55.68, 307.43, -1146.09, 141.36, 10);
}
else if(RutaAvion == 8)
{
SetPlayerRaceCheckpoint(playerid,3, 307.43, -1146.09, 141.36, 662.44, -885.83, 113.69, 10);
}
else if(RutaAvion == 9)
{
SetPlayerRaceCheckpoint(playerid,3, 662.44, -885.83, 113.69, 986.27, -684.10, 181.35, 10);
}
else if(RutaAvion == 10)
{
SetPlayerRaceCheckpoint(playerid,3, 986.27, -684.10, 181.35, 1295.26, -869.74, 100.50, 9);
}
else if(RutaAvion == 11)
{
SetPlayerRaceCheckpoint(playerid,3, 1295.26, -869.74, 100.50, 1657.85, -994.75, 111.86, 10);
}
else if(RutaAvion == 12)
{
SetPlayerRaceCheckpoint(playerid,3, 1657.85, -994.75, 111.86, 2038.30, -1074.22, 73.54, 10);
}
else if(RutaAvion == 13)
{
SetPlayerRaceCheckpoint(playerid,3, 2038.30, -1074.22, 73.54, 2254.50, -1117.07, 87.69, 10);
}
else if(RutaAvion == 14)
{
SetPlayerRaceCheckpoint(playerid,3, 2254.50, -1117.07, 87.69, 2666.29, -1100.89, 124.67, 10);
}
else if(RutaAvion == 15)
{
SetPlayerRaceCheckpoint(playerid,3, 2666.29, -1100.89, 124.67, 2882.03, -647.17, 55.68, 10);
}
else if(RutaAvion == 16)
{
SetPlayerRaceCheckpoint(playerid,3, 2882.03, -647.17, 55.68, 2919.02, -1273.31, 55.68, 10);
}
else if(RutaAvion == 17)
{
SetPlayerRaceCheckpoint(playerid,3, 2919.02, -1273.31, 55.68, 2923.29, -1588.69, 55.68, 10);
}
else if(RutaAvion == 18)
{
SetPlayerRaceCheckpoint(playerid,3, 2923.29, -1588.69, 55.68, 2926.39, -1877.11, 55.68, 10);
}
else if(RutaAvion == 19)
{
SetPlayerRaceCheckpoint(playerid,3, 2926.39, -1877.11, 55.68, 2883.30, -2178.21, 55.68, 10);
}
else if(RutaAvion == 20)
{
SetPlayerRaceCheckpoint(playerid,3, 2883.30, -2178.21, 55.68, 2784.07, -2450.52, 69.41, 10);
}
else if(RutaAvion == 21)
{
SetPlayerRaceCheckpoint(playerid,3, 2784.07, -2450.52, 69.41, 2510.15, -2659.00, 75.95, 10);
}
else if(RutaAvion == 22)
{
SetPlayerRaceCheckpoint(playerid,3, 2510.15, -2659.00, 75.95, 2173.88, -2684.76, 78.06, 10);
}
else if(RutaAvion == 23)
{
SetPlayerRaceCheckpoint(playerid,3, 2173.88, -2684.76, 78.06, 1856.02, -2496.10, 12.53, 10);
}
else if(RutaAvion == 24)
{
SetPlayerRaceCheckpoint(playerid,4, 1856.02, -2496.10, 25.47, 0.0,0.0,0.0, 10);
}
}
public FuncionesA(playerid)
{
new message[288];
format(message, sizeof(message), "Dirigete al proximo Checkpoint", playerid);
new target, next;
if(RutaAvion == 1)
{
F_AVION_CARTEL(playerid);
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 2;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 2)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 3;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 3)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 4;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 4)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 5;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 5)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 6;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 6)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 7;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 7)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 8;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 8)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 9;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 9)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 10;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 10)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 11;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 11)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 12;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 12)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 13;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 13)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 14;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 14)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 15;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 15)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 16;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 16)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 17;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 17)
{
GameTextForPlayer(playerid,message, 3000, 3);
RutaAvion = 18;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 18)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 19;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 19)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 20;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 20)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 21;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 21)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 22;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 22)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 23;
SetRaceCheckpoint(playerid,target,next);
}
else if(RutaAvion == 23)
{
GameTextForPlayer(playerid, message, 3000, 3);
RutaAvion = 24;
SetRaceCheckpoint(playerid,target,next);
}
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
SetTimer("FuncionesA", 10, false);
if(RutaAvion == 24)
{
GameTextForPlayer(playerid, "has terminado la ruta con exito\nganas ~g~$5000", 3000, 3);
GivePlayerMoney(playerid, 5000);
DisablePlayerRaceCheckpoint(playerid);
F_AVION_CARTEL5(playerid);
RutaAvion = 0;
}
}
public F_AVION_CARTEL(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new Dodo = GetPlayerVehicleID(playerid);
ObjetoAvion[Dodo] = CreateObject(13188, 10.0, 10.0, 10.0, 0, 0, 0);
SetObjectMaterialText(ObjetoAvion[Dodo], "Diviertete\n\n{FF0000}Con Amigos", 0, 140, "Tahoma", 50, 1, 0xFFFFFFFF, 0x005200,OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
AttachObjectToVehicle(ObjetoAvion[Dodo], Dodo, 0.00, -13.0, 0.95, 0.00, 0.00, 0.00);
CartelTimer[playerid] = SetTimerEx("F_AVION_CARTEL2", 2000, false, "i", playerid);
return 1;
}
return 1;
}
public F_AVION_CARTEL2(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new Dodo = GetPlayerVehicleID(playerid);
DestroyObject(Dodo);
CartelTimer[playerid] = SetTimerEx("F_AVION_CARTEL3", 20, false, "i", playerid);
return 1;
}
return 1;
}
public F_AVION_CARTEL3(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new Dodo = GetPlayerVehicleID(playerid);
ObjetoAvion[Dodo] = CreateObject(13188, 10.0, 10.0, 10.0, 0, 0, 0);
SetObjectMaterialText(ObjetoAvion[Dodo], "Jugando\n\n{FF0000}< SA-MP >\n{FFFF00}* 127.1.1.1:7777 *", 0, 140, "Arial", 70, 1, 0xFFFFFFFF, 0x005200,OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
AttachObjectToVehicle(ObjetoAvion[Dodo], Dodo, 0.00, -13.0, 0.95, 0.00, 0.00, 0.00);
CartelTimer[playerid] = SetTimerEx("F_AVION_CARTEL4", 2000, false, "i", playerid);
return 1;
}
return 1;
}
public F_AVION_CARTEL4(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new Dodo = GetPlayerVehicleID(playerid);
DestroyObject(Dodo);
CartelTimer[playerid] = SetTimerEx("F_AVION_CARTEL", 20, false, "i", playerid);
return 1;
}
return 1;
}
public F_AVION_CARTEL5(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new Dodo = GetPlayerVehicleID(playerid);
DestroyObject(Dodo);
KillTimer(CartelTimer[playerid]);
RutaAvion = 0;
DisablePlayerRaceCheckpoint(playerid);
return 1;
}
return 1;
}
zcmd(infomision, playerid, params[])
{
ShowPlayerDialog(playerid,3451, DIALOG_STYLE_MSGBOX, "{FFFF00} INFORMACION DE MISION", "\t{3CFF00} Sube al Avion y Recorre LS Haciendo Publicidad", "aceptar", "");
return 1;
}
zcmd(mision, playerid, params[])
{
new target, next, vehicleid = GetPlayerVehicleID(playerid);
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF2C00FF, "no estas en un avion");
{
if(GetVehicleModel(vehicleid) == 593)
{
if(RutaAvion == 0)
{
RutaAvion = 1;
SendClientMessage(playerid, 0xFFFFFFAA, "Para Comenzar el Empleo ve al Primer {FF0000}Checkpoint");
SetRaceCheckpoint(playerid,target,next);
Delete3DTextLabel( AVION_3D_INFO[ AVIONCARTEL ] );
return 1;
}
else if(GetVehicleModel(vehicleid) == 593)
if(RutaAvion == 1)
{
RutaAvion = 0;
SendClientMessage(playerid, 0xFF2C00FF, "has cancelado el trabajo");
F_AVION_CARTEL5(playerid);
DisablePlayerRaceCheckpoint(playerid);
return 1;
}
}
return SendClientMessage(playerid, 0xFF2C00FF, "este no es el avion publicitario");
}
}
Errores (Solo Necesito La Solucion De Los 2 Errores, De Los loose indentation Ya Se Que Es.)
PHP код:
C:\Documents and Settings\Administrador\Escritorio\misiones.pwn(46) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Escritorio\misiones.pwn(47) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Escritorio\misiones.pwn(60) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Escritorio\misiones.pwn(61) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Escritorio\misiones.pwn(172) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Escritorio\misiones.pwn(314) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Escritorio\misiones.pwn(318) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Escritorio\misiones.pwn(319) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Escritorio\misiones.pwn(320) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Escritorio\misiones.pwn(392) : error 025: function heading differs from prototype
C:\Documents and Settings\Administrador\Escritorio\misiones.pwn(392 -- 399) : error 021: symbol already defined: "zcmd"
C:\Documents and Settings\Administrador\Escritorio\misiones.pwn(398) : warning 203: symbol is never used: "zcmd"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Lineas De Los Errores
PHP код:
zcmd(infomision, playerid, params[])
{
ShowPlayerDialog(playerid,3451, DIALOG_STYLE_MSGBOX, "{FFFF00} INFORMACION DE MISION", "\t{3CFF00} Sube al Avion y Recorre LS Haciendo Publicidad", "aceptar", "");
return 1;
}
zcmd(mision, playerid, params[])
{
new target, next, vehicleid = GetPlayerVehicleID(playerid);
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF2C00FF, "no estas en un avion");
{
if(GetVehicleModel(vehicleid) == 593)
{
if(RutaAvion == 0)
{
RutaAvion = 1;
SendClientMessage(playerid, 0xFFFFFFAA, "Para Comenzar el Empleo ve al Primer {FF0000}Checkpoint");
SetRaceCheckpoint(playerid,target,next);
Delete3DTextLabel( AVION_3D_INFO[ AVIONCARTEL ] );
return 1;
}
else if(GetVehicleModel(vehicleid) == 593)
if(RutaAvion == 1)
{
RutaAvion = 0;
SendClientMessage(playerid, 0xFF2C00FF, "has cancelado el trabajo");
F_AVION_CARTEL5(playerid);
DisablePlayerRaceCheckpoint(playerid);
return 1;
}
}
return SendClientMessage(playerid, 0xFF2C00FF, "este no es el avion publicitario");
}
}
Ayuda, Gracias De Ante Mano.