Guest User

Untitled

a guest
Apr 1st, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.64 KB | None | 0 0
  1. #include <a_samp>
  2. #include <YSI/y_ini>
  3.  
  4.  
  5. #pragma tabsize 0
  6. #pragma unused PlayerInfo
  7.  
  8.  
  9. #define FILTERSCRIPT
  10.  
  11. ////////////////////////////ADMIN VOZILA/////////////////////////////////
  12. new AdminCar[4]
  13. new Text3D:vehicle3Dtext[MAX_VEHICLES];
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22. ////////////////////////////ADMIN VOZILA/////////////////////////////////
  23.  
  24.  
  25.  
  26. ///////////////////////////////////////////////LOGIN/REGISTER//////////////////////////////
  27.  
  28. #define ADMIN_CARS3
  29. #define DIALOG_LOGIN1
  30. #define DIALOG_REGISTER2
  31. #define PATH "Korisnici/%s.ini"
  32.  
  33. enum pInfo
  34. {
  35. pPass,
  36. pMoney,
  37. pAdmin,
  38. }
  39.  
  40. new PlayerInfo[MAX_PLAYERS][pInfo];
  41.  
  42.  
  43. forward LoadUser_data(playerid,name[],value[]);
  44.  
  45.  
  46.  
  47. stock GetName(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); return name; }
  48.  
  49. stock UserPath(playerid)
  50. {
  51. new str[120];
  52. format(str,sizeof(str),PATH,GetName(playerid));
  53. return str;
  54. }
  55.  
  56. ///////////////////////////////////////////LOGIN/REGISTER///////////////////////////////
  57. #define COLOR_GREEN 0x33AA33AA
  58. #define COLOR_RED 0xFF0000AA
  59. #define COLOR_YELLOW 0xFFFF00AA
  60. #define COLOR_WHITE 0xFFFFFFAA
  61. #define DIALOG_REGISTER 1
  62. #define DIALOG_LOGIN 2
  63. #define DIALOG_SUCCESS_1 3
  64. #define DIALOG_SUCCESS_2 4
  65. #define FILTERSCRIPT
  66. #define COLOR_GREY 0xAFAFAFAA
  67. #define COLOR_GREEN 0x33AA33AA
  68. #define COLOR_YELLOW 0xFFFF00AA
  69. #define COLOR_WHITE 0xFFFFFFAA
  70. #define COLOR_BLUE 0x0000BBAA
  71. #define COLOR_LIGHTBLUE 0x33CCFFAA
  72. #define COLOR_ORANGE 0xFF9900AA
  73. #define COLOR_LIME 0x10F441AA
  74. #define COLOR_MAGENTA 0xFF00FFFF
  75. #define COLOR_NAVY 0x000080AA
  76. #define COLOR_AQUA 0xF0F8FFAA
  77. #define COLOR_CRIMSON 0xDC143CAA
  78. #define COLOR_FLBLUE 0x6495EDAA
  79. #define COLOR_BISQUE 0xFFE4C4AA
  80. #define COLOR_BLACK 0x000000AA
  81. #define COLOR_CHARTREUSE 0x7FFF00AA
  82. #define COLOR_BROWN 0XA52A2AAA
  83. #define COLOR_GREENYELLOW 0xADFF2FAA
  84. #define COLOR_INDIGO 0x4B00B0AA
  85. #define COLOR_IVORY 0xFFFF82AA
  86. #define COLOR_LAWNGREEN 0x7CFC00AA
  87. #define COLOR_SEAGREEN 0x20B2AAAA
  88. #define COLOR_MIDNIGHTBLUE 0X191970AA
  89. #define COLOR_MAROON 0x800000AA
  90. #define COLOR_OLIVE 0x808000AA
  91. #define COLOR_ORANGERED 0xFF4500AA
  92. #define COLOR_PINK 0xFFC0CBAA // - Light light pink
  93. #define COLOR_TOMATO 0xFF6347AA // - Tomato >:/ sounds wrong lol... well... :P
  94. #define COLOR_YELLOWGREEN 0x9ACD32AA //- like military green
  95. #define COLOR_MEDIUMAQUA 0x83BFBFAA
  96. #define COLOR_MEDIUMMAGENTA 0x8B008BAA // dark magenta ^^
  97. #define STREAMER_ENABLED true //uses a streamer (true/false)
  98. #define STREAMER_ADD CreateDynamicObject //put here at the value the command your streamer uses to make an object (CreateDynamicObject by default)
  99. #define STREAMER_REMOVE DestroyDynamicObject //put here at the value the command your streamer uses to remove an object (STREAMER_REMOVE by default)
  100. #if STREAMER_ENABLED == true //ignore this line
  101. #endif
  102. // ANDERE DEFINATIONEN //
  103.  
  104. #define cashdefine 10000
  105. #define zehnminutentag 5000
  106.  
  107.  
  108. // FORWARDEN //
  109.  
  110. forward Health(healthid);
  111. forward Armour(armourid);
  112. forward KillPlayer(killid);
  113. forward HPforall();
  114. forward Freeze(freezeid);
  115. forward Unfreeze(unfreezeid);
  116. forward Freezeall();
  117. forward Unfreezeall();
  118. forward Kickplayer(kickid);
  119. forward Banplayer(banid);
  120. forward Givecash(cashid);
  121. forward zehnminutentagpayday();
  122.  
  123. public OnGameModeInit()
  124. {
  125. // Don't use these lines if it's a filterscript
  126. SetGameModeText("Test v1.0");
  127. AddPlayerClass(299,1642.1802,-2333.3347,13.5469,4.5224,0,0,0,0,0,0); // spawnnnnnnnnnn
  128. ////////////////////////////////////SPAWN///////////////////////////////////////////
  129. CreateObject(3851, 1574.25867, -2326.12134, 14.59524, 0.00000, 0.00000, 89.90109);
  130. CreateObject(3851, 1585.54199, -2326.04883, 14.69524, 0.00000, 0.00000, 89.90109);
  131. CreateObject(3851, 1596.63611, -2326.09131, 14.69524, 0.00000, 0.00000, 89.90109);
  132. CreateObject(3851, 1607.28589, -2326.11719, 14.59524, 0.00000, 0.00000, 89.90109);
  133. CreateObject(3851, 1618.43689, -2326.15356, 14.74844, 0.00000, 0.00000, 89.60358);
  134. CreateObject(3851, 1629.68188, -2326.15234, 14.74844, 0.00000, 0.00000, 89.60358);
  135. CreateObject(3851, 1640.42419, -2325.85571, 14.54412, 0.00000, 0.00000, 93.91604);
  136. CreateObject(3851, 1645.99036, -2331.11963, 14.54412, 0.00000, 0.00000, 0.07232);
  137. CreateObject(955, 1567.44214, -2319.57935, 12.96200, 0.00000, 0.00000, 266.47614);
  138. CreateObject(956, 1567.49658, -2321.16504, 12.89225, 0.00000, 0.00000, 266.00000);
  139. CreateObject(910, 1588.58118, -2336.90674, 13.77800, 0.00000, 0.00000, 264.71500);
  140. CreateObject(625, 1590.83875, -2326.42163, 12.40858, 0.00000, 0.00000, 0.81311);
  141. CreateObject(625, 1598.49011, -2326.77783, 12.40858, 0.00000, 0.00000, 0.81311);
  142. CreateObject(625, 1598.49011, -2326.77783, 12.40858, 0.00000, 0.00000, 0.81311);
  143. CreateObject(625, 1605.50244, -2326.62720, 12.36373, 0.00000, 0.00000, 359.89999);
  144. CreateObject(625, 1615.50757, -2327.09448, 12.36373, 0.00000, 0.00000, 359.89999);
  145. CreateObject(1597, 1627.77234, -2328.56934, 14.81880, 0.00000, 0.00000, 90.06358);
  146. CreateObject(1597, 1643.98584, -2331.17798, 14.81880, 0.00000, 0.00000, 0.98995);
  147. CreateObject(3851, 1574.16772, -2337.30762, 14.58909, 0.00000, 0.00000, 89.90109);
  148. CreateObject(3851, 1585.20361, -2337.94312, 14.58909, 0.00000, 0.00000, 83.77333);
  149. CreateObject(7093, 1566.11499, -2334.02832, 22.25056, 0.00000, 0.00000, 358.63846);
  150. CreateObject(19133, 1642.40320, -2334.02905, 13.39395, 0.00000, 0.00000, 270.79541);
  151. //////////////////////////////////ADMIN VOZILA///////////////////////////////////
  152. AdminCar[0] = AddStaticVehicle(522,285.0459,2549.9075,16.3883,0.0726,6,25); // ADMIN
  153. AdminCar[1] = AddStaticVehicle(522,285.0578,2541.6597,16.3945,0.0728,6,25); // ADMIN2
  154. AdminCar[2] = AddStaticVehicle(522,294.1457,2549.5134,16.3766,351.0175,6,25); // ADMIN3
  155. AdminCar[3] = AddStaticVehicle(522,293.2603,2539.7124,16.3935,2.3056,6,25); // ADMIN4
  156. CreateDynamic3DTextLabel(""COLOR_BLACK"[ Admin Vozilo]",-1,0.0,0.0,0.0,25,INVALID_PLAYER_ID, AdminCar[0], 0);
  157. CreateDynamic3DTextLabel(""COLOR_BLACK"[ Admin Vozilo]",-1,0.0,0.0,0.0,25,INVALID_PLAYER_ID, AdminCar[1], 0);
  158. CreateDynamic3DTextLabel(""COLOR_BLACK"[ Admin Vozilo]",-1,0.0,0.0,0.0,25,INVALID_PLAYER_ID, AdminCar[2], 0);
  159. CreateDynamic3DTextLabel(""COLOR_BLACK"[ Admin Vozilo]",-1,0.0,0.0,0.0,25,INVALID_PLAYER_ID, AdminCar[3], 0);
  160. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[0]],AdminCar[0], 0.0, 0.0, 0.7);
  161. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[1]],AdminCar[1], 0.0, 0.0, 0.7);
  162. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[2]],AdminCar[2], 0.0, 0.0, 0.7);
  163. Attach3DTextLabelToVehicle(vehicle3Dtext[AdminCar[3]],AdminCar[3], 0.0, 0.0, 0.7);
  164. return 1;
  165. }
  166.  
  167. public OnFilterScriptInit()
  168. {
  169.  
  170.  
  171. return 1;
  172. }
  173. public OnGameModeExit()
  174. {
  175. Delete3DTextLabel(vehicle3DText[AdminCar[0]]);
  176. Delete3DTextLabel(vehicle3DText[AdminCar[1]]);
  177. Delete3DTextLabel(vehicle3DText[AdminCar[2]]);
  178. Delete3DTextLabel(vehicle3DText[AdminCar[3]]);
  179. return 1;
  180. }
  181.  
  182. strtok(const string[], &index)
  183. {
  184. new length = strlen(string);
  185. while ((index < length) && (string[index] <= ' '))
  186. {
  187. index++;
  188. }
  189.  
  190. new offset = index;
  191. new result[20];
  192. while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
  193. {
  194. result[index - offset] = string[index];
  195. index++;
  196. }
  197. result[index - offset] = EOS;
  198. return result;
  199. }
  200.  
  201. public OnPlayerConnect(playerid)
  202. {
  203. SendClientMessage(playerid,COLOR_WHITE,"__________________________________________________");
  204. SendClientMessage(playerid,COLOR_WHITE," *** Dobro dosli Na TEST RP server***");
  205. SendClientMessage(playerid,COLOR_WHITE," *** Forum: www.uskoro.com***");
  206. SendClientMessage(playerid,COLOR_WHITE," *** Owner: Arnes ***");
  207. SendClientMessage(playerid,COLOR_WHITE,"__________________________________________________");
  208. return 1;
  209. }
  210.  
  211. public OnPlayerCommandText(playerid, cmdtext[])
  212. {
  213. new cmd[256];
  214. new idx;
  215.  
  216. cmd = strtok(cmdtext, idx);
  217.  
  218. if(strcmp(cmd, "/acmd", true) == 0)
  219. {
  220. if(IsPlayerAdmin(playerid))
  221. {
  222. SendClientMessage(playerid, COLOR_RED, "*** Admin Komande ");
  223. SendClientMessage(playerid, COLOR_RED, "/health [ID] da napunis health nekome");
  224. SendClientMessage(playerid, COLOR_RED, "/armour [ID] da das pancir nekome");
  225. SendClientMessage(playerid, COLOR_RED, "/kill [ID] da ubijes nekoga");
  226. SendClientMessage(playerid, COLOR_RED, "/hpforall da izlecis sve");
  227. SendClientMessage(playerid, COLOR_RED, "/freeze [ID] de frizujes nekoga");
  228. SendClientMessage(playerid, COLOR_RED, "/unfreeze [ID] da un-freezujes nekoga");
  229. SendClientMessage(playerid, COLOR_RED, "/freezeall da freezas sve");
  230. SendClientMessage(playerid, COLOR_RED, "/kick [ID] Da kikujes igraca");
  231. SendClientMessage(playerid, COLOR_RED, "/ban [ID] Da banujes igraca");
  232. SendClientMessage(playerid, COLOR_RED, "/dajnovac [ID] da das novac igracu");
  233. SendClientMessage(playerid, COLOR_RED, "*** By: Arnes ");
  234. }
  235. else
  236. {
  237. SendClientMessage(playerid,COLOR_WHITE,"*** Da bih pristupio moras biti rcon Admin!");
  238. }
  239. return 1;
  240. }
  241.  
  242.  
  243. if(strcmp(cmd, "/health", true) == 0)
  244. {
  245. if (IsPlayerAdmin(playerid))
  246. {
  247. new giveplayerid;
  248. new tmp[256];
  249. tmp = strtok(cmdtext, idx);
  250. if(!strlen(tmp)) {
  251. SendClientMessage(playerid, COLOR_RED, "Obavijest: /health [Player ID]");
  252. return 1;
  253. }
  254. giveplayerid = strval(tmp);
  255. if (IsPlayerConnected(giveplayerid))
  256. {
  257. Health(giveplayerid);
  258. }
  259. }
  260. else
  261. {
  262. SendClientMessage(playerid,COLOR_GREY,"*** Niste ovlasceni da koristite ovu komandu!");
  263. }
  264. return 1;
  265. }
  266.  
  267. if(strcmp(cmd, "/armour", true) == 0)
  268. {
  269. if (IsPlayerAdmin(playerid))
  270. {
  271. new giveplayerid;
  272. new tmp[256];
  273. tmp = strtok(cmdtext, idx);
  274. if(!strlen(tmp)) {
  275. SendClientMessage(playerid, COLOR_RED, "Obavjest: /armour [Player ID]");
  276. return 1;
  277. }
  278. giveplayerid = strval(tmp);
  279. if (IsPlayerConnected(giveplayerid))
  280. {
  281. Armour(giveplayerid);
  282. }
  283. }
  284. else
  285. {
  286. SendClientMessage(playerid,COLOR_GREY,"*** Niste ovlasceni da koristite ovu komandu!");
  287. }
  288. return 1;
  289. }
  290.  
  291. if(strcmp(cmd, "/kill", true) == 0)
  292. {
  293. if (IsPlayerAdmin(playerid))
  294. {
  295. new giveplayerid;
  296. new tmp[256];
  297. tmp = strtok(cmdtext, idx);
  298. if(!strlen(tmp)) {
  299. SendClientMessage(playerid, COLOR_RED, "Obavjest: /kill [Player ID]");
  300. return 1;
  301. }
  302. giveplayerid = strval(tmp);
  303. if (IsPlayerConnected(giveplayerid))
  304. {
  305. KillPlayer(giveplayerid);
  306. }
  307. }
  308. else
  309. {
  310. SendClientMessage(playerid,COLOR_GREY,"*** Niste ovlasceni da koristite ovu komandu!");
  311. }
  312. return 1;
  313. }
  314.  
  315. if(strcmp(cmd, "/hpforall", true) == 0)
  316. {
  317. if (IsPlayerAdmin(playerid))
  318. {
  319. new giveplayerid;
  320. new tmp[256];
  321. tmp = strtok(cmdtext, idx);
  322. if(!strlen(tmp)) {
  323. SendClientMessage(playerid, COLOR_RED, "Izlecio si sve");
  324. return 1;
  325. }
  326. giveplayerid = strval(tmp);
  327. if (IsPlayerConnected(giveplayerid))
  328. {
  329. HPforall();
  330. }
  331. }
  332. else
  333. {
  334. SendClientMessage(playerid,COLOR_GREY,"*** Niste ovlasceni da koristite ovu komandu!");
  335. }
  336. return 1;
  337. }
  338.  
  339. if(strcmp(cmd, "/freeze", true) == 0)
  340. {
  341. if (IsPlayerAdmin(playerid))
  342. {
  343. new giveplayerid;
  344. new tmp[256];
  345. tmp = strtok(cmdtext, idx);
  346. if(!strlen(tmp)) {
  347. SendClientMessage(playerid, COLOR_RED, "Obavjest: /freeze [Playerid]");
  348. return 1;
  349. }
  350. giveplayerid = strval(tmp);
  351. if (IsPlayerConnected(giveplayerid))
  352. {
  353. Freeze(giveplayerid);
  354. }
  355. }
  356. else
  357. {
  358. SendClientMessage(playerid,COLOR_GREY,"*** Niste ovlasceni da koristite ovu komandu!");
  359. }
  360. return 1;
  361. }
  362.  
  363. if(strcmp(cmd, "/unfreeze", true) == 0)
  364. {
  365. if (IsPlayerAdmin(playerid))
  366. {
  367. new giveplayerid;
  368. new tmp[256];
  369. tmp = strtok(cmdtext, idx);
  370. if(!strlen(tmp)) {
  371. SendClientMessage(playerid, COLOR_RED, "Obavjest: /unfreeze [Playerid]");
  372. return 1;
  373. }
  374. giveplayerid = strval(tmp);
  375. if (IsPlayerConnected(giveplayerid))
  376. {
  377. Unfreeze(giveplayerid);
  378. }
  379. }
  380. else
  381. {
  382. SendClientMessage(playerid,COLOR_GREY,"*** Niste ovlasceni da koristite ovu komandu!");
  383. }
  384. return 1;
  385. }
  386.  
  387. if(strcmp(cmd, "/freezeall", true) == 0)
  388. {
  389. if (IsPlayerAdmin(playerid))
  390. {
  391. Freezeall();
  392. SendClientMessageToAll(COLOR_RED,"*** Freeze si sve ");
  393. }
  394. else
  395. {
  396. SendClientMessage(playerid,COLOR_GREY,"*** Niste ovlasceni da koristite ovu komandu!");
  397. }
  398. return 1;
  399. }
  400.  
  401. if(strcmp(cmd, "/unfreezeall", true) == 0)
  402. {
  403. if (IsPlayerAdmin(playerid))
  404. {
  405. Unfreezeall();
  406. SendClientMessageToAll(COLOR_RED,"***Unfreeze si sve");
  407. }
  408. else
  409. {
  410. SendClientMessage(playerid,COLOR_GREY,"*** Niste ovlasceni da koristite ovu komandu!");
  411. }
  412. return 1;
  413. }
  414.  
  415. if(strcmp(cmd, "/kick", true) == 0)
  416. {
  417. if (IsPlayerAdmin(playerid))
  418. {
  419. new giveplayerid;
  420. new tmp[256];
  421. tmp = strtok(cmdtext, idx);
  422. if(!strlen(tmp)) {
  423. SendClientMessage(playerid, COLOR_RED, "Obavjest: /kick [Player ID]");
  424. return 1;
  425. }
  426. giveplayerid = strval(tmp);
  427. if (IsPlayerConnected(giveplayerid))
  428. {
  429. Kickplayer(giveplayerid);
  430. }
  431. }
  432. else
  433. {
  434. SendClientMessage(playerid,COLOR_GREY,"*** Niste ovlasceni da koristite ovu komandu!");
  435. }
  436. return 1;
  437. }
  438.  
  439. if(strcmp(cmd, "/ban", true) == 0)
  440. {
  441. if (IsPlayerAdmin(playerid))
  442. {
  443. new giveplayerid;
  444. new tmp[256];
  445. tmp = strtok(cmdtext, idx);
  446. if(!strlen(tmp)) {
  447. SendClientMessage(playerid, COLOR_RED, "Obavjest: /ban [Player ID]");
  448. return 1;
  449. }
  450. giveplayerid = strval(tmp);
  451. if (IsPlayerConnected(giveplayerid))
  452. {
  453. Banplayer(giveplayerid);
  454. }
  455. }
  456. else
  457. {
  458. SendClientMessage(playerid,COLOR_GREY,"*** Niste ovlasceni da koristite ovu komandu!");
  459. }
  460. return 1;
  461. }
  462.  
  463. if(strcmp(cmd, "/dajnovac", true) == 0)
  464. {
  465. if (IsPlayerAdmin(playerid))
  466. {
  467. new giveplayerid;
  468. new tmp[256];
  469. tmp = strtok(cmdtext, idx);
  470. if(!strlen(tmp)) {
  471. SendClientMessage(playerid, COLOR_RED, "Obavjest: /dajnovac [Player ID]");
  472. return 1;
  473. }
  474. giveplayerid = strval(tmp);
  475. if (IsPlayerConnected(giveplayerid))
  476. {
  477. Givecash(giveplayerid);
  478. }
  479. }
  480. else
  481. {
  482. SendClientMessage(playerid,COLOR_GREY,"*** Niste ovlasceni da koristite ovu komandu!");
  483. }
  484. return 1;
  485. }
  486.  
  487. return 0;
  488. }
  489.  
  490. public Health(healthid)
  491. {
  492. if (IsPlayerConnected(healthid))
  493. {
  494. SetPlayerHealth(healthid,100.0);
  495. SendClientMessage(healthid,COLOR_RED,"*** Napunio si health igracu");
  496. }
  497. return 1;
  498. }
  499.  
  500. public Armour(armourid)
  501. {
  502. if (IsPlayerConnected(armourid))
  503. {
  504. SetPlayerArmour(armourid,100.0);
  505. SendClientMessage(armourid,COLOR_RED,"*** Napunio si pancir igracu");
  506. }
  507. return 1;
  508. }
  509.  
  510. public KillPlayer(killid)
  511. {
  512. if (IsPlayerConnected(killid))
  513. {
  514. SetPlayerArmour(killid,0.0);
  515. SetPlayerHealth(killid,0.0);
  516. SendClientMessage(killid,COLOR_RED,"*** Ubio si igraca");
  517. }
  518. return 1;
  519. }
  520.  
  521. public HPforall()
  522. {
  523. for (new i = 0, j = MAX_PLAYERS; i < j; i ++)
  524. {
  525. if (IsPlayerConnected(i))
  526. {
  527. SetPlayerHealth(i,100.0);
  528. SetPlayerArmour(i,100.0);
  529. }
  530. }
  531. }
  532.  
  533. public Freeze(freezeid)
  534. {
  535. if (IsPlayerConnected(freezeid))
  536. {
  537. TogglePlayerControllable(freezeid,0);
  538. SendClientMessage(freezeid,COLOR_RED,"*** Freeze-ovao si igraca");
  539. }
  540. return 1;
  541. }
  542.  
  543. public Unfreeze(unfreezeid)
  544. {
  545. if (IsPlayerConnected(unfreezeid))
  546. {
  547. TogglePlayerControllable(unfreezeid,1);
  548. SendClientMessage(unfreezeid,COLOR_RED,"*** Un-freezeovao si igraca ");
  549. }
  550. return 1;
  551. }
  552.  
  553.  
  554. public Freezeall()
  555. {
  556. for (new i = 0, j = MAX_PLAYERS; i < j; i ++)
  557. {
  558. if (IsPlayerConnected(i))
  559. {
  560. TogglePlayerControllable(i,0);
  561. }
  562. }
  563. }
  564.  
  565. public Unfreezeall()
  566. {
  567. for (new i = 0, j = MAX_PLAYERS; i < j; i ++)
  568. {
  569. if (IsPlayerConnected(i))
  570. {
  571. TogglePlayerControllable(i,1);
  572. }
  573. }
  574. }
  575.  
  576.  
  577. public Kickplayer(kickid)
  578. {
  579. if (IsPlayerConnected(kickid))
  580. {
  581. SendClientMessage(kickid,COLOR_RED,"*** Kikovao si igraca ");
  582. Kick(kickid);
  583. }
  584. return 1;
  585. }
  586.  
  587. public Banplayer(banid)
  588. {
  589. if (IsPlayerConnected(banid))
  590. {
  591. SendClientMessage(banid,COLOR_BLUE,"*** BANOVAO SI IGRACA ***");
  592. Ban(banid);
  593. }
  594. return 1;
  595. }
  596.  
  597. public Givecash(cashid)
  598. {
  599. if(IsPlayerConnected(cashid))
  600. {
  601. GivePlayerMoney(cashid,cashdefine); // Oben bei #define cashdefine könnt ihr die zahl 10000 ändern das ist nähmlich die summe des geldes
  602. SendClientMessage(cashid,COLOR_RED,"*** Dao si igracu 10.000 $"); // die 10000$ könnt ihr denn ändern wenn ihr das geld oben geändert habt
  603. }
  604. return 1;
  605. }
  606. /////////////////////////////////////JETPACK/////////////////////////////////////////////////////////////////
  607.  
  608. //////////////////////////////////////JETPACK///////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment