Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //--[FS]Radio Transmission System + Checkpoints
- //--Created 18/6/2016
- //--developer: Owen007
- //--Mainly used for Zombie server you can edit it and make it for your server too.
- //--Thanks to all my SA-MP friends who helped me.
- //--You can edit it and make it as a automate server messages but not without my permission ;)
- //Includes really needed
- #include <a_samp>
- #include <streamer>
- #define TEAM_ZOMBIE 1 //defines used to define a team.
- #define TEAM_HUMAN 2
- new gTeam[MAX_PLAYERS]; // i added team for zombie server but you can remove teams also and can make it as a automated server messages.
- //forwards of Tranmission you can add more.
- forward TransMission(playerid); //transmission no 1
- forward TransMission1(playerid); //transmission no 2
- forward TransMission2(playerid); //transmission no 3
- forward TransMission3(playerid); //transmission no 4
- forward TransMission4(playerid); //transmission no 5
- forward TransMission5(playerid); //transmission no 6
- forward TransMission6(playerid); //transmission no 7
- forward TransMission7(playerid); //transmission no 8
- forward TransMission8(playerid); //transmission no 9
- forward TransMission9(playerid); //transmission no 10
- //forwards of Playsound you can add more.
- forward PlaySound(playerid); //Playsound no 1
- forward PlaySound1(playerid); //Playsound no 2
- forward PlaySound2(playerid); //Playsound no 3
- forward PlaySound3(playerid); //Playsound no 4
- forward PlaySound4(playerid); //Playsound no 5
- forward PlaySound5(playerid); //Playsound no 6
- forward PlaySound6(playerid); //Playsound no 7
- forward PlaySound7(playerid); //Playsound no 8
- forward PlaySound8(playerid); //Playsound no 9
- forward PlaySound9(playerid); //Playsound no 10
- //forwards of Checkpoints you can add more.
- forward ShowCP(playerid);
- forward ShowCP1(playerid);
- forward ShowCP2(playerid);
- forward ShowCP3(playerid);
- forward ShowCP4(playerid);
- forward ShowCP5(playerid);
- forward ShowCP6(playerid);
- forward ShowCP7(playerid);
- forward ShowCP8(playerid);
- forward ShowCP9(playerid);
- // A list of colors
- #define COLOR_YELLOW 0xDABB3EAA
- #define GREEN 0x21DD00FF
- #define RED 0xE60000FF
- #define YELLOW 0xFFFF00FF
- #define ORANGE 0xF97804FF
- #define LIGHTRED 0xFF8080FF
- #define LIGHTBLUE 0x00C2ECFF
- #define PURPLE 0xB360FDFF
- #define PLAYER_COLOR 0xFFFFFFFF
- #define BLUE 0x1229FAFF
- #define LIGHTGREEN 0x38FF06FF
- #define DARKPINK 0xE100E1FF
- #define DARKGREEN 0x008040FF
- #define ANNOUNCEMENT 0x6AF7E1FF
- #define GRAY 0xCECECEFF
- #define HITCOLOR 0xFF0000FF
- #define COLOR_LIME 0x10F441AA
- public OnFilterScriptInit()
- {
- //Transmission Play time:-
- SetTimer("TransMission",180000,false); //timers 180 x 1000 means that 180 sec { Extra about these transmission }
- SetTimer("TransMission1",360000,false); // total of 180+180=360 False means that each timer wont repeat.
- SetTimer("TransMission2",540000,false); // total of 360+180=540 Transmission 1,2,3 these numbers are not necessary but i added them to make a deatil.
- SetTimer("TransMission3",660000,false); // total of 540+180=660
- SetTimer("TransMission4",840000,false); // total of 660+180=840
- SetTimer("TransMission5",960000,false); // total of 840+180=960
- SetTimer("TransMission6",1140000,false); // total of 960+180=1140
- SetTimer("TransMission7",1320000,false); // total of 1140+180=1320
- SetTimer("TransMission8",1500000,false); // total of 1320+180=1500
- SetTimer("TransMission9",1680000,false); // total of 1500+180=1680
- //Sound Play time:-
- SetTimerEx("PlaySound",180000,false,"i"); // same here as transmission comment
- SetTimerEx("PlaySound1",360000,false,"i");
- SetTimerEx("PlaySound2",540000,false,"i");
- SetTimerEx("PlaySound3",660000,false,"i");
- SetTimerEx("PlaySound4",840000,false,"i");
- SetTimerEx("PlaySound5",960000,false,"i");
- SetTimerEx("PlaySound6",1140000,false,"i");
- SetTimerEx("PlaySound7",1320000,false,"i");
- SetTimerEx("PlaySound8",1500000,false,"i");
- SetTimerEx("PlaySound9",1680000,false,"i");
- //Cp Play time:-
- SetTimerEx("ShowCP",180000, false, "i"); // same here as transmission comment
- SetTimerEx("ShowCP1",360000, false, "i");
- SetTimerEx("ShowCP2",540000, false, "i");
- SetTimerEx("ShowCP3", 660000, false, "i");
- SetTimerEx("ShowCP4", 840000, false, "i");
- SetTimerEx("ShowCP5", 960000, false, "i");
- SetTimerEx("ShowCP6", 1140000, false, "i");
- SetTimerEx("ShowCP7", 1320000, false, "i");
- SetTimerEx("ShowCP8", 1500000, false, "i");
- SetTimerEx("ShowCP9", 1680000, false, "i");
- print("\n--------------------------------------");
- print(" Transmission + Checkpint System Loaded.");
- print("--------------------------------------\n");
- return 1;
- }
- //These are the public transmission which will display on your gamemode. You can edit these lines
- public TransMission(playerid)
- {
- SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
- SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
- SendClientMessageToAll(GREEN,"Please go to ____Glen Park___ for further assisstance");
- SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
- SendClientMessageToAll(GREEN,"We have Food and Medical Service");
- SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
- return 1;
- }
- public TransMission1(playerid)
- {
- SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
- SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
- SendClientMessageToAll(GREEN,"Please go to ___Santa Maria Beach___ for further assisstance");
- SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
- SendClientMessageToAll(GREEN,"We have Food and Medical Service");
- SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
- return 1;
- }
- public TransMission2(playerid)
- {
- SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
- SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
- SendClientMessageToAll(GREEN,"Please go to ____Unity Station____ for further assisstance");
- SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
- SendClientMessageToAll(GREEN,"We have Food and Medical Service");
- SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
- return 1;
- }
- public TransMission3(playerid)
- {
- SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
- SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
- SendClientMessageToAll(GREEN,"Please go to ___Market___ for further assisstance");
- SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
- SendClientMessageToAll(GREEN,"We have Food and Medical Service");
- SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
- return 1;
- }
- public TransMission4(playerid)
- {
- SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
- SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
- SendClientMessageToAll(GREEN,"Please go to ___Grove Street___ for further assisstance");
- SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
- SendClientMessageToAll(GREEN,"We have Food and Medical Service");
- SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
- return 1;
- }
- public TransMission5(playerid)
- {
- SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
- SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
- SendClientMessageToAll(GREEN,"Please go to ___Rodeo___ for further assisstance");
- SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
- SendClientMessageToAll(GREEN,"We have Food and Medical Service");
- SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
- return 1;
- }
- public TransMission6(playerid)
- {
- SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
- SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
- SendClientMessageToAll(GREEN,"Please go to ___Military Secret base___ for further assisstance");
- SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
- SendClientMessageToAll(GREEN,"We have Food and Medical Service");
- SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
- return 1;
- }
- public TransMission7(playerid)
- {
- SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
- SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
- SendClientMessageToAll(GREEN,"Please go to ___Vinewood___ for further assisstance");
- SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
- SendClientMessageToAll(GREEN,"We have Food and Medical Service");
- SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
- return 1;
- }
- public TransMission8(playerid)
- {
- SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
- SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
- SendClientMessageToAll(GREEN,"Please go to ___Gate C___ for further assisstance");
- SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
- SendClientMessageToAll(GREEN,"We have Food and Medical Service");
- SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
- return 1;
- }
- public TransMission9(playerid)
- {
- SendClientMessageToAll(RED,"~Radio TRANSMISSION~");
- SendClientMessageToAll(GREEN,"If any Survivours is hearing this message");
- SendClientMessageToAll(GREEN,"Please go to ___D12 Crash Site___ for further assisstance");
- SendClientMessageToAll(GREEN,"Umbrella Corp had setup their for survivors");
- SendClientMessageToAll(GREEN,"We have Food and Medical Service");
- SendClientMessageToAll(GREEN,"Please be safe while arriving here or zombies will hunt you down.");
- return 1;
- }
- //on player spawn
- public OnPlayerSpawn(playerid)
- {
- // this is a message so that people will do /audiomsg after seeing this msg. for not viewing these audiostream links.
- SendClientMessageToAll(RED,"PLEASE I WILL SUGGEST OFF AUDIOMESSAGE USE /audiomsg FOR BETTER GAMEPLAY. GOOD LUCK");
- return 1;
- }
- // playing sound 1 by 1
- public PlaySound(playerid)
- {
- PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/blb3aqymb1/Glen_park.mp3");
- return 1;
- }
- public PlaySound1(playerid)
- {
- PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/346l57lq9m/Santa_beacg.mp3");
- return 1;
- }
- public PlaySound2(playerid)
- {
- PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/nqc1mpl4qe/Unity.mp3");
- return 1;
- }
- public PlaySound3(playerid)
- {
- PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/kirjuuvsky/Marker.mp3");
- return 1;
- }
- public PlaySound4(playerid)
- {
- PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/2fxrypdl9j/Grove.mp3");
- return 1;
- }
- public PlaySound5(playerid)
- {
- PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/0f4psm4ncu/Rodeo.mp3");
- return 1;
- }
- public PlaySound6(playerid)
- {
- PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/urrtvuftnd/Secret_base.mp3");
- return 1;
- }
- public PlaySound7(playerid)
- {
- PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/55fy49xlr5/Vinewood.mp3");
- return 1;
- }
- public PlaySound8(playerid)
- {
- PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/ppm8ehtlwu/Gate_c.mp3");
- return 1;
- }
- public PlaySound9(playerid)
- {
- PlayAudioStreamForPlayer(playerid,"http://k003.kiwi6.com/hotlink/wpk02p7f3f/D12.mp3");
- return 1;
- }
- //Pulibc
- public ShowCP(playerid)
- {
- SetPlayerCheckpoint(playerid, 1969.99, -1199.42, 25.64, 50.0); //CheckPoint 1
- return 1;
- }
- public ShowCP1(playerid)
- {
- SetPlayerCheckpoint(playerid, 218.01, -1823.82, 40.06, 50.0); //CheckPoint 2
- return 1;
- }
- public ShowCP2(playerid)
- {
- SetPlayerCheckpoint(playerid, 1774.26, -1939.52, 13.56, 50.0); //CheckPoint 3
- return 1;
- }
- public ShowCP3(playerid)
- {
- SetPlayerCheckpoint(playerid, 776.31, -1353.71, 13.54, 50.0); //CheckPoint 4
- return 1;
- }
- public ShowCP4(playerid)
- {
- SetPlayerCheckpoint(playerid, 2501.05, -1666.91, 13.36, 50.0); //CheckPoint 5
- return 1;
- }
- public ShowCP5(playerid)
- {
- SetPlayerCheckpoint(playerid, 535.44, -1477.09, 14.54, 50.0); //CheckPoint 6
- return 1;
- }
- public ShowCP6(playerid)
- {
- SetPlayerCheckpoint(playerid, 2709.97, -1065.97, 75.37, 50.0); //CheckPoint 7
- return 1;
- }
- public ShowCP7(playerid)
- {
- SetPlayerCheckpoint(playerid, 1005.63, -940.09, 42.18, 50.0); //CheckPoint 8
- return 1;
- }
- public ShowCP8(playerid)
- {
- SetPlayerCheckpoint(playerid, 1175.52, -2035.39, 69.14, 50.0); //CheckPoint 9
- return 1;
- }
- public ShowCP9(playerid)
- {
- SetPlayerCheckpoint(playerid, 2434.31, -1502.13, 23.83, 50.0); //CheckPoint 10
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(gTeam[playerid] == TEAM_HUMAN) {
- GameTextForPlayer(playerid,"~r~ You have cleared the checkpoint.",6000,4);
- SendClientMessageToAll(PURPLE,"You have been given 5000$");
- SendClientMessageToAll(PURPLE,"You have been given Medical Attention.");
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SetPlayerHealth(playerid, 100);
- DisablePlayerCheckpoint(playerid);
- GivePlayerMoney(playerid,5000);
- }
- if(gTeam[playerid] == TEAM_ZOMBIE) {
- GameTextForPlayer(playerid,"~g~ Fuck those survivors.",6000,4);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement