Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- @@@@@@@@ @@@ @@@ @@@@@@@@ @@@@@@@ @@@@@@ @@@@@@@@@@ @@@ @@@ @@@ @@@@@@@
- @@! @@! !@@ @@! !@@ @@! @@@ @@! @@! @@! @@! @@!@!@@@ !@@
- @!!!:! !@@!@! @!!!:! !@! @!@!@ @!@!@!@! @!! !!@ @!@ !!@ @!@@!!@! !@! @!@!@
- !!: !: :!! !!: :!! !!: !!: !!! !!: !!: !!: !!: !!! :!! !!:
- : :: ::: ::: ::: : :: ::: :: :: : : : : : : : :: : :: :: :
- This version was made by Zezam
- */
- //------ Includes ------
- #include <a_samp>
- #include <Zdini>
- #include <core>
- #include <float>
- //------ Color-Defines ------
- #define COLOR_COPS 0x33CCFFAA
- #define COLOR_GANGS 0x33AA33AA
- #define COLOR_GLOBALMSG 0xFF8000FF
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_JOIN 0x99FF9900
- #define COLOR_RED 0xD43B0300
- #define COLOR_GREEN 0x21DD00FF
- #define COLOR_LIGHTRED 0xFF6600FF
- #define COLOR_PINK 0xE6006600
- #define COLOR_WHITE 0xFFFFFFFF
- #define COLOR_BLACK 0x000000AA
- #define COLOR_GOLD 0xE3B515AA
- //------ Gang Defines ------
- #define COP 1
- #define CRIMINAL 2
- //------ Zee Admin Defines ------
- /*(Uhm, I can add this admin system later if thats wished, not Great, but works.)*/
- //------ Other Defines ------
- #define MAP_NAME "San Andreas"
- #define SERVER_NAME "Nitroz's OS Gamemode project v.0.2"
- #define GAMEMODE "Cops n' Robbers / DM? IDK"
- //------ Spawning and setting teams ------
- public OnPlayerSpawn(playerid)
- {
- if(IsPlayerNPC(playerid)) return 1;
- SetPlayerInterior(playerid,0);
- if (GetPlayerSkin(playerid) >= 105 && GetPlayerSkin(playerid) <= 107) //Grove in this case...
- {
- SetPlayerTeam(playerid, CRIMINAL);
- SetPlayerColor(playerid, COLOR_GANGS);
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
- }
- else
- {
- SetPlayerTeam(playerid, COP);//Since I've only thought of adding just a few skins... I CAN do it this way. Not the best but still.
- SetPlayerColor(playerid, COLOR_COPS);
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
- return 1;
- }
- //------ Commands ------
- public OnPlayerCommandText(playerid, cmdtext[]){
- dcmd(help, 4, cmdtext);
- dcmd(o, 1, cmdtext);
- return 0;}
- dcmd_help(playerid,params[]){
- #pragma unused params
- SendClientMessage(playerid, COLOR_WHITE, "This is the Help section");
- return 1;}
- dcmd_o(playerid,params[]){ //Don't remember if I ever made this work a 100% on GTAPB, but um...
- GetPlayerName(playerid,name,sizeof(name));
- format(str, sizeof(str), "[OOC]%s : %s \r\n", name, params[1]), SendClientMessageToAll(COLOR_YELLOW, str);
- return 1;}
- public OnGameModeInit()
- {
- printf(" Nitroz Gamemode Project ");
- printf("This version was made by Zezam");
- RandomMessages = true;
- rmessages = SetTimer("Messages", 600000, true);
- return 1;
- }
- public OnGameModeExit()
- {
- KillTimer(rmessages);
- printf("GameMode ended");
- return 1;
- }
- public Messages()
- {
- if(RandomMessages == true)
- {
- new string[128];
- new mess = random(sizeof(PMessages));
- format(string, sizeof(string), "[Server Message]: %s", PMessages[mess]);
- SendClientMessageToAll(COLOR_WHITE, string);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement