Guest User

Untitled

a guest
Jul 10th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.76 KB | None | 0 0
  1. #include <a_samp>
  2. #include <dini>
  3. #include <dutils>
  4. #pragma tabsize 0
  5. new playersconnected=0;
  6. enum COMMANDS_MAIN
  7. {
  8. AKILL,
  9. ANNOUNCE,
  10. ARMOURALL,
  11. BAN,
  12. CARHP,
  13. EXPLODE,
  14. FLIP,
  15. GOTO,
  16. GETHERE,
  17. GIVEARMOUR,
  18. GIVEHEALTH,
  19. GIVEWEAPON,
  20. GOD,
  21. HEALALL,
  22. IMITATE,
  23. IP,
  24. KICK,
  25. MAXAMMO,
  26. PING,
  27. SETLEVEL,
  28. SETWANTED,
  29. TBAN,
  30. TIME,
  31. WEATHER
  32. }
  33. new gCommands[COMMANDS_MAIN];
  34. new gPlayerInfo[MAX_PLAYERS][PLAYER_MAIN];
  35. dcmd_akill(playerid, params[])
  36. {
  37. if(gPlayerInfo[playerid][PLAYER_LEVEL] < gCommands[AKILL])
  38. {
  39. new string[100];
  40. format(string, sizeof(string), "Ti moras da budes Administrator %d da bi koristio ovu komandu!", gCommands[AKILL]);
  41. return SendClientMessage(playerid, 0x0000BBAA, string);
  42. }
  43. else if(!strlen(params))
  44. return SendClientMessage(playerid, , "Koristi: /akill [id | name]");
  45. else
  46. {
  47. new id = (isNumeric(params)) ? strval(params) : GetPlayerId(params);
  48. if(IsPlayerConnected(id) && id != playerid)
  49. {
  50. SetPlayerHealth(id, 0.0);
  51. new string[128];
  52. format(string, sizeof(string), "Ubijen si od strane Administracije \'%s\'.", gPlayerInfo[playerid][PLAYER_NAME]);
  53. SendClientMessage(id, 0XA52A2AAA, string);
  54. format(string, sizeof(string), "Uspesno si ubio igraca /akill \'%s\'.", gPlayerInfo[id][PLAYER_NAME]);
  55. return SendClientMessage(playerid, 0x0000BBAA, string);
  56. }
  57. else
  58. return SendClientMessage(playerid, 0x0000BBAA, "ERROR: Nemozes ubiti sam sebe ili igraca koji je offline.");
  59. }
  60. dcmd_announce(playerid, params[])
  61. {
  62. if(gPlayerInfo[playerid][PLAYER_LEVEL] < gCommands[ANNOUNCE])
  63. {
  64. new string[100];
  65. format(string, sizeof(string), "Moras biti administrator da bi koristio tu komandu!", gCommands[ANNOUNCE]);
  66. return SendClientMessage(playerid, 0XA52A2AAA, string);
  67. }
  68. else if(!strlen(params))
  69. return SendClientMessage(playerid, 0XA52A2AAA, "Koristi: /announce [message]");
  70. else
  71. return GameTextForAll(params, gSettings[ANNOUNCE_SECONDS] * 1000, 3);
  72. }
  73. dcmd_register(playerid, params[])
  74. {
  75. if(gPlayerInfo[playerid][PLAYER_REGGED] == 1)
  76. return SendClientMessage(playerid, 0XA52A2AAA, "ERROR: Vec si registrovan!");
  77. else if(!params[0])
  78. return SendClientMessage(playerid, 0XA52A2AAA, "Koristi: /register [password]");
  79. else if(strlen(params) < gSettings[PASS_MIN] || strlen(params) > gSettings[PASS_MAX])
  80. {
  81. new string[128];
  82. format(string, sizeof(string), "ERROR: Password must be between %d and $d characters long!", gSettings[PASS_MIN], gSettings[PASS_MAX]);
  83. return SendClientMessage(playerid, 0XA52A2AAA, string);
  84. }
  85. else
  86. {
  87. new password = num_hash(params);
  88. gPlayerInfo[playerid][PLAYER_PASS] = password;
  89. gPlayerInfo[playerid][PLAYER_REGGED] = 1;
  90. gPlayerInfo[playerid][PLAYER_LOGGED] = 1;
  91. GetPlayerIp(playerid, gPlayerInfo[playerid][PLAYER_IP], 16);
  92. new string[128]; format(string, sizeof(string), "Uspesno si se registrovo na nalog sa lozinkom\'%s\'.Automatski si prijavljen.", params);
  93. return SendClientMessage(playerid, 0xFFFF00AA, string);
  94. }
  95. else if(strlen(params) < gSettings[PASS_MIN] || strlen(params) > gSettings[PASS_MAX])
  96. {
  97. new string[128];
  98. format(string, sizeof(string), "ERROR: Lozinka mora biti izmedju %d i %d brojeva!", gSettings[PASS_MIN], gSettings[PASS_MAX]);
  99. return SendClientMessage(playerid, 0xAFAFAFAA, string);
  100. }
  101. {
  102. dcmd_login(playerid, params[])
  103. if(gPlayerInfo[playerid][PLAYER_REGGED] != 1)
  104. return SendClientMessage(playerid, 0XA52A2AAA, "ERROR:Prvo se moras registrovati.Kucaj /register password.");
  105. else if(gPlayerInfo[playerid][PLAYER_LOGGED] == 1)
  106. return SendClientMessage(playerid, 0XA52A2AAA, "ERROR: Vec si se prijavio.");
  107. else if(!params[0])
  108. return SendClientMessage(playerid, 0XA52A2AAA, "Koristi: /login [password]");
  109. else
  110. {
  111. new password = num_hash(params);
  112. if(gPlayerInfo[playerid][PLAYER_PASS] == password)
  113. {
  114. gPlayerInfo[playerid][PLAYER_LOGGED] = 1;
  115. GetPlayerIp(playerid, gPlayerInfo[playerid][PLAYER_IP], 16);
  116. return SendClientMessage(playerid, 0XA52A2AAA, "You have successfully logged in to your account.");
  117. }
  118. else
  119. return SendClientMessage(playerid, 0XA52A2AAA, "ERROR: Incorrect password.");
  120. }
  121. {
  122. dcmd_logout(playerid, params[])
  123. ragma unused params
  124. if(gPlayerInfo[playerid][PLAYER_REGGED] != 1)
  125. return SendClientMessage(playerid, 0xAFAFAFAA,"ERROR:Prvo se moras prijaviti.Koristi /login password!");
  126. return SendClientMessage(playerid, 0XA52A2AAA, "ERROR: Vec si Loged out.");
  127. else
  128. {
  129. gPlayerInfo[playerid][PLAYER_LOGGED] = 0;
  130. return SendClientMessage(playerid, 0XA52A2AAA, "Uspesno si se odjavio sa Svog naloga.");
  131. }
  132.  
  133. {
  134. gPlayerInfo[playerid][PLAYER_LOGGED] = 0;
  135. }
  136. dcmd_password(playerid, params[])
  137. {
  138. if(gPlayerInfo[playerid][PLAYER_REGGED] != 1)
  139. return SendClientMessage(playerid, , "ERROR: Moras se prvo registrovati da bi uradio to.Kucaj /register password.");
  140. else if(gPlayerInfo[playerid][PLAYER_LOGGED] == 0)
  141. return SendClientMessage(playerid, , "ERROR: Prvo se moras prijaviti da bi uradio to.Kucaj /login password.");
  142. else
  143. {
  144. new tmp[30],
  145. tmp2[30],
  146. index;
  147. tmp = strtok(params, index);
  148. if(!strlen(tmp))
  149. return SendClientMessage(playerid, 0xAFAFAFAA, "Koristi: /password [password] [new password]");
  150. tmp2 = strtok(params, index);
  151. if(!strlen(tmp2))
  152. return SendClientMessage(playerid, 0xAFAFAFAA, "Koristi: /password [password] [new password]");
  153. new oldpassword = num_hash(tmp), newpassword = num_hash(tmp2);
  154. if(gPlayerInfo[playerid][PLAYER_PASS] == oldpassword)
  155. {
  156. if(oldpassword == newpassword)
  157. return SendClientMessage(playerid, 0xAFAFAFAA, "ERROR: Tvoja nova lozinka nesme biti kao tvoja stara lozinka.");
  158. else if(strlen(tmp2) < gSettings[PASS_MIN] || strlen(tmp2) > gSettings[PASS_MAX])
  159. {
  160. new string[100]; format(string, sizeof(ourstring), "ERROR: Tvoja nova lozinka mora biti duzine izmedju %d i %d!", gSettings[PASS_MIN], gSettings[PASS_MAX]);
  161. return SendClientMessage(playerid, 0xAFAFAFAA, string);
  162. }
  163. gPlayerInfo[playerid][PLAYER_PASS] = newpassword;
  164. new string[128]; format(string, sizeof(string), "Uspesno si promenio svoju lozinku od /'%s/' u /'%s/'.", tmp, tmp2);
  165. return SendClientMessage(playerid, 0xAFAFAFAA, string);
  166. }
  167. else
  168. return SendClientMessage(playerid, 0xAFAFAFAA, "ERROR: Pogresna Lozinka.");
  169. }
  170. }
  171.  
  172. #if defined FILTERSCRIPT
  173. #define COLOR_GREY 0xAFAFAFAA
  174. #define COLOR_GREEN 0x33AA33AA
  175. #define COLOR_RED 0xAA3333FF
  176. #define COLOR_YELLOW 0xFFFF00AA
  177. #define COLOR_WHITE 0xFFFFFFAA
  178. #define COLOR_BLUE 0x0000BBAA
  179. #define COLOR_LIGHTBLUE 0x33CCFFAA
  180. #define COLOR_ORANGE 0xFF9900AA
  181. #define COLOR_RED 0xAA3333AA
  182. #define COLOR_LIME 0x10F441AA
  183. #define COLOR_MAGENTA 0xFF00FFFF
  184. #define COLOR_NAVY 0x000080AA
  185. #define COLOR_AQUA 0xF0F8FFAA
  186. #define COLOR_CRIMSON 0xDC143CAA
  187. #define COLOR_FLBLUE 0x6495EDAA
  188. #define COLOR_BISQUE 0xFFE4C4AA
  189. #define COLOR_BLACK 0x000000AA
  190. #define COLOR_CHARTREUSE 0x7FFF00AA
  191. #define COLOR_BROWN 0XA52A2AAA
  192. #define COLOR_CORAL 0xFF7F50AA
  193. #define COLOR_GOLD 0xB8860BAA
  194. #define COLOR_GREENYELLOW 0xADFF2FAA
  195. #define COLOR_INDIGO 0x4B00B0AA
  196. #define COLOR_IVORY 0xFFFF82AA
  197. #define COLOR_LAWNGREEN 0x7CFC00AA
  198. #define COLOR_SEAGREEN 0x20B2AAAA
  199. #define COLOR_LIMEGREEN 0x32CD32AA
  200. #define COLOR_MIDNIGHTBLUE 0X191970AA
  201. #define COLOR_MAROON 0x800000AA
  202. #define COLOR_OLIVE 0x808000AA
  203. #define COLOR_ORANGERED 0xFF4500AA
  204. #define COLOR_PINK 0xFFC0CBAA
  205. #define COLOR_SEAGREEN 0x2E8B57AA
  206. #define COLOR_SPRINGGREEN 0x00FF7FAA
  207. #define COLOR_TOMATO 0xFF6347AA
  208. #define COLOR_YELLOWGREEN 0x9ACD32AA
  209. #define COLOR_MEDIUMAQUA 0x83BFBFAA
  210. #define COLOR_MEDIUMMAGENTA 0x8B008BAA
  211.  
  212. #define PlayerFile "AdminScript/Users/%s.ini"
  213. #define SettingFile "AdminScript/Settings/MainSettings.ini"
  214. #define CommandFile "AdminScript/Settings/Commands.ini"
  215. "AdminScript/Users"
  216. "AdminScript/Settings"
  217.  
  218. public OnFilterScriptInit()
  219. {
  220. print("\n****************************************" );
  221. print("* Admin Filterscript by Dejan_Bosnjak *");
  222. print("****************************************\n" );
  223. return 1;
  224. }
  225.  
  226. #if
  227. #endif
  228.  
  229. print("\n--------------------------------------");
  230. print(" Blank Filterscript by your name here");
  231. print("--------------------------------------\n");
  232. return 1;
  233. }
  234. {
  235. print("\n****************************************" );
  236. print("* Admin Filterscript by Dejan_Bosnjak *");
  237. print("****************************************\n" );
  238.  
  239. if(!fexist(SettingFile))
  240. {
  241. dini_Create(SettingFile);
  242. dini_IntSet(SettingFile, "PocketMoney", 3000);
  243. dini_IntSet(SettingFile, "JailCommands", 0);
  244. dini_IntSet(SettingFile, "AnnounceSeconds", 3);
  245. dini_IntSet(SettingFile, "PassMin", 3);
  246. dini_IntSet(SettingFile, "PassMax", 15);
  247. }
  248.  
  249. gSettings[POCKET_MONEY] = dini_Int(SettingFile, "PocketMoney");
  250. gSettings[JAIL_COMMANDS] = dini_Int(SettingFile, "JailCommands");
  251. gSettings[ANNOUNCE_SECONDS] = dini_Int(SettingFile, "AnnounceSeconds");
  252. gSettings[PASS_MIN] = dini_Int(SettingFile, "PassMin");
  253. gSettings[PASS_MAX] = dini_Int(SettingFile, "PassMax");
  254.  
  255. if(!fexist(CommandFile))
  256. {
  257. dini_Create(CommandFile);
  258. dini_IntSet(CommandFile, "Akill", 6);
  259. dini_IntSet(CommandFile, "Announce", 5);
  260. dini_IntSet(CommandFile, "Armourall", 3);
  261. dini_IntSet(CommandFile, "Ban", 9);
  262. dini_IntSet(CommandFile, "Carhp", 4);
  263. dini_IntSet(CommandFile, "Explode", 5);
  264. dini_IntSet(CommandFile, "Goto", 4);
  265. dini_IntSet(CommandFile, "Gethere", 5);
  266. dini_IntSet(CommandFile, "Givearmour", 6);
  267. dini_IntSet(CommandFile, "Givehealth", 6);
  268. dini_IntSet(CommandFile, "Giveweapon", 7);
  269. dini_IntSet(CommandFile, "God", 10);
  270. dini_IntSet(CommandFile, "Healall", 7);
  271. dini_IntSet(CommandFile, "Imitate", ;
  272. dini_IntSet(CommandFile, "Ip", 2);
  273. dini_IntSet(CommandFile, "Kick", 7);
  274. dini_IntSet(CommandFile, "Maxammo", ;
  275. dini_IntSet(CommandFile, "Ping", 1);
  276. dini_IntSet(CommandFile, "Setlevel", 10);
  277. dini_IntSet(CommandFile, "Setwanted", 6);
  278. dini_IntSet(CommandFile, "Tban", 9);
  279. dini_IntSet(CommandFile, "Time", 3);
  280. dini_IntSet(CommandFile, "Weather", 3);
  281. }
  282.  
  283. gCommands[AKILL] = dini_Int(CommandFile, "Akill");
  284. gCommands[ANNOUNCE] = dini_Int(CommandFile, "Announce");
  285. gCommands[ARMOURALL] = dini_Int(CommandFile, "Armourall");
  286. gCommands[BAN] = dini_Int(CommandFile, "Ban");
  287. gCommands[CARHP] = dini_Int(CommandFile, "Carhp");
  288. gCommands[EXPLODE] = dini_Int(CommandFile, "Explode");
  289. gCommands[GOTO] = dini_Int(CommandFile, "Goto");
  290. gCommands[GETHERE] = dini_Int(CommandFile, "Gethere");
  291. gCommands[GIVEARMOUR] = dini_Int(CommandFile, "Givearmour");
  292. gCommands[GIVEHEALTH] = dini_Int(CommandFile, "Givehealth");
  293. gCommands[GIVEWEAPON] = dini_Int(CommandFile, "Giveweapon");
  294. gCommands[GOD] = dini_Int(CommandFile, "God");
  295. gCommands[HEALALL] = dini_Int(CommandFile, "Healall");
  296. gCommands[IMITATE] = dini_Int(CommandFile, "Imitate");
  297. gCommands[IP] = dini_Int(CommandFile, "Ip");
  298. gCommands[KICK] = dini_Int(CommandFile, "Kick");
  299. gCommands[MAXAMMO] = dini_Int(CommandFile, "Maxammo");
  300. gCommands[SETLEVEL] = dini_Int(CommandFile, "Setlevel");
  301. gCommands[SETWANTED] = dini_Int(CommandFile, "Setwanted");
  302. gCommands[TBAN] = dini_Int(CommandFile, "Tban");
  303. gCommands[TIME] = dini_Int(CommandFile, "Time");
  304. gCommands[WEATHER] = dini_Int(CommandFile, "Weather");
  305.  
  306. return 1;
  307. }
  308.  
  309. public OnFilterScriptExit()
  310. {
  311. return 1;
  312. }
  313.  
  314. #else
  315.  
  316. main()
  317. {
  318. print("\n----------------------------------");
  319. print(" Blank Gamemode by your name here");
  320. print("----------------------------------\n");
  321. }
  322.  
  323. #endif
  324.  
  325. public OnGameModeInit()
  326. {
  327. // Don't use these lines if it's a filterscript
  328. SetGameModeText("Blank Script");
  329. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  330. return 1;
  331. }
  332.  
  333. public OnGameModeExit()
  334. {
  335. return 1;
  336. }
  337.  
  338. public OnPlayerRequestClass(playerid, classid)
  339. {
  340. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  341. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  342. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  343. return 1;
  344. }
  345.  
  346. public OnPlayerConnect(playerid)
  347. {
  348. SendClientMessage(playerid, 0xF00540FF, "Dobro dosli u Black Shadow Roleplay!");
  349. playersconnected++;
  350. //playersconnect += 1;
  351. new string[60];
  352. format(string, sizeof(string), "Ovde je trenutno %d igraca na serveru).",playersconnected);
  353. SendClientMessageToAll(0xF00540FF, string);
  354. }
  355. {
  356. new file[100],Name[MAX_PLAYER_NAME],Ip[16];
  357. GetPlayerName(playerid,Name,sizeof(Name));
  358. GetPlayerIp(playerid,Ip,sizeof(Ip));
  359. format(file,sizeof(file),PlayerFile,Name);
  360.  
  361. if(!dini_Exists(file))
  362. {
  363. dini_Create(file);
  364. dini_Set(file,"Name",Name);
  365. dini_Set(file,"Ip");
  366. dini_IntSet(file,"Registered",-1);
  367. dini_IntSet(file,"Password",0);
  368. dini_IntSet(file,"Level",0);
  369. dini_IntSet(file,"Wired",0);
  370. dini_IntSet(file,"Jailed",0);
  371. SendClientMessage(playerid, ,"Tvoje ime nije registrovano,Ukucajte /register da bi ste nastavili.");
  372. }
  373. strcat(gPlayerInfo[playerid][PLAYER_NAME], dini_Get(file,"Name"));
  374. strcat(gPlayerInfo[playerid][PLAYER_IP], dini_Get(file,"Ip"));
  375. gPlayerInfo[playerid][PLAYER_REGGED] = dini_Int(file,"Registered");
  376. gPlayerInfo[playerid][PLAYER_PASS] = dini_Int(file,"Password");
  377. gPlayerInfo[playerid][PLAYER_LEVEL] = dini_Int(file,"Level");
  378. gPlayerInfo[playerid][PLAYER_WIRED] = dini_Int(file,"Wired");
  379. gPlayerInfo[playerid][PLAYER_JAILED] = dini_Int(file,"Jailed");
  380. if(gPlayerInfo[playerid][PLAYER_REGGED] == 0) SendClientMessage(playerid,0xAA3333FF,"Tvoje ime je prepoznato ali nije registrovano kucajte /register da bi ste nastavili.");
  381. else if(gPlayerInfo[playerid][PLAYER_REGGED] == 1) SendClientMessage(playerid,0xAA3333FF,"Tvoje ime je registrovano.Molim vas kucajte /login da bi ste nastavili.");
  382. gPlayerInfo[playerid][PLAYER_REGGED] = 0;
  383. dcmd_register(playerid, params[])
  384. {
  385. if(gPlayerInfo[playerid][PLAYER_REGGED] == 1)
  386. return SendClientMessage(playerid, COLOUR_ORANGE, "ERROR: Vec si registrovan/a!");
  387. else if(!params[0])
  388. return SendClientMessage(playerid, COLOUR_ORANGE, "Koristi: /register [password]");
  389. /*else if(strlen(params) < gSettings[PASS_MIN] || strlen(params) > gSettings[PASS_MAX])
  390. {
  391. new string[128];
  392. format(string, sizeof(string), "ERROR: Password must be between %d and %d characters long!", gSettings[PASS_MIN], gSettings[PASS_MAX]);
  393. return SendClientMessage(playerid, COLOUR_ORANGE, string);
  394. }*/
  395. else
  396. {
  397. new password = num_hash(params);
  398. gPlayerInfo[playerid][PLAYER_PASS] = password;
  399. gPlayerInfo[playerid][PLAYER_REGGED] = 1;
  400. gPlayerInfo[playerid][PLAYER_LOGGED] = 1;
  401. GetPlayerIp(playerid, gPlayerInfo[playerid][PLAYER_IP], 16);
  402. new string[128]; format(string, sizeof(string), "Uspesno si se registrovo/irala sa sifrom /'%s/' Automatski si prijavljen/na na svoj nalog.", params);
  403. return SendClientMessage(playerid, 0x33AA33AA, string);
  404. }
  405. if(gPlayerInfo[playerid][PLAYER_REGGED] == 1)
  406. return SendClientMessage(playerid, COLOUR_ORANGE, "ERROR: Vec Si registrovan!");
  407. dcmd_login(playerid, params[])
  408. {
  409. if(gPlayerInfo[playerid][PLAYER_REGGED] != 1)
  410. return SendClientMessage(playerid, 0x33CCFFAA, "ERROR: Moras se prvo registrovati da bi to uradio.Kucaj /register [password].");
  411. else if(gPlayerInfo[playerid][PLAYER_LOGGED] == 1)
  412. return SendClientMessage(playerid, 0x33CCFFAA, "ERROR: Vec si se prijavio.");
  413. else if(!params[0])
  414. return SendClientMessage(playerid, 0x33CCFFAA, "Koristi: /login [password]");
  415. else
  416. {
  417. new password = num_hash(params);
  418. if(gPlayerInfo[playerid][PLAYER_PASS] == password)
  419. {
  420. gPlayerInfo[playerid][PLAYER_LOGGED] = 1;
  421. GetPlayerIp(playerid, gPlayerInfo[playerid][PLAYER_IP], 16);
  422. return SendClientMessage(playerid, 0x33CCFFAA, "Uspesno si se prijavio na svoj nalog.");
  423. }
  424. else
  425. return SendClientMessage(playerid, 0x33CCFFAA, "ERROR: Netacna Lozinka.");
  426. }
  427. }
  428. return 1;
  429. }
  430. return 1;
  431. public OnPlayerDisconnect(playerid, reason)
  432. {
  433. {
  434. new file[100];
  435. format(file,sizeof(file),PlayerFile,gPlayerInfo[playerid][PLAYER_NAME]);
  436. dini_Set(file,"Name",gPlayerInfo[playerid][PLAYER_NAME]);
  437. dini_Set(file,"Ip",gPlayerInfo[playerid][PLAYER_IP]);
  438. dini_IntSet(file,"Registered",gPlayerInfo[playerid][PLAYER_REGGED]);
  439. dini_IntSet(file,"Password",gPlayerInfo[playerid][PLAYER_PASS]);
  440. dini_IntSet(file,"Level",gPlayerInfo[playerid][PLAYER_LEVEL]);
  441. dini_IntSet(file,"Wired",gPlayerInfo[playerid][PLAYER_WIRED]);
  442. dini_IntSet(file,"Jailed",gPlayerInfo[playerid][PLAYER_JAILED]);
  443. gPlayerInfo[playerid][PLAYER_NAME] = 0;
  444. gPlayerInfo[playerid][PLAYER_IP] = 0;
  445. gPlayerInfo[playerid][PLAYER_REGGED] = 0;
  446. gPlayerInfo[playerid][PLAYER_LOGGED] = 0;
  447. gPlayerInfo[playerid][PLAYER_PASS] = 0;
  448. gPlayerInfo[playerid][PLAYER_LEVEL] = 0;
  449. gPlayerInfo[playerid][PLAYER_WIRED] = 0;
  450. gPlayerInfo[playerid][PLAYER_JAILED] = 0;
  451. return 1;
  452. playersconnected--;
  453. //playersconnect -= 1;
  454. new string[60];
  455. format(string, sizeof(string), "Ovde je trenutno %d igraca na serveru).",playersconnected);
  456. return 1;
  457. }
  458. public OnPlayerSpawn(playerid)
  459. {
  460. return 1;
  461. }
  462.  
  463. public OnPlayerDeath(playerid, killerid, reason)
  464. {
  465. return 1;
  466. }
  467.  
  468. public OnVehicleSpawn(vehicleid)
  469. {
  470. return 1;
  471. }
  472.  
  473. public OnVehicleDeath(vehicleid, killerid)
  474. {
  475. return 1;
  476. }
  477.  
  478. public OnPlayerText(playerid, text[])
  479. {
  480. return 1;
  481. }
  482.  
  483. public OnPlayerCommandText(playerid, cmdtext[])
  484. {
  485.  
  486. if (strcmp("/stuck", cmdtext, true, 5) == 0)
  487. {
  488. SendClientMessage(playerid, 0xF00540FF, "(INFO) Osvezeni ste ako budete imali jos problema obratite se administraciji!");
  489. //stuck comand
  490. return 1;
  491. }
  492. if (strcmp("/help", cmdtext, true, 5) == 0)
  493. {
  494. SendClientMessage(playerid, 0xF00540FF, "(INFO) Dobro Dosli U pomoc!");
  495. SendClientMessage(playerid, 0xF00540FF, "(INFO) Nadamo se da smo vam Pomogli!");
  496. // help command
  497. return 1;
  498. }
  499.  
  500. return 0;
  501. }
  502.  
  503. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  504. {
  505. return 1;
  506. }
  507.  
  508. public OnPlayerExitVehicle(playerid, vehicleid)
  509. {
  510. return 1;
  511. }
  512.  
  513. public OnPlayerStateChange(playerid, newstate, oldstate)
  514. {
  515. return 1;
  516. }
  517.  
  518. public OnPlayerEnterCheckpoint(playerid)
  519. {
  520. return 1;
  521. }
  522.  
  523. public OnPlayerLeaveCheckpoint(playerid)
  524. {
  525. return 1;
  526. }
  527.  
  528. public OnPlayerEnterRaceCheckpoint(playerid)
  529. {
  530. return 1;
  531. }
  532.  
  533. public OnPlayerLeaveRaceCheckpoint(playerid)
  534. {
  535. return 1;
  536. }
  537.  
  538. public OnRconCommand(cmd[])
  539. {
  540. return 1;
  541. }
  542.  
  543. public OnPlayerRequestSpawn(playerid)
  544. {
  545. return 1;
  546. }
  547.  
  548. public OnObjectMoved(objectid)
  549. {
  550. return 1;
  551. }
  552.  
  553. public OnPlayerObjectMoved(playerid, objectid)
  554. {
  555. return 1;
  556. }
  557.  
  558. public OnPlayerPickUpPickup(playerid, pickupid)
  559. {
  560. return 1;
  561. }
  562.  
  563. public OnVehicleMod(playerid, vehicleid, componentid)
  564. {
  565. return 1;
  566. }
  567.  
  568. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  569. {
  570. return 1;
  571. }
  572.  
  573. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  574. {
  575. return 1;
  576. }
  577.  
  578. public OnPlayerSelectedMenuRow(playerid, row)
  579. {
  580. return 1;
  581. }
  582.  
  583. public OnPlayerExitedMenu(playerid)
  584. {
  585. return 1;
  586. }
  587.  
  588. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  589. {
  590. return 1;
  591. }
  592.  
  593. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  594. {
  595. return 1;
  596. }
  597.  
  598. public OnRconLoginAttempt(ip[], password[], success)
  599. {
  600. return 1;
  601. }
  602.  
  603. public OnPlayerUpdate(playerid)
  604. {
  605. return 1;
  606. }
  607.  
  608. public OnPlayerStreamIn(playerid, forplayerid)
  609. {
  610. return 1;
  611. }
  612.  
  613. public OnPlayerStreamOut(playerid, forplayerid)
  614. {
  615. return 1;
  616. }
  617.  
  618. public OnVehicleStreamIn(vehicleid, forplayerid)
  619. {
  620. return 1;
  621. }
  622.  
  623. public OnVehicleStreamOut(vehicleid, forplayerid)
  624. {
  625. return 1;
  626. }
  627.  
  628. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  629. {
  630. return 1;
  631. }
  632.  
  633. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  634. {
  635. return 1;
  636. }
Advertisement
Add Comment
Please, Sign In to add comment