Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Constructor of work post edited samp Vegalta Sendai
- // This fs was to the idea of ??how he wanted the job, but leave it to have little knowledge of scrip.
- // But I could not fix, like putting more uniform and functions.
- // I leave this to see who improves or makes a better FS work, the idea of the work was mine
- //credits of 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("Tai Day Cung Cap Hon Hop\nSu Dung Xay Dung /cungcap",COLOR_YELLOW3d,2675.3425,837.4286,22.2264,10.0,0,1);
- Create3DTextLabel("Chao Mung Ban Den Voi Khu Vuc Cong Truong!\nDen Noi Lay Hon Hop Roi Bat Dau Cong Viec!",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);
- //car shows as it would erase free for players 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);
- //Objects HERE PUT THE 2 TOWERS
- 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("Hon Hop Su Dung O Dau \n Kich Chuot Trai De Lay", COLOR_YELLOW3d, PositieStup[i][0], PositieStup[i][1], PositieStup[i][2], 20.0, 0 , 0);
- }
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- 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, "Nhac Nho : {00FF00}Hay Lay Hon Hop Den Noi Cung Cap Hon Hop!");
- 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, "Notice : {FFFFFF}Already picked up mixture leads!");
- case 1: TransportStup[playerid] = !TransportStup[playerid], Pas[i]--, SendClientMessage(playerid,-1, "Notice : {FFFFFF}Already picked up mixture leads!");
- }
- if(Pas[i] == 0) return SendClientMessage(playerid,-1, "Nhac Nho : {FFFFFF}Dieu Nay Lam Trong {00FF00}Hon Hop.");
- format(string,sizeof(string),"{00FF00}Luu Y Lay Hon Hop{FF0000}%d Bang Cach \nNhap{FFFFFF}Chuot Trai",Pas[i]);
- Update3DTextLabelText(label[i], 0xFFFFFFFF, string);
- break;
- }
- }
- }
- return 1;
- }
- //trabajando empieza en lo alto de la construccion
- CMD:cungcap(playerid, params[])
- {
- if(!IsPlayerInRangeOfPoint(playerid,5.0,2675.3425,837.4286,22.2264)) return SendClientMessage(playerid,0xFF444499,"Canh Bao : Ban Khong O Noi Cong Truong!");
- if(!TransportStup[playerid]) return SendClientMessage(playerid,-1, "Notice : {FFFFFF}Go to! {00FF00}where are the mixtures.");
- GivePlayerCash(playerid, 5000); // <<<<<<<<<<----- Ban Da Nhan Duoc 3000$ Tu Viec Cung Cap Vat Lieu
- SendClientMessage(playerid,-1, "May Chu : {FFFFFF}Ban Da Nhan Duoc 5000$");
- 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}Hop Hop {FF0000}%d Xay Dung \nBay Gio {FFFFFF}Nhap Chuot Trai De Lay Hon Hop Ay",Pas[i]);
- Update3DTextLabelText(label[i], 0xFFFFFFFF, string);
- }
- }
- ////////////////stock for money/////////////////////////
- //============[Stock]==========
- stock GivePlayerCash(playerid, money)
- {
- SetPVarInt(playerid, "Cash", GetPVarInt(playerid, "Cash")+money);
- GivePlayerMoney(playerid, money);
- return 1;
- }
- stock ResetPlayerCash(playerid)
- {
- SetPVarInt(playerid, "Cash", 5000);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement