Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ||=================================================||
- || Event's ||
- || ============= ||
- || B.Y ||
- ||================================================ ||
- || Teddy
- ||=================================================||
- || DONT MODIFY THE CREDITS PLEASE !!!!! ||
- ||=================================================||
- */
- #include <a_samp>
- #include <zcmd>
- #define FILTERSCRIPT true
- #define COLOR_GREY 0xD7D7D7FF
- enum E_INFO
- {
- EventEnabled
- }
- enum pInfo
- {
- pAdmin
- }
- forward UnfreezePlayers();
- new PlayerInfo[MAX_PLAYERS][pInfo];
- new EventInfo[E_INFO];
- new giveplayer[MAX_PLAYER_NAME];
- new sendername[MAX_PLAYER_NAME];
- new playa;
- new Float:RandomSpawns[30][] = {
- {1412.2595,6.1298,1000.9219,180.9003}, //
- {1408.0437,6.1806,1000.9251,177.1402}, //
- {1403.1508,6.1258,1000.9059,174.6335}, //
- {1398.0273,5.9584,1000.9063,185.9137}, //
- {1381.0830,5.6821,1000.9166,183.4070}, //
- {1373.4424,6.2396,1000.9163,175.8869}, //
- {1368.2979,6.1590,1000.9200,177.4536}, //
- {1360.3193,6.3505,1000.9219,179.6470}, //
- {1359.6257,-2.4310,1000.9219,275.8412}, //
- {1360.0743,-7.8997,1000.9219,268.9478}, //
- {1360.1553,-14.3356,1000.9219,264.5611}, //
- {1360.0851,-21.2351,1000.9219,260.1510}, //
- {1360.0441,-27.1327,1000.9219,264.5378}, //
- {1360.0824,-33.6543,1000.9219,278.3245}, //
- {1360.0995,-38.4936,1000.9219,275.1912}, //
- {1359.9139,-45.6904,1000.9254,272.9978}, //
- {1365.9270,-48.2096,1000.9162,0.1053}, //
- {1371.3363,-47.7785,1000.9165,356.9719}, //
- {1376.5577,-47.6267,1000.9184,356.0320}, //
- {1382.5784,-47.3322,1000.9216,3.8653}, //
- {1389.0518,-47.3623,1000.9244,356.6586}, //
- {1395.5378,-47.5278,1000.9251,3.2387}, //
- {1401.5302,-47.5923,1000.9088,354.4653}, //
- {1409.2939,-47.4446,1000.9229,7.6255}, //
- {1417.9374,-47.3752,1000.9294,2.6121}, //
- {1418.2668,-42.5882,1000.9227,88.7796}, //
- {1418.5240,-37.9459,1000.9272,83.7662}, //
- {1418.0388,-31.0613,1000.9270,93.7930}, //
- {1417.7113,-23.9086,1000.9269,87.8162}, //
- {1418.2236,-14.0434,1000.9271,90.0095} //
- };
- #if FILTERSCRIPT == true
- public OnFilterScriptInit()
- {
- print("\n ___________________________________________________");
- print(" ");
- print(" EventSystem ");
- print(" --------------- ");
- print(" B.Y ");
- print(" Teddy ");
- print(" ___________________________________________________\n");
- EventInfo[EventEnabled]=0;
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n ___________________________________________________");
- print(" ");
- print(" EventSystem ");
- print(" --------------- ");
- print(" B.Y ");
- print(" Teddy ");
- print(" ___________________________________________________\n");
- return 1;
- }
- #endif
- //==================[Deagle event]===========================//
- new string[256];
- new Name[24];
- CMD:startdevent(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 5) return SendClientMessage(playerid, COLOR_GREY, "{F81414}You cant use this command!");
- EventInfo[EventEnabled]=1;
- GetPlayerName(playerid, Name, sizeof(Name));
- format(string, 256, "{6EF83C}[Event]: Event Deagle activated by admin {FFFFFF} %s ! {6EF83C}(/joindevent) ", Name);
- return SendClientMessageToAll(COLOR_GREY, string);
- }
- CMD:closedevent(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 5) return SendClientMessage(playerid, COLOR_GREY, "{F81414}You cant use this command!");
- EventInfo[EventEnabled]=0;
- SetTimer(#UnfreezePlayers, (5 * 1000), false);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, 256, "{6EF83C}[Event]: Event Deagle dezactivated {FFFFFF} %s ! ", giveplayer, sendername, Name);
- return SendClientMessageToAll(COLOR_GREY, string);
- }
- CMD:joindevent(playerid, params[])
- {
- if(EventInfo[EventEnabled] == 0) return SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[ERROR]: Is not a event active!!");
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to be out of car to use this command!");
- new Random = random(30);
- SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
- SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
- SetPlayerInterior(playerid, 1);
- TogglePlayerControllable(playerid, false);
- GivePlayerWeapon(playerid, 24, 999);
- SetPlayerArmour(playerid, 100);
- return SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[Event]: Good luck at deagle !");
- }
- //==================[Molotov Cocktail event]===========================//
- CMD:startmcevent(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 5) return SendClientMessage(playerid, COLOR_GREY, "{F81414}You cant use this command!");
- EventInfo[EventEnabled]=1;
- GetPlayerName(playerid, Name, sizeof(Name));
- format(string, 256, "{6EF83C}[Event]: Event Molotov Cocktail activated by admin {FFFFFF} %s ! {6EF83C}(/joinmcevent) ", giveplayer, sendername, Name);
- return SendClientMessageToAll(COLOR_GREY, string);
- }
- CMD:closemcevent(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 5) return SendClientMessage(playerid, COLOR_GREY, "{F81414}You cant use this command!");
- EventInfo[EventEnabled]=0;
- SetTimer(#UnfreezePlayers, (5 * 1000), false);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, 256, "{6EF83C}[Event]: Event Molotov Cocktail dezactivated {FFFFFF} %s ! ", giveplayer, sendername, Name);
- return SendClientMessageToAll(COLOR_GREY, string);
- }
- CMD:joinmcevent(playerid, params[])
- {
- if(EventInfo[EventEnabled] == 0) return SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[ERROR]: Is not a event active!!");
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to be out of car to use this command!");
- new Random = random(30);
- SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
- SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
- SetPlayerInterior(playerid, 1);
- TogglePlayerControllable(playerid, false);
- GivePlayerWeapon(playerid, 18, 999);
- SetPlayerArmour(playerid, 100);
- return SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[Event]: Good Luck! Molotov !");
- }
- //==================[Grenade event]===========================//
- CMD:startgevent(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 5) return SendClientMessage(playerid, COLOR_GREY, "{F81414}You cant use this command!");
- EventInfo[EventEnabled]=1;
- GetPlayerName(playerid, Name, sizeof(Name));
- format(string, 256, "{6EF83C}[Event]: Grenade event activated by admin {FFFFFF} %s ! {6EF83C}(/joingevent) ", giveplayer, sendername, Name);
- return SendClientMessageToAll(COLOR_GREY, string);
- }
- CMD:closegevent(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 5) return SendClientMessage(playerid, COLOR_GREY, "{F81414}You cant use this command!");
- EventInfo[EventEnabled]=0;
- SetTimer(#UnfreezePlayers, (5 * 1000), false);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, 256, "{6EF83C}[Event]: Grenade The event has been dezactivated by{FFFFFF} %s ! ", giveplayer, sendername, Name);
- return SendClientMessageToAll(COLOR_GREY, string);
- }
- CMD:joingevent(playerid, params[])
- {
- if(EventInfo[EventEnabled] == 0) return SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[ERROR]: Is not a event active!!");
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to be out of car to use this command!");
- new Random = random(30);
- SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
- SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
- SetPlayerInterior(playerid, 1);
- TogglePlayerControllable(playerid, false);
- GivePlayerWeapon(playerid, 16, 999);
- SetPlayerArmour(playerid, 100);
- return SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[Event]: Good Luck! Grenade !");
- }
- //==================[Baseball Bat event]===========================//
- CMD:startbbevent(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 5) return SendClientMessage(playerid, COLOR_GREY, "{F81414}You cant use this command!");
- EventInfo[EventEnabled]=1;
- GetPlayerName(playerid, Name, sizeof(Name));
- format(string, 256, "{6EF83C}[Event]: Baseball Bat activated by admin {FFFFFF} %s ! {6EF83C}(/joinbbevent) ", giveplayer, sendername, Name);
- return SendClientMessageToAll(COLOR_GREY, string);
- }
- CMD:closebbevent(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 5) return SendClientMessage(playerid, COLOR_GREY, "{F81414}You cant use this command!");
- EventInfo[EventEnabled]=0;
- SetTimer(#UnfreezePlayers, (5 * 1000), false);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, 256, "{6EF83C}[Event]: Baseball Bat dezactivated {FFFFFF} %s ! ", giveplayer, sendername, Name);
- return SendClientMessageToAll(COLOR_GREY, string);
- }
- CMD:joinbbevent(playerid, params[])
- {
- if(EventInfo[EventEnabled] == 0) return SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[ERROR]: Is not a event active!!");
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to be out of car to use this command!");
- new Random = random(30);
- SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
- SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
- SetPlayerInterior(playerid, 1);
- TogglePlayerControllable(playerid, false);
- GivePlayerWeapon(playerid, 5, 999);
- SetPlayerArmour(playerid, 100);
- return SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[Event]: Good Luck! Baseball Bat !");
- }
- //==================[SMG event]===========================//
- CMD:startsmgevent(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 5) return SendClientMessage(playerid, COLOR_GREY, "{F81414}You cant use this command!");
- EventInfo[EventEnabled]=1;
- GetPlayerName(playerid, Name, sizeof(Name));
- format(string, 256, "{6EF83C}[Event]: SMG event activated by admin {FFFFFF} %s ! {6EF83C}(/joinsmgevent) ", giveplayer, sendername, Name);
- return SendClientMessageToAll(COLOR_GREY, string);
- }
- CMD:closesmgevent(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 5) return SendClientMessage(playerid, COLOR_GREY, "{F81414}You cant use this command!");
- EventInfo[EventEnabled]=0;
- SetTimer(#UnfreezePlayers, (5 * 1000), false);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, 256, "{6EF83C}[Event]: SMG The event has been dezactivated by{FFFFFF} %s ! ", giveplayer, sendername, Name);
- return SendClientMessageToAll(COLOR_GREY, string);
- }
- CMD:joinsmgevent(playerid, params[])
- {
- if(EventInfo[EventEnabled] == 0) return SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[ERROR]: Is not a event active!!");
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to be out of car to use this command!");
- new Random = random(30);
- SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
- SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
- SetPlayerInterior(playerid, 1);
- TogglePlayerControllable(playerid, false);
- GivePlayerWeapon(playerid, 28, 999);
- SetPlayerArmour(playerid, 100);
- return SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[Event]: Good Luck! SMG !");
- }
- //==================[Combat ShotGun event]===========================//
- CMD:startcsevent(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 5) return SendClientMessage(playerid, COLOR_GREY, "{F81414}You cant use this command!");
- EventInfo[EventEnabled]=1;
- GetPlayerName(playerid, Name, sizeof(Name));
- format(string, 256, "{6EF83C}[Event]:event activated by admin {FFFFFF} %s ! {6EF83C}(/joincsevent) ", giveplayer, sendername, Name);
- return SendClientMessageToAll(COLOR_GREY, string);
- }
- CMD:closecsevent(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 5) return SendClientMessage(playerid, COLOR_GREY, "{F81414}You cant use this command!");
- EventInfo[EventEnabled]=0;
- SetTimer(#UnfreezePlayers, (5 * 1000), false);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, 256, "{6EF83C}[Event]:The event has been dezactivated by{FFFFFF} %s ! ", giveplayer, sendername, Name);
- return SendClientMessageToAll(COLOR_GREY, string);
- }
- CMD:joincsevent(playerid, params[])
- {
- if(EventInfo[EventEnabled] == 0) return SendClientMessage(playerid, COLOR_GREY, "[ERROR]: Is not a event active!!");
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to be out of car to use this command!");
- new Random = random(30);
- SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
- SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
- SetPlayerInterior(playerid, 1);
- TogglePlayerControllable(playerid, false);
- GivePlayerWeapon(playerid, 27, 999);
- SetPlayerArmour(playerid, 100);
- return SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[Event]: Good Luck!");
- }
- //==================[Liber event]===========================//
- CMD:startevent(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 5) return SendClientMessage(playerid, COLOR_GREY, "{F81414}You cant use this command!");
- EventInfo[EventEnabled]=1;
- GetPlayerName(playerid, Name, sizeof(Name));
- format(string, 256, "{6EF83C}[Event]: {FFFFFF} %s ! {6EF83C}(/joinevent) ", giveplayer, sendername, Name);
- return SendClientMessageToAll(COLOR_GREY, string);
- }
- CMD:closeevent(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 5) return SendClientMessage(playerid, COLOR_GREY, "{F81414}You cant use this command!");
- EventInfo[EventEnabled]=0;
- SetTimer(#UnfreezePlayers, (5 * 1000), false);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- format(string, 256, "{6EF83C}[Event]: EVENT OFF by Admin {FFFFFF} %s ! ", giveplayer, sendername, Name);
- return SendClientMessageToAll(COLOR_GREY, string);
- }
- CMD:joinevent(playerid, params[])
- {
- if(EventInfo[EventEnabled] == 0) return SendClientMessage(playerid, COLOR_GREY, "[ERROR]:Is not a event active!");
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to be out of car to use this command!!");
- new Random = random(30);
- SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
- SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
- SetPlayerInterior(playerid, 1);
- TogglePlayerControllable(playerid, false);
- GivePlayerWeapon(playerid, 27, 999);
- SetPlayerArmour(playerid, 100);
- return SendClientMessage(playerid, COLOR_GREY, "{6EF83C}[Event]: Good Luck !");
- }
- CMD:eventhelp(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 5) return SendClientMessage(playerid, COLOR_GREY, "You cant use this command!");
- SendClientMessage(playerid, COLOR_GREY,"{6EF83C}---------------------------------------------------------------------------");
- SendClientMessage(playerid, COLOR_GREY,"{0049FF}[Deagle Event]:{FFFFFF} /startdevent | /closedevent | /joindevent");
- SendClientMessage(playerid, COLOR_GREY,"{0049FF}[Molotov Event]: {FFFFFF}/startmcevent | /closemcevent | /joinmcevent");
- SendClientMessage(playerid, COLOR_GREY,"{0049FF}[Grenade Event]:{FFFFFF} /startgevent | /closegevent | /joingevent");
- SendClientMessage(playerid, COLOR_GREY,"{0049FF}[Baseball Event]:{FFFFFF} /startbbevent | /closebbevent | /joinbbevent");
- SendClientMessage(playerid, COLOR_GREY,"{0049FF}[SMG Event]: {FFFFFF}/startsmgevent | /closesmgevent | /joinsmgevent");
- SendClientMessage(playerid, COLOR_GREY,"{0049FF}[ShotGun Event]: {FFFFFF}/startcsevent | /closecsevent | /joincsevent");
- SendClientMessage(playerid, COLOR_GREY,"{0049FF}[Unarmed Event]: {FFFFFF}/startevent | /closeevent | /joinevent");
- return SendClientMessage(playerid, COLOR_GREY,"{6EF83C}--------------------------------------------------------------------");
- }
- CMD:meventcredits(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREY,"{6EF83C}---------------------------------------------------------------------------");
- SendClientMessage(playerid, COLOR_GREY,"{0049FF}[Scripter]:{FFFFFF} Teddy");
- SendClientMessage(playerid, COLOR_GREY,"{0049FF}[Help]: {FFFFFF} Junno ( my brother )");
- SendClientMessage(playerid, COLOR_GREY,"{FFFFFF}Thanks Junno for help!");
- SendClientMessage(playerid, COLOR_GREY,"{FFFFFF}I hope you will enjoy him!!");
- return SendClientMessage(playerid, COLOR_GREY,"{6EF83C}--------------------------------------------------------------------");
- }
- public UnfreezePlayers()
- {
- for(new p; p != MAX_PLAYERS; ++p){
- if(IsPlayerConnected(p)){
- TogglePlayerControllable(p, true);
- SendClientMessage(p, COLOR_GREY,"{0049FF}[Info]: {FFFFFF}You have been unfreezed , good luck!");}}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement