pawno.foroactivo.com.es


 
ÍndiceÍndice  CalendarioCalendario  FAQFAQ  BuscarBuscar  MiembrosMiembros  Grupos de UsuariosGrupos de Usuarios  RegistrarseRegistrarse  ConectarseConectarse  

Comparte | 
 

 Peajes LS......

Ver el tema anterior Ver el tema siguiente Ir abajo 
AutorMensaje
Admin
Admin
avatar

Mensajes : 88
Fecha de inscripción : 29/05/2010

MensajeTema: Peajes LS......   Dom Mayo 30, 2010 6:11 am

• Informacion
Peajes ubicados a las afuera de LS para ir a las ciudades de SF y LV.
Con comando /peaje abres el peaje mas cercano y se te descontara $50 por usarlo.
Una vez abierto tendras 7 segundos para pasar antes de que se vuelva a sellar.

Link Alternativo: http://www.vimeo.com/9053687

• Descarga


megaupload.com XQBBIG8Q



// www.pawnoscripting.com

// By GROVE4L
// www.pawnoscripting.com

#include <a_samp>

#define COLOR_ROJO 0xFF0000FF
#define COLOR_VERDE 0x00A200FF
#define COLOR_AZUL 0x0000DAFF
#define COLOR_BLANCO 0xFFFFFFFF

forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
forward CReja1(playerid);
forward CReja2(playerid);
forward CReja3(playerid);
forward CReja4(playerid);
forward CReja5(playerid);
forward CReja6(playerid);
forward CReja7(playerid);
forward CReja8(playerid);
forward CReja9(playerid);
forward CReja10(playerid);

enum Info
{
Peaje0,
Peaje1,
Peaje2,
Peaje3,
Peaje4,
Peaje5,
Peaje6,
Peaje7,
Peaje8,
Peaje9,
Peaje10,
};

new Informacion[MAX_PLAYERS][Info];
new Reja1;
new Reja2;
new Reja3;
new Reja4;
new Reja5;
new Reja6;
new Reja7;
new Reja8;
new Reja9;
new Reja10;

public OnGameModeInit()
{
CreateObject(9623,58.972,-1532.372,7.014,0.0,0.0,82.188);
CreateObject(9623,628.719,-1178.690,21.152,6.016,0.0,29.375);
CreateObject(9623,600.746,-1192.842,21.595,8.594,0.0,30.235);
CreateObject(9623,1646.083,-28.619,38.458,2.578,0.0,19.844);
CreateObject(9623,1860.036,-119.549,37.416,-3.438,0.0,-17.343);
CreateObject(9623,2742.880,-151.806,34.309,-1.719,0.0,162.657);
CreateObject(9623,2761.710,-157.637,34.308,-1.719,0.0,162.657);
CreateObject(991,2746.688,-155.805,32.759,0.0,0.0,161.874);
CreateObject(991,2729.266,-152.844,32.746,0.0,0.0,195.624);
CreateObject(991,2770.743,-167.227,33.586,0.0,0.0,116.874);
CreateObject(991,1635.871,-36.137,36.834,0.0,0.0,195.624);
CreateObject(991,618.668,-1186.755,19.730,0.0,0.0,195.624);
CreateObject(991,612.487,-1187.470,20.032,0.0,0.0,195.624);
CreateObject(991,598.155,-1196.471,19.840,0.0,0.0,195.624);
CreateObject(991,632.585,-1178.998,19.659,0.0,0.0,195.624);
CreateObject(991,2766.999,-157.259,32.810,0.0,0.0,161.874);
CreateObject(1237,61.295,-1544.186,4.117,0.0,0.0,0.0);
CreateObject(1237,62.825,-1521.768,4.089,0.0,0.0,0.0);
CreateObject(1237,67.590,-1534.000,5.080,0.0,0.0,0.0);
Reja1 = CreateObject(985,55.229,-1527.596,5.017,0.0,0.0,-101.250);
Reja2 = CreateObject(985,62.134,-1537.814,4.737,0.0,0.0,-276.093);
Reja3 = CreateObject(985,606.733,-1194.388,19.399,0.0,0.0,210.312);
Reja4 = CreateObject(985,622.718,-1178.001,19.229,0.0,0.0,210.312);
Reja5 = CreateObject(985,1648.777,-23.946,36.780,0.0,0.0,199.062);
Reja6 = CreateObject(985,1642.422,-33.879,36.394,0.0,0.0,19.062);
Reja7 = CreateObject(986,2758.654,-153.130,32.725,0.0,0.0,-198.203);
Reja8 = CreateObject(986,2738.180,-153.357,32.333,0.0,0.0,-378.203);
Reja9 = CreateObject(986,1864.671,-118.054,35.177,0.0,0.0,-198.203);
Reja10 = CreateObject(986,1854.728,-121.681,35.680,0.0,0.0,-378.203);
return 1;
}

public OnPlayerConnect(playerid)
{
Informacion[playerid][Peaje0] = 0;
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{

if (strcmp("/LS", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 55.229,-1527.596,5.017);
return 1;

}

if (strcmp("/peaje", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) >= 50)
{
if(Informacion[playerid][Peaje0] == 0)
{
if(PlayerToPoint(5.0,playerid,55.229,-1527.596,5.017))
{
if(Informacion[playerid][Peaje1] == 1)
{
SendClientMessage(playerid, COLOR_ROJO, "Espera a que se cierre la puerta!");
return 1;
}
SendClientMessage(playerid, COLOR_BLANCO, "La puerta se cerrara en 7 segundos!");
SendClientMessage(playerid, COLOR_BLANCO, "Pagaste el peaje por $50");
MoveObject(Reja1,55.238,-1527.589,-1.784,3.0);
SetTimer("CReja1",7000,0);
GivePlayerMoney(playerid,-50);
Informacion[playerid][Peaje1] = 1;
return 1;
}

else if(PlayerToPoint(5.0,playerid,62.134,-1537.814,4.737))
{
if(Informacion[playerid][Peaje2] == 1)
{
SendClientMessage(playerid, COLOR_ROJO, "Espera a que se cierre la puerta!");
return 1;
}
SendClientMessage(playerid, COLOR_BLANCO, "La puerta se cerrara en 7 segundos!");
SendClientMessage(playerid, COLOR_BLANCO, "Pagaste el peaje por $50");
MoveObject(Reja2,62.159,-1537.811,-1.731,3.0);
SetTimer("CReja2",7000,0);
GivePlayerMoney(playerid,-50);
Informacion[playerid][Peaje2] = 1;
return 1;
}
else if(PlayerToPoint(5.0,playerid,606.733,-1194.388,19.399))
{
if(Informacion[playerid][Peaje3] == 1)
{
SendClientMessage(playerid, COLOR_ROJO, "Espera a que se cierre la puerta!");
return 1;
}
SendClientMessage(playerid, COLOR_BLANCO, "La puerta se cerrara en 7 segundos!");
SendClientMessage(playerid, COLOR_BLANCO, "Pagaste el peaje por $50");
MoveObject(Reja3,606.710,-1194.391,11.540,3.0);
SetTimer("CReja3",7000,0);
GivePlayerMoney(playerid,-50);
Informacion[playerid][Peaje3] = 1;
return 1;
}
else if(PlayerToPoint(5.0,playerid,622.718,-1178.001,19.229))
{
if(Informacion[playerid][Peaje4] == 1)
{
SendClientMessage(playerid, COLOR_ROJO, "Espera a que se cierre la puerta!");
return 1;
}
SendClientMessage(playerid, COLOR_BLANCO, "La puerta se cerrara en 7 segundos!");
SendClientMessage(playerid, COLOR_BLANCO, "Pagaste el peaje por $50");
MoveObject(Reja4,622.595,-1178.264,11.718,3.0);
SetTimer("CReja4",7000,0);
GivePlayerMoney(playerid,-50);
Informacion[playerid][Peaje4] = 1;
return 1;
}
else if(PlayerToPoint(5.0,playerid,1648.777,-23.946,36.780))
{
if(Informacion[playerid][Peaje5] == 1)
{
SendClientMessage(playerid, COLOR_ROJO, "Espera a que se cierre la puerta!");
return 1;
}
SendClientMessage(playerid, COLOR_BLANCO, "La puerta se cerrara en 7 segundos!");
SendClientMessage(playerid, COLOR_BLANCO, "Pagaste el peaje por $50");
MoveObject(Reja5,1648.824,-24.104,29.327,3.0);
SetTimer("CReja5",7000,0);
GivePlayerMoney(playerid,-50);
Informacion[playerid][Peaje5] = 1;
return 1;
}
else if(PlayerToPoint(5.0,playerid,1642.422,-33.879,36.394))
{
if(Informacion[playerid][Peaje6] == 1)
{
SendClientMessage(playerid, COLOR_ROJO, "Espera a que se cierre la puerta!");
return 1;
}
SendClientMessage(playerid, COLOR_BLANCO, "La puerta se cerrara en 7 segundos!");
SendClientMessage(playerid, COLOR_BLANCO, "Pagaste el peaje por $50");
MoveObject(Reja6,1642.498,-33.938,29.601,3.0);
SetTimer("CReja6",7000,0);
GivePlayerMoney(playerid,-50);
Informacion[playerid][Peaje6] = 1;
return 1;
}
else if(PlayerToPoint(5.0,playerid,2758.654,-153.130,32.725))
{
if(Informacion[playerid][Peaje7] == 1)
{
SendClientMessage(playerid, COLOR_ROJO, "Espera a que se cierre la puerta!");
return 1;
}
SendClientMessage(playerid, COLOR_BLANCO, "La puerta se cerrara en 7 segundos!");
SendClientMessage(playerid, COLOR_BLANCO, "Pagaste el peaje por $50");
MoveObject(Reja7,2758.671,-153.099,25.755,3.0);
SetTimer("CReja7",7000,0);
GivePlayerMoney(playerid,-50);
Informacion[playerid][Peaje7] = 1;
return 1;
}
else if(PlayerToPoint(5.0,playerid,2738.180,-153.357,32.333))
{
if(Informacion[playerid][Peaje8] == 1)
{
SendClientMessage(playerid, COLOR_ROJO, "Espera a que se cierre la puerta!");
return 1;
}
SendClientMessage(playerid, COLOR_BLANCO, "La puerta se cerrara en 7 segundos!");
SendClientMessage(playerid, COLOR_BLANCO, "Pagaste el peaje por $50");
MoveObject(Reja8,2738.139,-153.423,24.972,3.0);
SetTimer("CReja8",7000,0);
GivePlayerMoney(playerid,-50);
Informacion[playerid][Peaje8] = 1;
return 1;
}
else if(PlayerToPoint(5.0,playerid,1864.671,-118.054,35.177))
{
if(Informacion[playerid][Peaje9] == 1)
{
SendClientMessage(playerid, COLOR_ROJO, "Espera a que se cierre la puerta!");
return 1;
}
SendClientMessage(playerid, COLOR_BLANCO, "La puerta se cerrara en 7 segundos!");
SendClientMessage(playerid, COLOR_BLANCO, "Pagaste el peaje por $50");
MoveObject(Reja9,1864.647,-118.051,28.091,3.0);
SetTimer("CReja9",7000,0);
GivePlayerMoney(playerid,-50);
Informacion[playerid][Peaje9] = 1;
return 1;
}
else if(PlayerToPoint(5.0,playerid,1854.728,-121.681,35.680))
{
if(Informacion[playerid][Peaje10] == 1)
{
SendClientMessage(playerid, COLOR_ROJO, "Espera a que se cierre la puerta!");
return 1;
}
SendClientMessage(playerid, COLOR_BLANCO, "La puerta se cerrara en 7 segundos!");
SendClientMessage(playerid, COLOR_BLANCO, "Pagaste el peaje por $50");
MoveObject(Reja10,1854.703,-121.643,27.416,3.0);
SetTimer("CReja10",7000,0);
GivePlayerMoney(playerid,-50);
Informacion[playerid][Peaje10] = 1;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_ROJO, "No estas en un peaje!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_ROJO, "Espera a que se cierre la puerta!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_ROJO, "No tienes dinero suficiente! ($50)");
return 1;
}
}
return 0;
}

public CReja1(playerid)
{
MoveObject(Reja1,55.229,-1527.596,5.017,2.5);
Informacion[playerid][Peaje1] = 0;
return 1;
}

public CReja2(playerid)
{
MoveObject(Reja2,62.134,-1537.814,4.737,2.5);
Informacion[playerid][Peaje2] = 0;
return 1;
}

public CReja3(playerid)
{
MoveObject(Reja3,606.733,-1194.388,19.399,2.5);
Informacion[playerid][Peaje3] = 0;
return 1;
}

public CReja4(playerid)
{
MoveObject(Reja4,622.718,-1178.001,19.229,2.5);
Informacion[playerid][Peaje4] = 0;
return 1;
}

public CReja5(playerid)
{
MoveObject(Reja5,1648.777,-23.946,36.780,2.5);
Informacion[playerid][Peaje5] = 0;
return 1;
}

public CReja6(playerid)
{
MoveObject(Reja6,1642.422,-33.879,36.394,2.5);
Informacion[playerid][Peaje6] = 0;
return 1;
}

public CReja7(playerid)
{
MoveObject(Reja7,2758.654,-153.130,32.725,2.5);
Informacion[playerid][Peaje7] = 0;
return 1;
}

public CReja8(playerid)
{
MoveObject(Reja8,2738.180,-153.357,32.333,2.5);
Informacion[playerid][Peaje8] = 0;
return 1;
}

public CReja9(playerid)
{
MoveObject(Reja9,1864.671,-118.054,35.177,2.5);
Informacion[playerid][Peaje9] = 0;
return 1;
}

public CReja10(playerid)
{
MoveObject(Reja10,1854.728,-121.681,35.680,2.5);
Informacion[playerid][Peaje10] = 0;
return 1;
}


public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
if(IsPlayerConnected(playerid))
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
}
return 0;
}


Descarga 2:

mediafire.com error.php?errno=320
Volver arriba Ir abajo
Ver perfil de usuario http://pawno.foroactivo.com.es
 
Peajes LS......
Ver el tema anterior Ver el tema siguiente Volver arriba 
Página 1 de 1.
 Temas similares
-
» SI destapa la trama de los peajes en el Parlamento Catalán
» Mapa de España señalando los lugares donde se dice olivas o aceitunas

Permisos de este foro:No puedes responder a temas en este foro.
pawno.foroactivo.com.es :: Filterscripts-
Cambiar a: