Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //===============================SRW===========================================//
- //=============================================================================//
- //=============================================================================//
- //=============================================================================//
- //=INCLUDE=//
- #include <a_samp>
- #include <a_actor>
- #include <YSI\y_ini>
- #include <YSI\amx>
- #include <sscanf2>
- #include <zcmd>
- //=============================================================================//
- #define IME_SERVERA "Shock Gaming"
- #define VLASNIK_SERVERA "djole"
- #define VERZIJA_SERVERA "V0.0.1"
- #define SCM SendClientMessage
- #define SCMTA SendClientMessageToAll
- #define DIALOG_LOGIN 2
- #define DIALOG_REGISTER 1
- #define DIALOG_SUCCESS_1 3
- #define DIALOG_SUCCESS_2 4
- #define PATH "/Korisnici/%s.ini"
- #define UserPath PATH
- #define SSCANF_OnPlayerDisconnect sscanf2
- #define OcistiChatIgracu
- #define OcistiChatSvima
- //=============================================================================//
- //=DIALOG=//
- #define DIALOG_INPUT 1
- #define DIALOG_SELECT 2
- #define DIALOG_MSGBOX 3
- //=============================================================================//
- //=COLORS=//
- #define COL_GREY 0xAFAFAFAA
- #define COL_GREEN 0x33AA33AA
- #define COL_RED 0xAA3333AA
- #define COL_YELLOW 0xFFFF00AA
- #define COL_WHITE 0xFFFFFFAA
- #define COL_BLUE 0x0000BBAA
- #define COL_LIGHTBLUE 0x33CCFFAA
- #define COL_ORANGE 0xFF9900AA
- #define COL_RED 0xAA3333AA
- #define COL_LIME 0x10F441AA
- #define COL_MAGENTA 0xFF00FFFF
- #define COL_NAVY 0x000080AA
- #define COL_AQUA 0xF0F8FFAA
- #define COL_CRIMSON 0xDC143CAA
- #define COL_FLBLUE 0x6495EDAA
- #define COL_BISQUE 0xFFE4C4AA
- #define COL_BLACK 0x000000AA
- #define COL_CHARTREUSE 0x7FFF00AA
- #define COL_BROWN 0XA52A2AAA
- #define COL_CORAL 0xFF7F50AA
- #define COL_GOLD 0xB8860BAA
- #define COL_GREENYELLOW 0xADFF2FAA
- #define COL_INDIGO 0x4B00B0AA
- #define COL_IVORY 0xFFFF82AA
- #define COL_LAWNGREEN 0x7CFC00AA
- #define COL_SEAGREEN 0x20B2AAAA
- #define COL_LIMEGREEN 0x32CD32AA
- #define COL_MIDNIGHTBLUE 0X191970AA
- #define COL_MAROON 0x800000AA
- #define COL_OLIVE 0x808000AA
- #define COL_ORANGERED 0xFF4500AA
- #define COL_PINK 0xFFC0CBAA
- #define COL_SPRINGGREEN 0x00FF7FAA
- #define COL_TOMATO 0xFF6347AA
- #define COL_YELLOWGREEN 0x9ACD32AA
- #define COL_MEDIUMAQUA 0x83BFBFAA
- #define COL_MEDIUMMAGENTA 0x8B008BAA
- //=============================================================================//
- //=VARIABLE=//
- main()
- {
- printf("\n----------------------------------");
- printf(" Ime servera : %s",IME_SERVERA);
- printf("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- SetGameModeText("v0.0.1");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- 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)
- {
- OcistiChatIgracu(playerid);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- OcistiChatIgracu(playerid);
- SetPlayerSkin(playerid, 294);
- SCM(playerid, COL_WHITE, "Dobrodosao na server.Uzivaj!");
- 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("/cc", cmdtext, true, 10) == 0)
- {
- OcistiChatSvima(playerid);
- 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;
- }
- //=============================================================================//
- //=STOCK=//
- stock OcistiChatIgracu
- {
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- SCM(playerid,"");
- }
- stock OcistiChatSvima
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- SCMTA(playerid,"");
- }
Advertisement
Add Comment
Please, Sign In to add comment