Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- //Credits:MaX
- #include <a_samp>
- new Text:S;
- new Text:R;
- new Text:B;
- new Text:Serverporukebox;
- new Text:Serverporukelinija;
- new Text:Serverporukelinija2;
- new Text:Textdraw0;
- 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");
- }
- forward RandomMessage();
- new RandomMessages[][] =
- {
- "~r~Balkan ~b~Zone: ~w~Ukoliko vam treba pomoc koristite /pitaj",
- "~r~Balkan ~b~Zone: ~w~Ukoliko vidite citera prijavite ga na /prijaviigraca",
- "~r~Balkan ~b~Zone: ~w~Pomoc oko komandi mozete naci na /help",
- "~r~Balkan ~b~Zone: ~w~Morate Biti minimalan level 3 da udjete u neku organizaciju.",
- "~r~Balkan ~b~Zone: ~w~Koristite GPS da se snadjete u gradu ne smarajte admine!!",
- "~r~Balkan ~b~Zone: ~w~Reklamirajte server i postanite Promoter."
- };
- public RandomMessage()
- {
- TextDrawSetString(Textdraw0, RandomMessages[random(sizeof(RandomMessages))]);
- return 1;
- }
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- SetGameModeText("proba");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- SetTimer("RandomMessage",10000,1);
- /////////////////////textdraw/////////////////////////////////////////////////////
- S = TextDrawCreate(2.000000, 10.000000, "S");
- TextDrawBackgroundColor(S, 255);
- TextDrawFont(S, 1);
- TextDrawLetterSize(S, 0.919999, 2.299999);
- TextDrawColor(S, -1);
- TextDrawUseBox(S, 1);
- TextDrawBoxColor(S, -16776961);
- TextDrawTextSize(S, 25.000000, 140.000000);
- R = TextDrawCreate(2.000000, 35.000000, "R");
- TextDrawBackgroundColor(R, 255);
- TextDrawFont(R, 1);
- TextDrawLetterSize(R, 0.919999, 2.299999);
- TextDrawColor(R, -1);
- TextDrawUseBox(R, 1);
- TextDrawBoxColor(R, 65535);
- TextDrawTextSize(R, 25.000000, 140.000000);
- B = TextDrawCreate(2.000000, 60.000000, "B");
- TextDrawBackgroundColor(B, 255);
- TextDrawFont(B, 1);
- TextDrawLetterSize(B, 0.919999, 2.299999);
- TextDrawColor(B, -1);
- TextDrawUseBox(B, 1);
- TextDrawBoxColor(B, -1);
- TextDrawTextSize(B, 25.000000, 140.000000);
- Serverporukebox = TextDrawCreate(2.000000, 427.000000, "a");
- TextDrawBackgroundColor(Serverporukebox, 255);
- TextDrawFont(Serverporukebox, 1);
- TextDrawLetterSize(Serverporukebox, 0.500000, 6.399998);
- TextDrawColor(Serverporukebox, -1);
- TextDrawUseBox(Serverporukebox, 1);
- TextDrawBoxColor(Serverporukebox, 1074589014);
- TextDrawTextSize(Serverporukebox, 641.000000, -224.000000);
- Serverporukelinija = TextDrawCreate(648.000000, 427.000000, ".");
- TextDrawBackgroundColor(Serverporukelinija, 255);
- TextDrawFont(Serverporukelinija, 1);
- TextDrawLetterSize(Serverporukelinija, 0.500000, -0.700000);
- TextDrawColor(Serverporukelinija, -1);
- TextDrawUseBox(Serverporukelinija, 1);
- TextDrawBoxColor(Serverporukelinija, 16711935);
- TextDrawTextSize(Serverporukelinija, -3.000000, 104.000000);
- Serverporukelinija2 = TextDrawCreate(648.000000, 450.000000, ".");
- TextDrawBackgroundColor(Serverporukelinija2, 255);
- TextDrawFont(Serverporukelinija2, 1);
- TextDrawLetterSize(Serverporukelinija2, 0.500000, -0.700000);
- TextDrawColor(Serverporukelinija2, -1);
- TextDrawUseBox(Serverporukelinija2, 1);
- TextDrawBoxColor(Serverporukelinija2, 16711935);
- TextDrawTextSize(Serverporukelinija2, -3.000000, 104.000000);
- Textdraw0 = TextDrawCreate(4.000000, 423.000000, "~r~Balkan ~b~Zone:");
- TextDrawBackgroundColor(Textdraw0, 255);
- TextDrawFont(Textdraw0, 2);
- TextDrawLetterSize(Textdraw0, 0.300000, 2.699999);///na prvo je bilo 5 a na drugo 2
- TextDrawColor(Textdraw0, -1);
- TextDrawSetOutline(Textdraw0, 1);// 0
- TextDrawSetProportional(Textdraw0, 1);
- TextDrawSetShadow(Textdraw0, 1);
- 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)
- {
- TextDrawShowForPlayer(playerid,S);
- TextDrawShowForPlayer(playerid,R);
- TextDrawShowForPlayer(playerid,B);
- TextDrawShowForPlayer(playerid,Serverporukebox);
- TextDrawShowForPlayer(playerid,Serverporukelinija);
- TextDrawShowForPlayer(playerid,Serverporukelinija2);
- TextDrawShowForPlayer(playerid, Textdraw0);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- 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("/mycommand", cmdtext, true, 10) == 0)
- {
- // Do something here
- 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;
- }
- public OnPlayerClickTextDraw(playerid, Text:clickedid)
- {
- return 1;
- }
- //Credits:MaX
Advertisement
Add Comment
Please, Sign In to add comment