Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Akcenat Sistem by Vasic (c) 2017, Uzivajte, verujem da ce mnogim serverima pomoci. HVALA!//
- //* NAPOMENA: ~ Ovo morate dodati u vasu skriptu, jer akcenat sistem se nece moci sacuvati ukoliko nemate REG/LOG System.
- //* Ja sam ovo na brzinu odradio, tako da nisam imao vremena praviti Log/Reg sistem :) Uzivajte!
- #include <a_samp>
- #include <zcmd>
- #include <foreach>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("FS ~ 'Akcenat System' ~ by Vasic (c) 2017");
- print("Balkan Samp Profile Nick ~ 'Vasic'");
- print("YouTube Profile Nick ~ 'Vasic'");
- print("~~~~~~ENJOY AND MORE FUN~~~~~~'");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n--------------------------------------");
- print("FS ~ 'Akcenat System' ~ by Vasic (c) 2017");
- print("Balkan Samp Profile Nick ~ 'Vasic'");
- print("YouTube Profile Nick ~ 'Vasic'");
- print("~~~~~~ENJOY AND MORE FUN~~~~~~'");
- print("--------------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- SetGameModeText("Accent System | by Vasic");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- enum PlayerInfo_data
- {
- pAkcenat
- }
- new PlayerInfo[MAX_PLAYERS][PlayerInfo_data];
- 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)
- {
- SendClientMessage(playerid, -1, "~ Akcenat Sistem ~ by Vasic "); //Ovo mozete obrisati :)
- return 1;
- }
- forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
- public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:posx, Float:posy, Float:posz;
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- foreach(Player,i)
- {
- if(IsPlayerConnected(i))
- {
- if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))
- {
- GetPlayerPos(i, posx, posy, posz);
- tempposx = (oldposx -posx);
- tempposy = (oldposy -posy);
- tempposz = (oldposz -posz);
- if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
- {
- SendClientMessage(i, col1, string);
- }
- else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
- {
- SendClientMessage(i, col2, string);
- }
- else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
- {
- SendClientMessage(i, col3, string);
- }
- else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
- {
- SendClientMessage(i, col4, string);
- }
- else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- SendClientMessage(i, col5, string);
- }
- } }
- }
- }
- return 1;
- }
- stock GetName(playerid)
- {
- new name[24];
- GetPlayerName(playerid,name,24);
- return name;
- }
- #define D_AKCENAT 1
- #define BELA 0xFFFFFFAA
- public OnPlayerText(playerid, text[])
- {
- if(PlayerInfo[playerid][pAkcenat] == 1)
- {
- new string[128];
- format(string, sizeof(string), "{FFFFFF}[SRPSKI]: %s kaze: %s", GetName(playerid), text);
- ProxDetector(20.0, playerid, string, BELA,BELA,BELA,BELA,BELA);
- return 0;
- }
- else if(PlayerInfo[playerid][pAkcenat] == 2)
- {
- new string2[128];
- format(string2, sizeof(string2), "{FFFFFF}[HRVATSKI]: %s kaze: %s", GetName(playerid), text);
- ProxDetector(20.0, playerid, string2, BELA,BELA,BELA,BELA,BELA);
- return 0;
- }
- else if(PlayerInfo[playerid][pAkcenat] == 3)
- {
- new string3[128];
- format(string3, sizeof(string3), "{FFFFFF}[BOSNJACKI]: %s kaze: %s", GetName(playerid), text);
- ProxDetector(20.0, playerid, string3, BELA,BELA,BELA,BELA,BELA);
- return 0;
- }
- else if(PlayerInfo[playerid][pAkcenat] == 4)
- {
- new string4[128];
- format(string4, sizeof(string4), "{FFFFFF}[MAKEDONSKI]: %s kaze: %s", GetName(playerid), text);
- ProxDetector(20.0, playerid, string4, BELA,BELA,BELA,BELA,BELA);
- return 0;
- }
- else if(PlayerInfo[playerid][pAkcenat] == 5)
- {
- new string5[128];
- format(string5, sizeof(string5), "{FFFFFF}[CRNOGORSKI]: %s kaze: %s", GetName(playerid), text);
- ProxDetector(20.0, playerid, string5, BELA,BELA,BELA,BELA,BELA);
- return 0;
- }
- else if(PlayerInfo[playerid][pAkcenat] == 6)
- {
- new string6[128];
- format(string6, sizeof(string6), "{FFFFFF}[ENGLESKI]: %s kaze: %s", GetName(playerid), text);
- ProxDetector(20.0, playerid, string6, BELA,BELA,BELA,BELA,BELA);
- return 0;
- }
- else if(PlayerInfo[playerid][pAkcenat] == 7)
- {
- new string6[128];
- format(string6, sizeof(string6), "{FFFFFF}[RUSKI]: %s kaze: %s", GetName(playerid), text);
- ProxDetector(20.0, playerid, string6, BELA,BELA,BELA,BELA,BELA);
- return 0;
- }
- else if(PlayerInfo[playerid][pAkcenat] == 8)
- {
- new string7[128];
- format(string7, sizeof(string7), "{FFFFFF}[MEKSICKI]: %s kaze: %s", GetName(playerid), text);
- ProxDetector(20.0, playerid, string7, BELA,BELA,BELA,BELA,BELA);
- return 0;
- }
- else if(PlayerInfo[playerid][pAkcenat] == 9)
- {
- new string8[128];
- format(string8, sizeof(string8), "{FFFFFF}[JAPANSKI]: %s kaze: %s", GetName(playerid), text);
- ProxDetector(20.0, playerid, string8, BELA,BELA,BELA,BELA,BELA);
- return 0;
- }
- else if(PlayerInfo[playerid][pAkcenat] == 10)
- {
- new string9[128];
- format(string9, sizeof(string9), "{FFFFFF}[NEMACKI]: %s kaze: %s", GetName(playerid), text);
- ProxDetector(20.0, playerid, string9, BELA,BELA,BELA,BELA,BELA);
- return 0;
- }
- else if(PlayerInfo[playerid][pAkcenat] == 11)
- {
- new string10[128];
- format(string10, sizeof(string10), "{FFFFFF}[AMERICKI]: %s kaze: %s", GetName(playerid), text);
- ProxDetector(20.0, playerid, string10, BELA,BELA,BELA,BELA,BELA);
- return 0;
- }
- else if(PlayerInfo[playerid][pAkcenat] == 12)
- {
- new string11[128];
- format(string11, sizeof(string11), "{FFFFFF}[BRITANSKI]: %s kaze: %s", GetName(playerid), text);
- ProxDetector(20.0, playerid, string11, BELA,BELA,BELA,BELA,BELA);
- return 0;
- }
- else if(PlayerInfo[playerid][pAkcenat] == 13)
- {
- new string10[128];
- format(string10, sizeof(string10), "{FFFFFF}[FRANCUSKI]: %s kaze: %s", GetName(playerid), text);
- ProxDetector(20.0, playerid, string10, BELA,BELA,BELA,BELA,BELA);
- return 0;
- }
- else if(PlayerInfo[playerid][pAkcenat] == 0)
- {
- new string10[128];
- format(string10, sizeof(string10), "%s kaze: %s", GetName(playerid), text);
- ProxDetector(20.0, playerid, string10, BELA,BELA,BELA,BELA,BELA);
- SendClientMessage(playerid, -1,"Preporucujemo vam da koristite akcenat, kako bi vas igraci prepoznali ~ /akcenat");
- return 0;
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == D_AKCENAT)
- {
- switch(listitem)
- {
- case 0:
- {
- PlayerInfo[playerid][pAkcenat] = 1;
- SendClientMessage(playerid, -1, "{FFFFFF}[IME:SERVERA]: Sada govorite Srpskim Akcentom!");
- }
- case 1:
- {
- PlayerInfo[playerid][pAkcenat] = 2;
- SendClientMessage(playerid, -1, "{FFFFFF}[IME:SERVERA]: Sada govorite Hrvatskim Akcentom!");
- }
- case 2:
- {
- PlayerInfo[playerid][pAkcenat] = 3;
- SendClientMessage(playerid, -1, "{FFFFFF}[IME:SERVERA]: Sada govorite Bosnjackim Akcentom!");
- }
- case 3:
- {
- PlayerInfo[playerid][pAkcenat] = 4;
- SendClientMessage(playerid, -1, "{FFFFFF}[IME:SERVERA]: Sada govorite Makedonskim Akcentom!");
- }
- case 4:
- {
- PlayerInfo[playerid][pAkcenat] = 5;
- SendClientMessage(playerid, -1, "{FFFFFF}[IME:SERVERA]: Sada govorite Crnogorskim Akcentom!");
- }
- case 5:
- {
- PlayerInfo[playerid][pAkcenat] = 6;
- SendClientMessage(playerid, -1, "{FFFFFF}[IME:SERVERA]: Sada govorite Engleskim Akcentom!");
- }
- case 6:
- {
- PlayerInfo[playerid][pAkcenat] = 7;
- SendClientMessage(playerid, -1, "{FFFFFF}[IME:SERVERA]: Sada govorite Ruskim Akcentom!");
- }
- case 7:
- {
- PlayerInfo[playerid][pAkcenat] = 8;
- SendClientMessage(playerid, -1,"{FFFFFF}[IME:SERVERA]: Sada govorite Meksickim Akcentom!");
- }
- case 8:
- {
- PlayerInfo[playerid][pAkcenat] = 9;
- SendClientMessage(playerid, -1, "{FFFFFF}[IME:SERVERA]: Sada govorite Japanskim Akcentom!");
- }
- case 9:
- {
- PlayerInfo[playerid][pAkcenat] = 10;
- SendClientMessage(playerid, -1, "{FFFFFF}[IME:SERVERA]: Sada govorite Nemackim Akcentom!");
- }
- case 10:
- {
- PlayerInfo[playerid][pAkcenat] = 11;
- SendClientMessage(playerid, -1, "{FFFFFF}[IME:SERVERA]: Sada govorite Americki Akcentom!");
- }
- case 11:
- {
- PlayerInfo[playerid][pAkcenat] = 12;
- SendClientMessage(playerid, -1, "{FFFFFF}[IME:SERVERA]: Sada govorite Britanskim Akcentom!");
- }
- case 12:
- {
- PlayerInfo[playerid][pAkcenat] = 13;
- SendClientMessage(playerid, -1, "{FFFFFF}[IME:SERVERA]: Sada govorite Francuskim Akcentom!");
- }
- case 13:
- {
- PlayerInfo[playerid][pAkcenat] = 0;
- SendClientMessage(playerid, -1, "{FFFFFF}[IME:SERVERA]: Sada govorite bez akcenta!");
- SendClientMessage(playerid, -1, "{FFFFFF}[IME:SERVERA]: Preporucujemo vam da koristite akcenat kako bi vas drugi igraci prepoznali! ~ /akcenat!");
- }
- }
- }
- return 1;
- }
- CMD:akcenat(playerid,params[])
- {
- ShowPlayerDialog(playerid, D_AKCENAT, DIALOG_STYLE_LIST, "Izaberi akcenat", "Srpski\nHrvatski\nBosnjacki\nMakedonski\nCrnogorski\nEngleski\nRuski\nMeksicki\nJapanski\nNemacki\nAmericki\nBritanski\nFrancuski\nNormalan", "Izaberi", "Izadji");
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement