Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #include <zcmd>
- //////// COLOR //////
- #define COLOR_GREEN 0xB1FB44FF
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_SYSTEM 0x00F6F6AA
- #define COLOR_BLUE 0x0066F6AA
- #define COLOR_GREY 0x7A7979AA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_PINK 0xF600F6AA
- #define COLOR_PURPLE 0x9F00F6AA
- ///////////////////////////
- new String2015[256];
- new InMM[MAX_PLAYERS];
- new Float:MMSpawns[][4] = {
- {131.7872, 1062.7228, 29.4692,90.5000},
- {131.2800, 1031.1852, 29.4692,2.7241},
- {89.4745, 1031.3414, 29.8652,177.5425},
- {90.0045, 1063.1929, 30.3272,6.7742},
- {90.1623, 1097.7803, 30.3272,95.4250},
- {131.8577, 1097.4308, 30.3272,353.9040},
- {111.2754, 1077.2242, 14.9312},
- {111.1654, 1053.0736, 14.9312}
- };
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- COMMAND:mini(playerid,params[])
- {
- new PlayerName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
- if(InMM[playerid] == 1)return SendClientMessage( playerid, -1,"{FFFF00}ERROR: {FFFF00} You are already in a DM arena! Type /leave to exit!" );
- {
- InMM[playerid] = 1;
- format(String2015, sizeof(String2015), "[DM] %s [ID:%d] ha aderito al Minigun DM (/mini).", PlayerName, playerid);
- SendClientMessageToAll(COLOR_YELLOW, String2015);
- new rand = random(sizeof(MMSpawns));
- SetPlayerPos(playerid, MMSpawns[rand][0], MMSpawns[rand][1], MMSpawns[rand][2]);
- SetPlayerFacingAngle(playerid, MMSpawns[rand][3]);
- ResetPlayerWeapons(playerid); //// RESET ARMI
- InMM[playerid] = 1;
- GivePlayerWeapon(playerid, 38, 500); // Minigun
- }
- return 1;
- }
- COMMAND:leave(playerid,params[])
- {
- InMM[playerid] = 0;
- SpawnPlayer(playerid);
- SetPlayerHealth(playerid, 100);
- ResetPlayerWeapons(playerid);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerInterior(playerid, 0);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- ////////////// MINI DM ////////
- if(InMM[playerid] == 1)
- {
- new rand = random(sizeof(MMSpawns));
- SetPlayerPos(playerid, MMSpawns[rand][0], MMSpawns[rand][1], MMSpawns[rand][2]);
- SetPlayerFacingAngle(playerid, MMSpawns[rand][3]);
- ResetPlayerWeapons(playerid); //// RESET ARMI
- GivePlayerWeapon(playerid, 38, 500);
- }
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement