//------------------------------------------------------------------ // // Docks DM .pwn !!! by GtakriZ !!! // //------------------------------------------------------------------ #include #include #include #define COLOR_GREEN 0x33AA33AA #define COLOR_VIOLET 0x9955DEEE #define COLOR_LIGHTRED 0xFF99AADD #define COLOR_SEAGREEN 0x00EEADDF #define COLOR_GRAYWHITE 0xEEEEFFC4 #define COLOR_LIGHTNEUTRALBLUE 0xabcdef66 #define COLOR_GREENISHGOLD 0xCCFFDD56 #define COLOR_LIGHTBLUEGREEN 0x0FFDD349 #define COLOR_NEUTRALBLUE 0xABCDEF01 #define COLOR_LIGHTCYAN 0xAAFFCC33 #define COLOR_RED 0xAA3333AA //--------------------------------------------------------- main() { print("\n----------------------------------"); print(" Docks Deathmatch by GtakriZ"); print("----------------------------------\n"); } //--------------------------------------------------------- public OnGameModeInit() { new count; new id; SetGameModeText("Docks Deathmatch"); ShowNameTags(1); ShowPlayerMarkers(1); id = 47; for(count = 0; count < 20; count++) { id++; } AddPlayerClass(185,2613.4885,-2511.5190,33.4257,355.5200,24,15000,25,15000,33,15000); // ppl1 AddStaticVehicle(429,2571.8083,-2423.5618,13.3136,315.5019,3,1); // cars AddStaticVehicle(429,2575.6965,-2425.9729,13.3140,315.2827,3,1); // car2 AddStaticVehicle(429,2581.8052,-2433.6265,13.3137,272.9868,3,1); // car3 AddStaticVehicle(463,2616.1367,-2496.3115,32.6654,89.6959,19,19); // bike1 AddStaticVehicle(463,2663.1318,-2451.7441,13.1731,267.0345,7,7); // bike2 AddStaticVehicle(463,2689.7529,-2477.5867,13.1897,178.9720,7,7); // bike3 return 1; } //--------------------------------------------------------- public OnPlayerConnect(playerid) { SendClientMessage(playerid, COLOR_GRAYWHITE, "Welcome to Docks Deathmatch!"); SendClientMessage(playerid, COLOR_GRAYWHITE, "Type /info to view some info!"); return 1; } //--------------------------------------------------------- SetupPlayerForClassSelection(playerid) { SetPlayerPos(playerid,1545.5275,-1370.0961,329.4535); SetPlayerCameraPos(playerid,1545.5275,-1365.0961,329.4535); SetPlayerCameraLookAt(playerid,1545.5275,-1370.0961,329.4535); } //--------------------------------------------------------- public OnPlayerRequestClass(playerid, classid) { SetupPlayerForClassSelection(playerid); printf("Classid: %d", classid); switch (classid) { case 0: { GameTextForPlayer(playerid, "~g~Bridge Fighter, 1000, 3); } } return 1; } //--------------------------------------------------------- public OnPlayerSpawn(playerid) { GameTextForPlayer(playerid,"~r~Dont look me like this...~n~ ~w~Fight ~r~Fight ~w~Fight !!!",3000,5); SetPlayerWorldBounds(playerid,2165.1306,2897.7324,-2732.5381,-2028.6960); return 1; } //--------------------------------------------------------- public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid, playerid, reason); SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); return 1; } //--------------------------------------------------------- public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/info", true) == 0) { SendClientMessage(playerid, COLOR_GRAYWHITE, "This is a Docks DM. Creator: GtakriZ"); SendClientMessage(playerid, COLOR_GRAYWHITE, "The docks are WorldBoundried so dont try get away from there!"); SendClientMessage(playerid, COLOR_GRAYWHITE, "You can use /me [text] to use the well-known /me command!"); SendClientMessage(playerid, COLOR_GRAYWHITE, "Cheaters Will Be Banned!!!"); SendClientMessage(playerid, COLOR_GRAYWHITE, "Have a nice game!"); return 1; } return 0; }