Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // constructor de trabajo por los foros samp vegaltasendai editados
- // Este fs fue dar la idea de cómo quería el trabajo,pero lo deje al tener escasos conocimientos sobre scrip.
- // pero no pude arreglarlo, como poner uniforme y más funciones.
- // Les dejo esto para ver quien mejora o hace un FS trabajo mejor, la idea del trabajo fue mía
- //creditos del fs by TaifunX2
- #include <a_samp>
- #include <streamer>
- #include <zcmd>
- #define COLOR_YELLOW3d 0xFFFF00FF
- #define COLOR_TFNX2 0xFF0000AA
- #define COLOR_ALBASTRU 0x33CCFFAA
- #define COLOR_GALBEN 0xFFFF00AA
- #define FILTERSCRIPT
- new Pas[6] = {5, ...}, Text3D: label[8], bool:TransportStup[MAX_PLAYERS], string[128];
- new Float:PositieStup[8][8] = {{2703.6990,908.0712,10.6552},{},{},{},{},{},{},{}};
- public OnFilterScriptInit()
- {
- Create3DTextLabel("Aqui entrega la mescla\nUsa /dejarmescla",COLOR_YELLOW3d,2675.3425,837.4286,22.2264,10.0,0,1);
- Create3DTextLabel("Bienvenidos a la zona de obras lv!\nVaya a recojer la mescla para empezar trabajar!",COLOR_GALBEN,2717.7800,853.3139,10.8984,10.0,0,1);
- AddStaticPickup(1239, 23, -68.4107,-1598.3169,2.7288);
- //Timer update stup
- SetTimer("UpdateStup" , 500 * 60, true);
- //vehiculos muestra borrar ya que serian gratis para jugadores xd
- CreateVehicle(450, 2696.2490, 894.2095, 10.5421, -87.0000, -1, -1, 100);
- CreateVehicle(486, 2687.2349, 902.7050, 10.3513, 0.0000, -1, -1, 100);
- CreateVehicle(524, 2712.5171, 905.5458, 11.5802, 275.0000, -1, -1, 100);
- CreateVehicle(524, 2712.3445, 898.3555, 11.5802, 275.0000, -1, -1, 100);
- CreateVehicle(524, 2712.2930, 890.8737, 11.5802, 275.0000, -1, -1, 100);
- CreateVehicle(524, 2712.7078, 885.7772, 11.5802, 275.0000, -1, -1, 100);
- CreateVehicle(524, 2695.8203, 909.0060, 11.5602, 86.0000, -1, -1, 100);
- CreateVehicle(450, 2696.7517, 886.0803, 10.5421, -87.0000, -1, -1, 100);
- //Objetos AQUI PONES LOS 2 ANDAMIOS
- CreateObject(9618, 2663.19531, 834.53632, 18.62940, 0.00000, -2.00000, 88.00000);
- CreateObject(9817, 2686.58813, 838.39746, 17.50166, 0.00000, 0.00000, 181.00000);
- for(new i = 0x0; i != sizeof(PositieStup); i++)
- {
- label[i] = Create3DTextLabel("Mesclas usa \n boton izquierdo para recojerla", COLOR_YELLOW3d, PositieStup[i][0], PositieStup[i][1], PositieStup[i][2], 20.0, 0 , 0);
- }
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- ///SI NECESITAS REMOVER ALGO AQUI ES
- TransportStup[playerid] = false;
- RemoveBuildingForPlayer(playerid, 1685, 2698.3750, 904.9219, 10.1797, 0.25);
- RemoveBuildingForPlayer(playerid, 1685, 2701.5703, 908.3281, 10.3516, 0.25);
- RemoveBuildingForPlayer(playerid, 1685, 2695.0078, 909.0859, 10.3828, 0.25);
- RemoveBuildingForPlayer(playerid, 1685, 2699.5000, 911.9219, 10.5000, 0.25);
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(newkeys & KEY_FIRE)
- {
- if(TransportStup[playerid]) return SendClientMessage(playerid,-1, "Aviso : {00FF00}Ya recogistes mescla llevala arriba!");
- for(new i = 0x0; i != sizeof(PositieStup); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid,2.0,PositieStup[i][0], PositieStup[i][1], PositieStup[i][2]))
- {
- ResetPlayerWeapons(playerid);
- SetPlayerAttachedObject(playerid, 1, 1329, 1,0.20,0.36,0.0,0.0,90.0, 0.0, 0.4, 0.3, 0.6);
- ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
- switch(random(3))
- {
- case 0: TransportStup[playerid] = !TransportStup[playerid], Pas[i]--, SendClientMessage(playerid,-1, "Aviso : {FFFFFF}Ya tienes mescla Llleva arriba!");
- case 1: TransportStup[playerid] = !TransportStup[playerid], Pas[i]--, SendClientMessage(playerid,-1, "Aviso : {FFFFFF}Ya tienes mescla Llevala arriba!");
- }
- if(Pas[i] == 0) return SendClientMessage(playerid,-1, "Aviso : {FFFFFF}Aqui toma la {00FF00}mescla.");
- format(string,sizeof(string),"{00FF00}Aviso quedan{FF0000}%d Mesclas \nusa {FFFFFF}boton izq para recojer",Pas[i]);
- Update3DTextLabelText(label[i], 0xFFFFFFFF, string);
- break;
- }
- }
- }
- return 1;
- }
- //trabajando empieza en lo alto de la construccion
- CMD:dejarmescla(playerid, params[])
- {
- if(!IsPlayerInRangeOfPoint(playerid,5.0,2675.3425,837.4286,22.2264)) return SendClientMessage(playerid,0xFF444499,"Advertencia : No estas en la construccion de lv!");
- if(!TransportStup[playerid]) return SendClientMessage(playerid,-1, "Aviso : {FFFFFF}Vaya a! {00FF00}donde estan las mesclas.");
- GivePlayerMoney(playerid, 300); // <<<<<<<<<<----- MODIFICA lo que quieres ganar lo puse en 300
- SendClientMessage(playerid,-1, "SERVER : {FFFFFF}Echastes la mescla ve por mas recibes 450 $");
- TransportStup[playerid] = !TransportStup[playerid];
- RemovePlayerAttachedObject(playerid,1);
- ApplyAnimation(playerid,"CARRY","putdwn",1,0,0,0,0,0);
- return 1;
- }
- forward UpdateStup();
- public UpdateStup()
- {
- for(new i = 0x0; i != sizeof(PositieStup); i++)
- {
- if(Pas[i] == 5) continue;
- Pas[i]++;
- format(string,sizeof(string),"{00FF00}Mesclas {FF0000}%d de la construccion \nahora {FFFFFF}Usa Y para recojer un bote de mescla",Pas[i]);
- Update3DTextLabelText(label[i], 0xFFFFFFFF, string);
- }
- }
- ///////////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement