Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new TogDistrict;
- #define TEAM_HIT_COLOR 0xFFFFFF00
- #define BOJA_NARANCASTA 0xFF7700AA
- #define BOJA_BILA 0xFFFFFFAA
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_LIGHTRED 0xFF6347AA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- SetPlayerColor(playerid, COLOR_GRAD2);
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/districtoff", cmdtext, true, 10) == 0)
- {
- if(IsPlayerAdmin(playerid))
- {
- for(new i=0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- TogDistrict = 0;
- }
- }
- }
- return 1;
- }
- if(strcmp("/districton", cmdtext, true, 10) == 0)
- {
- if(IsPlayerAdmin(playerid))
- {
- TogDistrict = 1;
- SendClientMessageToAll(BOJA_NARANCASTA, "DISTRICT: Server je aktivirao District. Molimo utipkajte /district da se pridruzite.");
- }
- return 1;
- }
- if (strcmp("/districtcount", cmdtext, true, 10) == 0)
- {
- if(IsPlayerAdmin(playerid))
- {
- TogDistrict = 0;
- SetTimer("district", 1000, 0);
- SetTimer("district1", 2000, 0);
- SetTimer("district2", 3000, 0);
- SetTimer("district3", 4000, 0);
- }
- return 1;
- }
- if (strcmp("/district", cmdtext, true, 10) == 0)
- {
- if(TogDistrict == 1)
- {
- TogglePlayerControllable(playerid,0);
- SetPlayerInterior(playerid, 0);
- GivePlayerWeapon(playerid, 31, 450);
- GivePlayerWeapon(playerid, 24, 200);
- GivePlayerWeapon(playerid, 25, 200);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100);
- new var = random(1);
- switch (var)
- {
- case 0:{ SetPlayerPos(playerid, 2502.9434,-6515.5977,5.0418); ResetPlayerWeapons(playerid); SetPlayerColor(playerid, COLOR_LIGHTRED); SetPlayerSkin(playerid, 143);}
- case 1:{SetPlayerPos(playerid, 2528.0913,-6400.8398,5.0418); ResetPlayerWeapons(playerid); SetPlayerColor(playerid, COLOR_LIGHTBLUE); SetPlayerSkin(playerid, 121);}
- }
- }
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- forward district(playerid);
- forward district1(playerid);
- forward district2(playerid);
- forward district3(playerid);
- public district(playerid)
- {
- GameTextForAll("~w~3",2000,3);
- PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
- return 1;
- }
- public district1(playerid)
- {
- GameTextForAll("~w~2",2000,3);
- PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
- return 1;
- }
- public district2(playerid)
- {
- GameTextForAll("~w~1",2000,3);
- PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
- return 1;
- }
- public district3(playerid)
- {
- for(new i=0; i < MAX_PLAYERS; i++)
- {
- GameTextForAll("~r~GO! GO! GO!",3000,3);
- TogglePlayerControllable(i,1);
- PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
- }
- {
- SendClientMessageToAll(BOJA_NARANCASTA, "DISTRICT: Server je startao District event.Krenite u borbu (plavi vs crveni / crveni vs plavi).");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement