Guest User

Untitled

a guest
May 24th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 162.43 KB | None | 0 0
  1. //==============================================================================
  2. dcmd_crimes(playerid, params[])
  3. {
  4. #pragma unused params
  5.  
  6. if (PlayerInfo[playerid][pSpawn] == 1){
  7.  
  8. if (PlayerInfo[playerid][pTeam] == TEAM_CIVILIAN){
  9.  
  10. new string[256],Wanted[128],idx,giveplayerid,tmp[256];
  11.  
  12.  
  13. tmp = strtok(params, idx);
  14. if(!strlen(tmp))
  15. {
  16. //SendClientMessage(playerid, COLOR_ERROR, "USAGE: /crimes (Name/Id).");
  17. //return 1;
  18. giveplayerid = playerid;
  19. }else{
  20.  
  21. if(!isNumeric(tmp))
  22. {
  23. giveplayerid = ReturnUser(playerid, tmp);
  24. if(giveplayerid == INVALID_PLAYER_ID)
  25. {
  26. return 1;
  27. }
  28. }
  29. else
  30. {
  31. giveplayerid = strval(tmp);
  32. if(!IsPlayerConnected(giveplayerid))
  33. {
  34. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  35. SendClientMessage(playerid, COLOR_ERROR, string);
  36. return 1;
  37. }
  38. }
  39. }
  40.  
  41. switch (PlayerInfo[giveplayerid][pWantedLevel])
  42. {
  43. case 0:format(string, sizeof(string), "Wated Level %d - Innocent Civilian",PlayerInfo[giveplayerid][pWantedLevel]);
  44. case 1..5:format(string, sizeof(string), "~y~Wated Level %d",PlayerInfo[giveplayerid][pWantedLevel]);
  45. case 6..10:format(string, sizeof(string), "~r~Wated Level %d",PlayerInfo[giveplayerid][pWantedLevel]);
  46. }
  47. strmid(Wanted, string, 0, strlen(string), 256);
  48.  
  49. if(PlayerCrimeListRowNo[giveplayerid] > 0)
  50. {
  51.  
  52. TextDrawHideForPlayer(playerid, Menu_Title[playerid]);
  53. TextDrawHideForPlayer(playerid, Menu_Stats[playerid]);
  54. TextDrawHideForPlayer(playerid, Menu_End[playerid]);
  55. for(new r = 0; r < MAX_TEXTDRAW_ROWS; r++)
  56. {
  57. TextDrawHideForPlayer(playerid, Menu_Column1[playerid][r]);
  58. TextDrawHideForPlayer(playerid, Menu_Column2[playerid][r]);
  59. }
  60.  
  61. ShowTextDrawMenu(playerid, TD_MENU_INFO,"~g~Crime History", PlayerCrimeListRowNo[giveplayerid] + 5, 0);
  62. //ShowTextDrawMenuItems(playerid, 0, " ", " ", " ",0);
  63. format(string, sizeof(string), "%s (%d)~n~%s",PlayerInfo[giveplayerid][pName],giveplayerid,Wanted);
  64. ShowTextDrawMenuItems(playerid, 0, string, " ", " ",0);
  65. ShowTextDrawMenuItems(playerid, 1, " ", " ", " ",0);
  66. ShowTextDrawMenuItems(playerid, 2, " ", " ", " ",0);
  67. ShowTextDrawMenuItems(playerid, 3, " ", " ", " ",0);
  68. //ShowTextDrawMenuItems(playerid, 3, " ", Line[0], LineEx[0],0);
  69. ShowTextDrawMenuItems(playerid, 4, " ", PlayerCrimeList[playerid][1], " ",0);
  70. ShowTextDrawMenuItems(playerid, 5, " ", PlayerCrimeList[playerid][2], " ",0);
  71. ShowTextDrawMenuItems(playerid, 6, " ", PlayerCrimeList[playerid][3], " ",0);
  72. ShowTextDrawMenuItems(playerid, 7, " ", PlayerCrimeList[playerid][4], " ",0);
  73. ShowTextDrawMenuItems(playerid, 8, " ", PlayerCrimeList[playerid][5], " ",0);
  74. ShowTextDrawMenuItems(playerid, 9, " ", PlayerCrimeList[playerid][6], " ",0);
  75. ShowTextDrawMenuItems(playerid, 10, " ", PlayerCrimeList[playerid][7], " ",0);
  76. ShowTextDrawMenuItems(playerid, 11, " ", PlayerCrimeList[playerid][8], " ",0);
  77. ShowTextDrawMenuItems(playerid, 12, " ", PlayerCrimeList[playerid][9], " ",0);
  78.  
  79. }else{
  80.  
  81. format(string, sizeof(string), "No Crimes Committed By %s (%d).",PlayerInfo[giveplayerid][pName],giveplayerid);
  82. SendClientMessage(playerid, COLOR_ERROR, string);
  83.  
  84. }
  85.  
  86.  
  87.  
  88. }else{
  89. SendClientMessage(playerid, COLOR_ERROR, "Only Civilians Can Use This Command.");
  90. }
  91.  
  92. }else{
  93. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You're Dead.");
  94. }
  95.  
  96. return 1;
  97. }
  98. //==============================================================================
  99. dcmd_timeme(playerid,params[])
  100. {
  101. #pragma unused params
  102. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0)
  103. {
  104.  
  105. if (PlayerInfo[playerid][pSpawn] == 1)
  106. {
  107.  
  108. if(PlayerInfo[playerid][pTimeMe] == 0)
  109. {
  110. PlayerInfo[playerid][pTimeMeMinute] = 0;
  111. PlayerInfo[playerid][pTimeMeHour] = 0;
  112. PlayerInfo[playerid][pTimeMe] = 1;
  113. TextDrawShowForPlayer(playerid, StatsDisplay[playerid]);
  114. SendClientMessage(playerid, COLOR_ADMIN, "TIMER ON.");
  115. }else{
  116. PlayerInfo[playerid][pTimeMe] = 0;
  117. TextDrawHideForPlayer(playerid, StatsDisplay[playerid]);
  118. SendClientMessage(playerid, COLOR_ADMIN, "TIMER OFF.");
  119. }
  120.  
  121. }else{
  122. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You Are Dead.");
  123. }
  124.  
  125. }else{
  126. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  127. }
  128.  
  129. return 1;
  130. }
  131. //==============================================================================
  132. dcmd_gametext(playerid,params[])
  133. {
  134. //#pragma unused params
  135. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  136.  
  137.  
  138. new idx,Style,id,string[256],tmp[256],cmd[256],reason[256];
  139.  
  140. tmp = strtok(params, idx);
  141. if(!strlen(tmp))
  142. {
  143. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /gametext (style) (text).");
  144. return 1;
  145. }
  146.  
  147. if(!isNumeric(tmp))
  148. {
  149. SendClientMessage(playerid, COLOR_ERROR, "Invalid Style.");
  150. return 1;
  151. }
  152.  
  153. Style = strval(tmp);
  154.  
  155. if (Style < 0 || Style > 6 && Style != 2)
  156. {
  157. SendClientMessage(playerid, COLOR_ERROR, "Please Enter A Number 0 - 6.");
  158. return 1;
  159. }
  160. if (Style == 2)
  161. {
  162. SendClientMessage(playerid, COLOR_ERROR, "Please Enter A Number Another Style this is bugged in SA-MP.");
  163. return 1;
  164. }
  165.  
  166. id = strlen(tmp);
  167. tmp = strtok(params, idx);
  168. if(!strlen(tmp))
  169. {
  170. //reason = "No Reason Given.";
  171. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /gametext (style) (text).");
  172. return 1;
  173. }
  174. else
  175. {
  176. strmid(reason, params, id + strlen(cmd) + 1, strlen(params), 256);
  177. }
  178.  
  179. format(string, sizeof(string), "%s",reason);
  180. GameTextForAll(string, 5000, Style);
  181.  
  182. }else{
  183. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  184. }
  185. return 1;
  186. }
  187. //==============================================================================
  188. dcmd_gotomb(playerid,params[])
  189. {
  190. #pragma unused params
  191.  
  192. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 3)
  193. {
  194.  
  195. SetPlayerPos(playerid, MoneyBagPos[0], MoneyBagPos[1] +3, MoneyBagPos[2]);
  196. SendClientMessage(playerid, COLOR_SERVER_HELP_MSG, "You Have Been teleported To The Money Bag");
  197.  
  198. }else{
  199. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  200. }
  201. return 1;
  202. }
  203. //==============================================================================
  204. dcmd_kill(playerid,params[])
  205. {
  206. #pragma unused params
  207.  
  208. if (PlayerInfo[playerid][pSpawn] == 1)
  209. {
  210.  
  211. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0)
  212. {
  213.  
  214.  
  215. //ForceClassSelection(playerid);
  216. SetPlayerHealth(playerid, 0);
  217. PlayerInfo[playerid][pResume] = 0;
  218.  
  219. }else{
  220. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  221. }
  222.  
  223. }else{
  224. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You Are Dead.");
  225. }
  226. return 1;
  227. }
  228. //==============================================================================
  229. dcmd_help(playerid,params[])
  230. {
  231. #pragma unused params
  232. if (PlayerInfo[playerid][pSpawn] == 1)
  233. {
  234. new string[256];
  235.  
  236. SendClientMessage(playerid, COLOR_SERVER_MAIN_MSG, "{FFFFFF}Type /pagesize (#) To Set How Many Lines Of Chat Are Displayed.");
  237. format(string, sizeof(string), "{FFFFFF}*** {00AAFF}%s %s {FFFFFF}- {00AAFF}%s {D6D631}Version %s {FFFFFF}***",SERVER_NAME ,GAME_MODE ,ServerInfo[sMapName] ,VERSION);
  238. SendClientMessage(playerid, COLOR_SERVER_MAIN_MSG, string);
  239. SendClientMessage(playerid, COLOR_SERVER_MAIN_MSG, "{0000FF}BLUE {FFFFFF}= Law Enforcement {8A2BE2}PURPLE {FFFFFF}= Cop Requesting Backup");
  240. SendClientMessage(playerid, COLOR_SERVER_MAIN_MSG, "{D6D631}YELLOW {FFFFFF}= Wanted Suspect ({FF0000}ISSUE A TICKET {D6D631}/tk{FFFFFF})");
  241. SendClientMessage(playerid, COLOR_SERVER_MAIN_MSG, "{FF8800}ORANGE {FFFFFF}= Suspect With Warrant For Arrest ({FF0000}ARREST {D6D631}/ar{FFFFFF})");
  242. SendClientMessage(playerid, COLOR_SERVER_MAIN_MSG, "{32CD32}GREEN {FFFFFF}= Driver On Duty (Taxi, Bus, Limo ...)");
  243. SendClientMessage(playerid, COLOR_SERVER_MAIN_MSG, "{FF0000}NO RANDOM KILLING OR YOU WILL BE KICKED / BANNED");
  244. format(string, sizeof(string), "{FFFFFF}Type {D6D631}/commands {FFFFFF}Or {D6D631}/rules {FFFFFF}Or Visit {00AAFF}%s {FFFFFF}for Game Info.",WEBSITE);
  245. SendClientMessage(playerid, COLOR_SERVER_MAIN_MSG, string);
  246.  
  247. TextDrawSetString(MediumTextdraw0[playerid], " ~n~~y~Sasuke_Uchiha's's~n~~b~Cops ~w~And ~r~Robbers~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ");
  248. format(string, sizeof(string), "~g~%s~n~ ~n~~y~Version "VERSION"",ServerInfo[sMapName]);
  249. TextDrawSetString(MediumTextdraw1[playerid], string);
  250. TextDrawSetString(MediumTextdraw2[playerid], "~n~ ~n~White = Innocent Civilian~n~~y~Yellow = Minor Suspect (Ticket)~n~~r~Orange = Wanted Criminal (Arrest)~n~~g~Green = Driver On Duty (Taxi)~n~~b~Blue = Law Enforcement~n~~p~Purple = Police Requesting Backup");
  251. TextDrawSetString(MediumTextdraw3[playerid], " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~~w~This Is ~r~NOT ~w~a Deathmatch Server.~n~Do ~r~NOT ~w~Attack People For No Reason~n~Or You Will Be Kicked / Banned~n~ ~n~~w~Type ~y~/help ~w~or ~y~/commands ~w~For More Information~n~Website: ~b~"WEBSITE"~n~ ~n~ ~n~~w~Press ~y~MMB ~w~To Close This Box");
  252.  
  253. TextDrawShowForPlayer(playerid, MediumTextdraw0[playerid]);
  254. TextDrawShowForPlayer(playerid, MediumTextdraw1[playerid]);
  255. TextDrawShowForPlayer(playerid, MediumTextdraw2[playerid]);
  256. TextDrawShowForPlayer(playerid, MediumTextdraw3[playerid]);
  257.  
  258. PlayerInfo[playerid][pTextdraw] = TD_MENU_INFO;
  259.  
  260.  
  261. }else{
  262. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You Are Dead.");
  263. }
  264. return 1;
  265. }
  266. //==============================================================================
  267. dcmd_vehhelp(playerid,params[])
  268. {
  269. #pragma unused params
  270. if (PlayerInfo[playerid][pTextdraw] == 0)
  271. {
  272.  
  273. HideTextDrawMenu(playerid);
  274. ShowTextDrawMenu(playerid, TD_MENU_VEH_CMDS,"~b~Vehicle Commands", 8, 0);
  275. ShowTextDrawMenuItems(playerid, 0, " ", " ", " ",0);
  276. ShowTextDrawMenuItems(playerid, 1, " ", "~y~/lk ~w~- Lock Your Vehicle", " ",0);
  277. ShowTextDrawMenuItems(playerid, 2, " ", "~y~/ulk ~w~- Unlock Your Vehicle", " ",0);
  278. ShowTextDrawMenuItems(playerid, 3, " ", "~y~/eja ~w~- Eject All Passengers", " ",0);
  279. ShowTextDrawMenuItems(playerid, 4, " ", "~y~/eje ~w~- Eject Everyone Including You", " ",0);
  280. ShowTextDrawMenuItems(playerid, 5, " ", "~y~/ejm ~w~- Eject Yourself", " ",0);
  281. ShowTextDrawMenuItems(playerid, 6, " ", "~y~/ej [name/id] ~w~- Eject A Player", " ",0);
  282. ShowTextDrawMenuItems(playerid, 7, " ", "~y~/sell ~w~- Sell Your Vehicle At The Crane", " ",0);
  283.  
  284. }else{
  285. SendClientMessage(playerid, COLOR_ERROR, "Please Close The Current Box Before Opening Another Box.");
  286. }
  287. return 1;
  288. }
  289. //==============================================================================
  290. dcmd_rules(playerid,params[])
  291. {
  292. #pragma unused params
  293. if (PlayerInfo[playerid][pSpawn] == 1)
  294. {
  295. TextDrawSetString(MediumTextdraw0[playerid], " ~n~~y~Sasuke_Uchiha's~n~~b~Cops ~w~And ~r~Robbers~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ");
  296. TextDrawSetString(MediumTextdraw1[playerid], "~r~SERVER RULES");
  297. TextDrawSetString(MediumTextdraw2[playerid], "- This Is ~r~NOT ~w~a Deathmatch Server.~n~- Do ~r~NOT ~w~Attack People For No Reason~n~Or You Will Be Kicked / Banned~n~ ~n~- No Cheating / Abusing Bugs or Glitches~n~- Respect Admins and Other Players~n~- No Advertising");
  298. TextDrawSetString(MediumTextdraw3[playerid], " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~Speak The Language You Want~n~- Use ~y~/complain ~w~For All Complaints~n~- Drive Properly~n~- ~r~No MODS Allowed~n~ ~n~~w~Type ~y~/help ~w~or ~y~/commands ~w~For More Information~n~Website: ~b~"WEBSITE"~n~ ~n~ ~n~~w~Press ~y~MMB ~w~To Close This Box");
  299.  
  300. TextDrawShowForPlayer(playerid, MediumTextdraw0[playerid]);
  301. TextDrawShowForPlayer(playerid, MediumTextdraw1[playerid]);
  302. TextDrawShowForPlayer(playerid, MediumTextdraw2[playerid]);
  303. TextDrawShowForPlayer(playerid, MediumTextdraw3[playerid]);
  304.  
  305. PlayerInfo[playerid][pTextdraw] = TD_MENU_INFO;
  306.  
  307. }else{
  308. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You Are Dead.");
  309. }
  310. return 1;
  311. }
  312. //==============================================================================
  313. dcmd_policerules(playerid,params[])
  314. {
  315. #pragma unused params
  316. if (PlayerInfo[playerid][pSpawn] == 1)
  317. {
  318. TextDrawSetString(MediumTextdraw0[playerid], " ~n~~y~Sasuke_Uchiha's~n~~b~Cops ~w~And ~r~Robbers~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ");
  319. TextDrawSetString(MediumTextdraw1[playerid], "~r~POLICE RULES");
  320. TextDrawSetString(MediumTextdraw2[playerid], "- This Is ~r~NOT ~w~a Deathmatch Server.~n~- Do ~r~NOT ~w~Attack People For No Reason~n~Or You Will Be Kicked / Banned~n~ ~n~- Do Not Attack Other Law Enforcement Agents (~b~Blue~w~)~n~- Do Not Bother Innocent Civilians (White)~n~ ~n~- Issue ~p~Tickets ~w~To Suspects (~y~Yellow~w~)");
  321. TextDrawSetString(MediumTextdraw3[playerid], " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~- Arrest Wanted Suspects (~r~Orange~w~)~n~- Shoot Only In ~r~Self Defence~n~~w~Or To ~r~Disable ~w~A Fleeing Vehicle~n~- Cops ~r~Do Not ~w~Work With Suspects~n~ ~n~Type ~y~/help ~w~or ~y~/commands ~w~For More Information~n~Website: ~b~"WEBSITE"~n~~w~Press ~y~MMB ~w~To Close This Box");
  322.  
  323. TextDrawShowForPlayer(playerid, MediumTextdraw0[playerid]);
  324. TextDrawShowForPlayer(playerid, MediumTextdraw1[playerid]);
  325. TextDrawShowForPlayer(playerid, MediumTextdraw2[playerid]);
  326. TextDrawShowForPlayer(playerid, MediumTextdraw3[playerid]);
  327.  
  328. PlayerInfo[playerid][pTextdraw] = TD_MENU_INFO;
  329.  
  330. }else{
  331. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You Are Dead.");
  332. }
  333. return 1;
  334. }
  335. //==============================================================================
  336. dcmd_cmds(playerid, params[])
  337. {
  338. dcmd_commands(playerid, params);
  339. return 1;
  340. }
  341.  
  342. dcmd_commands(playerid,params[])
  343. {
  344. #pragma unused params
  345. if (PlayerInfo[playerid][pSpawn] == 1)
  346. {
  347.  
  348. TextDrawHideForPlayer(playerid, Menu_Title[playerid]);
  349. TextDrawHideForPlayer(playerid, Menu_Stats[playerid]);
  350. TextDrawHideForPlayer(playerid, Menu_End[playerid]);
  351. for(new r = 0; r < MAX_TEXTDRAW_ROWS; r++)
  352. {
  353. TextDrawHideForPlayer(playerid, Menu_Column1[playerid][r]);
  354. TextDrawHideForPlayer(playerid, Menu_Column2[playerid][r]);
  355. }
  356.  
  357. ShowTextDrawMenu(playerid, TD_MENU_CMDS,"~g~Commands", 13, 11);
  358. ShowTextDrawMenuItems(playerid, 0, " ", " ", " ",0);
  359. ShowTextDrawMenuItems(playerid, 1, " ", "~y~1 ~w~- General Commands", " ",0);
  360. ShowTextDrawMenuItems(playerid, 2, " ", "~y~2 ~w~- Information Commands", " ",0);
  361. ShowTextDrawMenuItems(playerid, 3, " ", "~y~3 ~w~- Messaging Commands", " ",0);
  362. ShowTextDrawMenuItems(playerid, 4, " ", "~y~4 ~w~- Vehicle Commands", " ",0);
  363. //ShowTextDrawMenuItems(playerid, 5, " ", "~y~5 ~w~- Group Commands", " ",0);
  364. ShowTextDrawMenuItems(playerid, 5, " ", "~y~5 ~w~- Jail Commands", " ",0);
  365. ShowTextDrawMenuItems(playerid, 6, " ", "~y~6 ~w~- Police Commands", " ",0);
  366. ShowTextDrawMenuItems(playerid, 7, " ", "~y~7 ~w~- Civilian Commands", " ",0);
  367. ShowTextDrawMenuItems(playerid, 8, " ", "~y~8 ~w~- Services", " ",0);
  368. ShowTextDrawMenuItems(playerid, 9, " ", "~y~9 ~w~- House Commands", " ",0);
  369. ShowTextDrawMenuItems(playerid, 10, " ", "~y~10 ~w~- Service Commands", " ",0);
  370. ShowTextDrawMenuItems(playerid, 11, " ", "~y~11 ~w~- Animation Commands", " ",0);
  371.  
  372.  
  373. }else{
  374. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You Are Dead.");
  375. }
  376. return 1;
  377. }
  378. //==============================================================================
  379. dcmd_version(playerid,params[])
  380. {
  381. #pragma unused params
  382. if (PlayerInfo[playerid][pSpawn] == 1)
  383. {
  384. new string[256];
  385.  
  386. TextDrawSetString(SmallTextdraw0[playerid], " ~n~~y~Sasuke_Uchiha's~n~~b~Cops ~w~And ~r~Robbers~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ");
  387. TextDrawSetString(SmallTextdraw1[playerid], " ~n~ ~n~~b~"WEBSITE"");
  388. format(string, sizeof(string), "~g~%s ~w~- ~y~Version "VERSION"~n~~w~By ~b~Sasuke_Uchiha~w~, ~b~Sasuke_Uchiha~n~Special Thanks To~n~sa-mp~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~~w~Press ~y~MMB ~w~To Close This Box",ServerInfo[sMapName]);//~w~, ~b~Tristan ~w~and ~b~SirJoe ~w~Thanks To The ~b~SA-MP Team
  389. TextDrawSetString(SmallTextdraw2[playerid], string);
  390. TextDrawShowForPlayer(playerid, SmallTextdraw0[playerid]);
  391. TextDrawShowForPlayer(playerid, SmallTextdraw1[playerid]);
  392. TextDrawShowForPlayer(playerid, SmallTextdraw2[playerid]);
  393.  
  394. PlayerInfo[playerid][pTextdraw] = TD_MENU_INFO;
  395.  
  396. }else{
  397. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You Are Dead.");
  398. }
  399. return 1;
  400. }
  401. //==============================================================================
  402. dcmd_time(playerid, params[])
  403. {
  404. #pragma unused params
  405.  
  406. new string[128];
  407.  
  408. if (GameHour < 10)
  409. format(string, sizeof(string), "%s, 0%d",WeekDays[GameDay],GameHour);
  410. else
  411. format(string, sizeof(string), "%s, %d",WeekDays[GameDay],GameHour);
  412.  
  413. if (GameMinute < 10)
  414. format(string, sizeof(string), "%s:0%d",string,GameMinute);
  415. else
  416. format(string, sizeof(string), "%s:%d",string,GameMinute);
  417.  
  418. format(string, sizeof(string), "{FFFFFF}Game Time: {BDBDBD}%s",string);
  419. SendClientMessage(playerid, COLOR_SERVER_MAIN_MSG, string);
  420.  
  421. return 1;
  422. }
  423. //==============================================================================
  424. dcmd_register(playerid, params[])
  425. {
  426. #pragma unused params
  427. new string[256];
  428.  
  429. if (PlayerInfo[playerid][pRegistered] == 0)
  430. {
  431.  
  432. format(string, sizeof(string), "Cops And Robbers\n \nNew Registration - Name: %s\n \nDo Not Register Multiple Accounts\nDo Not Use The Same Password That You Use Elsewhere\nMinimum 6 Chars Maximum 12 Chars\n \nPlease Enter A Password For Your Account:",PlayerInfo[playerid][pName],playerid);
  433. ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT , "CnR Registration",string, "Register", "Cancel");
  434.  
  435. }else{
  436. SendClientMessage(playerid, COLOR_ERROR, "You Are Already Registered.");
  437. }
  438. return 1;
  439. }
  440. //==============================================================================
  441. dcmd_spawn(playerid,params[])
  442. {
  443. #pragma unused params
  444.  
  445. TextDrawHideForPlayer(playerid, Menu_Title[playerid]);
  446. TextDrawHideForPlayer(playerid, Menu_Stats[playerid]);
  447. TextDrawHideForPlayer(playerid, Menu_End[playerid]);
  448. for(new r = 0; r < MAX_TEXTDRAW_ROWS; r++)
  449. {
  450. TextDrawHideForPlayer(playerid, Menu_Column1[playerid][r]);
  451. TextDrawHideForPlayer(playerid, Menu_Column2[playerid][r]);
  452. }
  453.  
  454. ShowTextDrawMenu(playerid, TD_MENU_SPAWN_OPTIONS,"~b~New Life", 6, 2);
  455. ShowTextDrawMenuItems(playerid, 0, "Do You Really Want~n~To Start A ~r~New Life~w~?", " ", " ",0);
  456. ShowTextDrawMenuItems(playerid, 1, " ", "~y~1 ~w~- ~g~YES", " ",0);
  457. ShowTextDrawMenuItems(playerid, 2, " ", "~y~2 ~w~- ~r~NO", " ",0);
  458.  
  459. return 1;
  460. }
  461. //==============================================================================
  462. //==============================================================================
  463. //==============================================================================
  464. //======================START OF ADMINISTRATION COMMANDS========================
  465. //==============================================================================
  466. //==============================================================================
  467. //==============================================================================
  468. //==============================================================================
  469. //==============================================================================
  470. dcmd_freeme(playerid,params[])
  471. {
  472. #pragma unused params
  473.  
  474. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0)
  475. {
  476.  
  477.  
  478. if (PlayerInfo[playerid][pSpawn] == 1)
  479. {
  480.  
  481.  
  482. if (PlayerInfo[playerid][pJailed] == 1)
  483. {
  484. UnJail(playerid);
  485. TextDrawHideForPlayer(playerid, StatsDisplay[playerid]);
  486. }
  487. PlayerInfo[playerid][pJailed] = 0;
  488. PlayerInfo[playerid][pJailHour] = 0;
  489. PlayerInfo[playerid][pJailMinute] = 0;
  490. PlayerInfo[playerid][pWantedLevel] = 0;
  491. SetPlayerWantedLevel(playerid,0);
  492. ShowPlayerWantedStats(playerid);
  493. SendClientMessage(playerid,COLOR_SERVER_HELP_MSG, "Your Wanted Criminal History Has Been Cleared.");
  494. GameTextForPlayer(playerid,"~w~Criminal History Cleared",5000,3);
  495.  
  496.  
  497. }else{
  498. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You Are Dead.");
  499. }
  500.  
  501. }else{
  502. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  503. }
  504. return 1;
  505. }
  506. //==============================================================================
  507. dcmd_adrugs(playerid,params[])
  508. {
  509. #pragma unused params
  510.  
  511. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0)
  512. {
  513.  
  514.  
  515. if (PlayerInfo[playerid][pSpawn] == 1)
  516. {
  517.  
  518. PlayerInfo[playerid][pDrugs] = 500;
  519.  
  520. SendClientMessage(playerid,COLOR_SERVER_HELP_MSG, "You Now Have 500 Grams Of Drugs.");
  521. GameTextForPlayer(playerid,"~w~500 Grams Of Drugs",5000,3);
  522.  
  523.  
  524. }else{
  525. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You Are Dead.");
  526. }
  527.  
  528. }else{
  529. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  530. }
  531. return 1;
  532. }
  533. //==============================================================================
  534. dcmd_acmds(playerid, params[])
  535. {
  536. dcmd_admincommands(playerid, params);
  537. return 1;
  538. }
  539.  
  540. dcmd_admincommands(playerid,params[])
  541. {
  542. #pragma unused params
  543.  
  544. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0)
  545. {
  546.  
  547.  
  548. if (PlayerInfo[playerid][pSpawn] == 1)
  549. {
  550.  
  551. HideTextDrawMenu(playerid);
  552. ShowTextDrawMenu(playerid, TD_MENU_ADMIN_CMDS,"~g~Admin Commands", 6, 3);
  553. ShowTextDrawMenuItems(playerid, 0, " ", " ", " ",0);
  554. ShowTextDrawMenuItems(playerid, 1, " ", "~y~1 ~w~- Admin Level 1", " ",0);
  555. ShowTextDrawMenuItems(playerid, 2, " ", "~y~2 ~w~- Admin Level 2", " ",0);
  556. ShowTextDrawMenuItems(playerid, 3, " ", "~y~3 ~w~- Admin Level 3", " ",0);
  557.  
  558. }else{
  559. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You Are Dead.");
  560. }
  561.  
  562. }else{
  563. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  564. }
  565. return 1;
  566. }
  567. //==============================================================================
  568. dcmd_atime(playerid, params[])
  569. {
  570. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 1){
  571.  
  572. new idx,DAY,HOUR,MINUTE,tmp[256],string[128];
  573.  
  574. tmp = strtok(params, idx);
  575.  
  576. if(!strlen(tmp))
  577. {
  578. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /atime (day) (hour) (minute)");
  579. return 1;
  580. }
  581.  
  582. if(!isNumeric(tmp))
  583. {
  584. SendClientMessage(playerid, COLOR_ERROR, "Invalid Day Please Use A Numeric Character.");
  585. return 1;
  586. }
  587.  
  588. DAY = strval(tmp);
  589.  
  590. if(DAY < 0 || DAY > 6)
  591. {
  592. SendClientMessage(playerid, COLOR_ERROR, "Invalid Day Please Enter A Number 0 - 6.");
  593. return 1;
  594. }
  595.  
  596. GameDay = DAY;
  597.  
  598.  
  599. tmp = strtok(params, idx);
  600.  
  601. if(!strlen(tmp))
  602. {
  603. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /atime (day) (hour) (minute)");
  604. return 1;
  605. }
  606.  
  607. if(!isNumeric(tmp))
  608. {
  609. SendClientMessage(playerid, COLOR_ERROR, "Invalid Hour Please A Numeric Character.");
  610. return 1;
  611. }
  612.  
  613. HOUR = strval(tmp);
  614.  
  615. if(HOUR < 0 || HOUR > 23)
  616. {
  617. SendClientMessage(playerid, COLOR_ERROR, "Invalid Hour Please Enter A Number 0 - 23.");
  618. return 1;
  619. }
  620.  
  621. GameHour = HOUR;
  622.  
  623.  
  624. tmp = strtok(params, idx);
  625.  
  626. if(!strlen(tmp))
  627. {
  628. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /atime (day) (hour) (minute)");
  629. return 1;
  630. }
  631.  
  632. if(!isNumeric(tmp))
  633. {
  634. SendClientMessage(playerid, COLOR_ERROR, "Invalid Minute Please A Numeric Character.");
  635. return 1;
  636. }
  637.  
  638. MINUTE = strval(tmp);
  639.  
  640. if(MINUTE < 0 || MINUTE > 59)
  641. {
  642. SendClientMessage(playerid, COLOR_ERROR, "Invalid Minute Please Enter A Number 0 - 59.");
  643. return 1;
  644. }
  645.  
  646. GameMinute = MINUTE;
  647.  
  648.  
  649. if (GameHour < 10)
  650. format(string, sizeof(string), "%s, 0%d",WeekDays[GameDay],GameHour);
  651. else
  652. format(string, sizeof(string), "%s, %d",WeekDays[GameDay],GameHour);
  653.  
  654. if (GameMinute < 10)
  655. format(string, sizeof(string), "%s:0%d",string,GameMinute);
  656. else
  657. format(string, sizeof(string), "%s:%d",string,GameMinute);
  658.  
  659. format(string, sizeof(string), "{FFFFFF}Game Time: {BDBDBD}%s",string);
  660. SendClientMessage(playerid, COLOR_SERVER_MAIN_MSG, string);
  661.  
  662.  
  663. SetWorldTime(HOUR);
  664.  
  665. }else{
  666. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  667. }
  668.  
  669. return 1;
  670. }
  671. //==============================================================================
  672. dcmd_247(playerid, params[])
  673. {
  674. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 1){
  675.  
  676. new idx,interiorid,tmp[256];
  677.  
  678. tmp = strtok(params, idx);
  679.  
  680. if(!strlen(tmp))
  681. {
  682. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /247 (id)");
  683. return 1;
  684. }
  685.  
  686. if(!isNumeric(tmp))
  687. {
  688. SendClientMessage(playerid, COLOR_ERROR, "Invalid Interior ID Please Use Numeric Characters.");
  689. return 1;
  690. }
  691.  
  692. interiorid = strval(tmp);
  693.  
  694. if(interiorid < 1 || interiorid > 6)
  695. {
  696. SendClientMessage(playerid, COLOR_ERROR, "Invalid Interior ID Please Enter An ID 1 - 6.");
  697. return 1;
  698. }
  699.  
  700. //SetPlayerPosEx(playerid,Float:x,Float:y,Float:z,Float:angle,interior,world);
  701.  
  702. if(interiorid == 1)
  703. {
  704. SetPlayerPosEx(playerid,-25.938776, -185.129852, 1003.546875, 2.149587,17,0);
  705. }
  706.  
  707. if(interiorid == 2)
  708. {
  709. SetPlayerPosEx(playerid,6.171852, -28.530193, 1003.549438, 358.279632,10,0);
  710. }
  711.  
  712. if(interiorid == 3)
  713. {
  714. SetPlayerPosEx(playerid,-31.114776, -89.261940, 1003.546875, 2.533348,18,0);
  715. }
  716.  
  717. if(interiorid == 4)
  718. {
  719. SetPlayerPosEx(playerid,-25.784944, -137.862976, 1003.546875, 358.536712,16,0);
  720. }
  721.  
  722. if(interiorid == 5)
  723. {
  724. SetPlayerPosEx(playerid,-27.429084, -28.376251, 1003.557250, 1.216269,4,0);
  725. }
  726.  
  727. if(interiorid == 6)
  728. {
  729. SetPlayerPosEx(playerid,-27.227264, -55.081371, 1003.546875, 2.479649,6,0);
  730. }
  731.  
  732. format(tmp, sizeof(tmp), "24-7 ID %d", interiorid);
  733. SendClientMessage(playerid, COLOR_YELLOW, tmp);
  734.  
  735. strmid(PlayerInfo[playerid][pInteriorName], tmp, 0, strlen(tmp), 256);
  736. strmid(PlayerInfo[playerid][pLocation], tmp, 0, strlen(tmp), 256);
  737. TextDrawSetString(ZoneName[playerid], tmp);
  738.  
  739. }else{
  740. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  741. }
  742.  
  743. return 1;
  744. }
  745. //==============================================================================
  746. dcmd_charhouses(playerid, params[])
  747. {
  748. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 1){
  749.  
  750.  
  751. new idx,interiorid,tmp[256],interiornames[256];
  752.  
  753. tmp = strtok(params, idx);
  754.  
  755. if(!strlen(tmp))
  756. {
  757. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /charhouses (id)");
  758. return 1;
  759. }
  760.  
  761. if(!isNumeric(tmp))
  762. {
  763. SendClientMessage(playerid, COLOR_ERROR, "Invalid Interior ID Please Use Numeric Characters.");
  764. return 1;
  765. }
  766.  
  767. interiorid = strval(tmp);
  768.  
  769. if(interiorid < 1 || interiorid > 10)
  770. {
  771. SendClientMessage(playerid, COLOR_ERROR, "Invalid Interior ID Please Enter An ID 1 - 10.");
  772. return 1;
  773. }
  774.  
  775. switch(interiorid)
  776. {
  777. case 1: {SetPlayerPos(playerid,1531,-10,1003); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,180); interiornames = "B Dup's Appartement";} // B Dup's Appartement
  778. case 2: {SetPlayerPos(playerid,1526.5,-48,1003); SetPlayerInterior(playerid,2); SetPlayerFacingAngle(playerid,90); interiornames = "B Dup's Crack Palace";} // B Dup's Crack Palace
  779. case 3: {SetPlayerPos(playerid,2543,-1306,1025); SetPlayerInterior(playerid,2); SetPlayerFacingAngle(playerid,180); interiornames = "Big Smoke's Crack Palace";} // Big Smoke's Crack Palace
  780. case 4: {SetPlayerPos(playerid,2807.5,-1172.5,1026); SetPlayerInterior(playerid,8); SetPlayerFacingAngle(playerid,0); interiornames = "Colonel Fuhrberger's House";} // Colonel Fuhrberger's House
  781. case 5: {SetPlayerPos(playerid,1299,-795.2,1084); SetPlayerInterior(playerid,5); SetPlayerFacingAngle(playerid,0); interiornames = " Sasuke_Uchiha's Mansion East";} // Madd Dogg's Mansion East
  782. case 6: {SetPlayerPos(playerid,1263,-785.3,1092); SetPlayerInterior(playerid,5); SetPlayerFacingAngle(playerid,270); interiornames = "Sasuke_Uchiha's Mansion West";} // Madd Dogg's Mansion West
  783. case 7: {SetPlayerPos(playerid,520,-17.5,1002); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,90); interiornames = "OG Loc's House";} // OG Loc's House
  784. case 8: {SetPlayerPos(playerid,2464,-1698,1014); SetPlayerInterior(playerid,2); SetPlayerFacingAngle(playerid,90); interiornames = "Ryder's Place";} // Ryder's Place
  785. case 9: {SetPlayerPos(playerid,2526.5,-1679.5,1016); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,270); interiornames = "Sweet's House";} // Sweet's House
  786. case 10: {SetPlayerPos(playerid,-2163,642,1053); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,90); interiornames = "Wu Zi Mu's Crib";} // Wu Zi Mu's Crib
  787. }
  788.  
  789. format(tmp, sizeof(tmp), "%s", interiornames);
  790. SendClientMessage(playerid, COLOR_YELLOW, tmp);
  791.  
  792. strmid(PlayerInfo[playerid][pInteriorName], tmp, 0, strlen(tmp), 256);
  793. strmid(PlayerInfo[playerid][pLocation], tmp, 0, strlen(tmp), 256);
  794. TextDrawSetString(ZoneName[playerid], tmp);
  795.  
  796. }else{
  797. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  798. }
  799.  
  800. return 1;
  801. }
  802. //==============================================================================
  803. dcmd_afood(playerid, params[])
  804. {
  805. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 1){
  806.  
  807.  
  808. new idx,interiorid,tmp[256],interiornames[256];
  809.  
  810. tmp = strtok(params, idx);
  811.  
  812. if(!strlen(tmp))
  813. {
  814. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /afood (id)");
  815. return 1;
  816. }
  817.  
  818. if(!isNumeric(tmp))
  819. {
  820. SendClientMessage(playerid, COLOR_ERROR, "Invalid Interior ID Please Use Numeric Characters.");
  821. return 1;
  822. }
  823.  
  824. interiorid = strval(tmp);
  825.  
  826. if(interiorid < 1 || interiorid > 11)
  827. {
  828. SendClientMessage(playerid, COLOR_ERROR, "Invalid Interior ID Please Enter An ID 1 - 11.");
  829. return 1;
  830. }
  831.  
  832. switch(interiorid)
  833. {
  834. case 1: {SetPlayerPos(playerid,364.4,-73.6,1002); SetPlayerInterior(playerid,10); SetPlayerFacingAngle(playerid,315);interiornames = "Burger Shot";} // Burger Shot
  835. case 2: {SetPlayerPos(playerid,365.7,-10.7,1002); SetPlayerInterior(playerid,9); SetPlayerFacingAngle(playerid,0);interiornames = "Clucking' Bell";} // Clucking' Bell
  836. case 3: {SetPlayerPos(playerid,372,-131,1002); SetPlayerInterior(playerid,5); SetPlayerFacingAngle(playerid,0);interiornames = "Well Stacked Pizza";} // Well Stacked Pizza
  837. case 4: {SetPlayerPos(playerid,459,-108.5,1005); SetPlayerInterior(playerid,5); SetPlayerFacingAngle(playerid,0); interiornames = "Diner";SendClientMessage(playerid,0x00F600AA,"In normal game this interior is compleetly unsolid, the FS has makes it solid so you can explore it.");} // Diner
  838. case 5: {SetPlayerPos(playerid,377,-192,1001); SetPlayerInterior(playerid,17); SetPlayerFacingAngle(playerid,0);interiornames = "Jim's Sticky Ring";} // Jim's Sticky Ring
  839. case 6: {SetPlayerPos(playerid,-227,1401,28); SetPlayerInterior(playerid,18); SetPlayerFacingAngle(playerid,270);interiornames = "Lil' Probe'Inn";} // Lil' Probe'Inn
  840. case 7: {SetPlayerPos(playerid,455,-21,1001); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,0);interiornames = "Red Restaurant";} // Red Restaurant
  841. case 8: {SetPlayerPos(playerid,459,-88.5,1000); SetPlayerInterior(playerid,4); SetPlayerFacingAngle(playerid,90);interiornames = "Rusty Browns Ring Donuts";} // Rusty Browns Ring Donuts
  842. case 9: {SetPlayerPos(playerid,442,-51,1005); SetPlayerInterior(playerid,6); SetPlayerFacingAngle(playerid,180);interiornames = "Small Restaurant"; SendClientMessage(playerid,0x00F600AA,"In normal game this interior is compleetly unsolid, the FS has makes it solid so you can explore it.");} // Small Restaurant
  843. case 10: {SetPlayerPos(playerid,502,-69,999); SetPlayerInterior(playerid,11); SetPlayerFacingAngle(playerid,180);interiornames = "The Bar";} // The Bar
  844. case 11: {SetPlayerPos(playerid,681.5,-451,-26); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,180);interiornames = "The Welcome Pump";} // The Welcome Pump
  845. }
  846.  
  847. format(tmp, sizeof(tmp), "%s", interiornames);
  848. SendClientMessage(playerid, COLOR_YELLOW, tmp);
  849.  
  850. strmid(PlayerInfo[playerid][pInteriorName], tmp, 0, strlen(tmp), 256);
  851. strmid(PlayerInfo[playerid][pLocation], tmp, 0, strlen(tmp), 256);
  852. TextDrawSetString(ZoneName[playerid], tmp);
  853.  
  854. }else{
  855. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  856. }
  857.  
  858. return 1;
  859. }
  860. //==============================================================================
  861. dcmd_girl(playerid, params[])
  862. {
  863. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 1){
  864.  
  865. new idx,interiorid,tmp[256],interiornames[256];
  866.  
  867. tmp = strtok(params, idx);
  868.  
  869. if(!strlen(tmp))
  870. {
  871. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /girl (id)");
  872. return 1;
  873. }
  874.  
  875. if(!isNumeric(tmp))
  876. {
  877. SendClientMessage(playerid, COLOR_ERROR, "Invalid Interior ID Please Use Numeric Characters.");
  878. return 1;
  879. }
  880.  
  881. interiorid = strval(tmp);
  882.  
  883. if(interiorid < 1 || interiorid > 6)
  884. {
  885. SendClientMessage(playerid, COLOR_ERROR, "Invalid Interior ID Please Enter An ID 1 - 6.");
  886. return 1;
  887. }
  888.  
  889. switch(interiorid)
  890. {
  891.  
  892. case 1: {SetPlayerPos(playerid,322,303,1000); SetPlayerInterior(playerid,5); SetPlayerFacingAngle(playerid,0);interiornames = "Barbara's House";} // Barbara's House
  893. case 2: {SetPlayerPos(playerid,245,305,1000); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,270);interiornames = "Denise's House";} // Denise's House
  894. case 3: {SetPlayerPos(playerid,292,310,1000); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,90);interiornames = "Helena's House";} // Helena's House
  895. case 4: {SetPlayerPos(playerid,267.6,305,1000); SetPlayerInterior(playerid,2); SetPlayerFacingAngle(playerid,270);interiornames = "Katie's House";} // Katie's House
  896. case 5: {SetPlayerPos(playerid,309,311,1004); SetPlayerInterior(playerid,4); SetPlayerFacingAngle(playerid,180);interiornames = "Michelle's House";} // Michelle's House
  897. case 6: {SetPlayerPos(playerid,345,305,1000); SetPlayerInterior(playerid,6); SetPlayerFacingAngle(playerid,270);interiornames = "Millie's House";} // Millie's House
  898. }
  899.  
  900. format(tmp, sizeof(tmp), "%s", interiornames);
  901. SendClientMessage(playerid, COLOR_YELLOW, tmp);
  902.  
  903. strmid(PlayerInfo[playerid][pInteriorName], tmp, 0, strlen(tmp), 256);
  904. strmid(PlayerInfo[playerid][pLocation], tmp, 0, strlen(tmp), 256);
  905. TextDrawSetString(ZoneName[playerid], tmp);
  906.  
  907. }else{
  908. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  909. }
  910.  
  911. return 1;
  912. }
  913. //==============================================================================
  914. dcmd_bur(playerid, params[])
  915. {
  916. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 1){
  917.  
  918. new idx,interiorid,tmp[256],interiornames[256];
  919.  
  920. tmp = strtok(params, idx);
  921.  
  922. if(!strlen(tmp))
  923. {
  924. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /bur (id)");
  925. return 1;
  926. }
  927.  
  928. if(!isNumeric(tmp))
  929. {
  930. SendClientMessage(playerid, COLOR_ERROR, "Invalid Interior ID Please Use Numeric Characters.");
  931. return 1;
  932. }
  933.  
  934. interiorid = strval(tmp);
  935.  
  936. if(interiorid < 1 || interiorid > 23)
  937. {
  938. SendClientMessage(playerid, COLOR_ERROR, "Invalid Interior ID Please Enter An ID 1 - 23.");
  939. return 1;
  940. }
  941.  
  942. switch(interiorid)
  943. {
  944. case 1: {SetPlayerPos(playerid,223,1288,1082); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,0);interiornames = "Burglary House 1";} // Burglary House 1
  945. case 2: {SetPlayerPos(playerid,225.4,1240,1082); SetPlayerInterior(playerid,2); SetPlayerFacingAngle(playerid,90);interiornames = "Burglary House 2";} // Burglary House 2
  946. case 3: {SetPlayerPos(playerid,447,1398,1085.3); SetPlayerInterior(playerid,2); SetPlayerFacingAngle(playerid,0);interiornames = "Burglary House 3";} // Burglary House 3
  947. case 4: {SetPlayerPos(playerid,491,1399,1081); SetPlayerInterior(playerid,2); SetPlayerFacingAngle(playerid,0);interiornames = "Burglary House 4";} // Burglary House 4
  948. case 5: {SetPlayerPos(playerid,235,1187,1080.3); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,0);interiornames = "Burglary House 5";} // Burglary House 5
  949. case 6: {SetPlayerPos(playerid,-263,1456.7,1084.4);SetPlayerInterior(playerid,4); SetPlayerFacingAngle(playerid,90);interiornames = "Burglary House 6";} // Burglary House 6
  950. case 7: {SetPlayerPos(playerid,221.4,1142.4,1083); SetPlayerInterior(playerid,4); SetPlayerFacingAngle(playerid,0);interiornames = "Burglary House 7";} // Burglary House 7
  951. case 8: {SetPlayerPos(playerid,261,1286.5,1081); SetPlayerInterior(playerid,4); SetPlayerFacingAngle(playerid,0);interiornames = "Burglary House 8";} // Burglary House 8
  952. case 9: {SetPlayerPos(playerid,22.8,1404.6,1085); SetPlayerInterior(playerid,5); SetPlayerFacingAngle(playerid,0);interiornames = "Burglary House 9";} // Burglary House 9
  953. case 10: {SetPlayerPos(playerid,229,1114.4,1081); SetPlayerInterior(playerid,5); SetPlayerFacingAngle(playerid,270);interiornames = "Burglary House 10";}// Burglary House 10
  954. case 11: {SetPlayerPos(playerid,140.5,1369,1084); SetPlayerInterior(playerid,5); SetPlayerFacingAngle(playerid,0);interiornames = "Burglary House 11";} // Burglary House 11
  955. case 12: {SetPlayerPos(playerid,83.1,1324.2,1084); SetPlayerInterior(playerid,9); SetPlayerFacingAngle(playerid,0);interiornames = "Burglary House 12";} // Burglary 12
  956. case 13: {SetPlayerPos(playerid,260.3,1239.7,1085); SetPlayerInterior(playerid,9); SetPlayerFacingAngle(playerid,0);interiornames = "Burglary House 13";} // Burglary 13
  957. case 14: {SetPlayerPos(playerid,9433,1341.3,1085); SetPlayerInterior(playerid,10); SetPlayerFacingAngle(playerid,0);interiornames = "Burglary House 14";} // Burglary 14
  958. case 15: {SetPlayerPos(playerid,234.3,1066.4,1085); SetPlayerInterior(playerid,6); SetPlayerFacingAngle(playerid,0);interiornames = "Burglary House 15";} // Burglary 15
  959. case 16: {SetPlayerPos(playerid,-69,1354,1081); SetPlayerInterior(playerid,6); SetPlayerFacingAngle(playerid,0);interiornames = "Burglary House 16";} // Burglary 16
  960. case 17: {SetPlayerPos(playerid,-285.7,1470.7,1085);SetPlayerInterior(playerid,15); SetPlayerFacingAngle(playerid,90);interiornames = "Burglary House 17";} // Burglary 17
  961. case 18: {SetPlayerPos(playerid,327.8,1479.7,1085); SetPlayerInterior(playerid,15); SetPlayerFacingAngle(playerid,0);interiornames = "Burglary House 18";} // Burglary 18
  962. case 19: {SetPlayerPos(playerid,375.6,1417.4,1082); SetPlayerInterior(playerid,15); SetPlayerFacingAngle(playerid,90);interiornames = "Burglary House 19";} // Burglary 19
  963. case 20: {SetPlayerPos(playerid,384.6,1471.5,1081); SetPlayerInterior(playerid,15); SetPlayerFacingAngle(playerid,90);interiornames = "Burglary House 20";} // Burglary 20
  964. case 21: {SetPlayerPos(playerid,295.5,1474.7,1081); SetPlayerInterior(playerid,15); SetPlayerFacingAngle(playerid,0);interiornames = "Burglary House 21";} // Burglary 21
  965. case 22: {SetPlayerPos(playerid,-42.5,1407.6,1085); SetPlayerInterior(playerid,8); SetPlayerFacingAngle(playerid,0);interiornames = "Burglary House 22";} // Burglary 22
  966. case 23: {SetPlayerPos(playerid,225.7,1023,1084); SetPlayerInterior(playerid,7); SetPlayerFacingAngle(playerid,0);interiornames = "Burglary House 23";} // Burglary 23
  967. }
  968.  
  969. format(tmp, sizeof(tmp), "%s", interiornames);
  970. SendClientMessage(playerid, COLOR_YELLOW, tmp);
  971.  
  972. strmid(PlayerInfo[playerid][pInteriorName], tmp, 0, strlen(tmp), 256);
  973. strmid(PlayerInfo[playerid][pLocation], tmp, 0, strlen(tmp), 256);
  974. TextDrawSetString(ZoneName[playerid], tmp);
  975.  
  976. }else{
  977. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  978. }
  979.  
  980. return 1;
  981. }
  982. //==============================================================================
  983. dcmd_ahouse(playerid, params[])
  984. {
  985. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 2){
  986.  
  987. new idx,interiorid,tmp[256];//,interiornames[256];
  988.  
  989. tmp = strtok(params, idx);
  990.  
  991. if(!strlen(tmp))
  992. {
  993. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /house (id)");
  994. return 1;
  995. }
  996.  
  997. if(!isNumeric(tmp))
  998. {
  999. SendClientMessage(playerid, COLOR_ERROR, "Invalid Interior ID Please Use Numeric Characters.");
  1000. return 1;
  1001. }
  1002.  
  1003. interiorid = strval(tmp);
  1004.  
  1005. if(interiorid < 1 || interiorid > 24)
  1006. {
  1007. SendClientMessage(playerid, COLOR_ERROR, "Invalid Interior ID Please Enter An ID 1 - 42.");
  1008. return 1;
  1009. }
  1010.  
  1011. switch(interiorid)
  1012. {
  1013.  
  1014. case 1: {SetPlayerPosEx(playerid,247.207580, 304.963256, 999.148437, 271.584045, 1,0);}//Comment: Denise's House CP Spawn inside interior 1
  1015.  
  1016. case 2: {SetPlayerPosEx(playerid,269.962371, 304.934020, 999.148437, 270.828033, 2,0);}//Comment: Katie's House CP Spawn inside interior 2
  1017.  
  1018. case 3: {SetPlayerPosEx(playerid,2807.816894, -1171.652221, 1025.570312, 357.635467, 8,0);}//Comment: Colonel Fuhrberger's Exit CP spawn inside interior 8
  1019.  
  1020. case 4: {SetPlayerPosEx(playerid,2465.324218, -1698.427734, 1013.515197, 91.960250, 2,0);}//Comment: Ryders House Exit CP spawn inside interior 2
  1021.  
  1022. case 5: {SetPlayerPosEx(playerid,2496.014892, -1695.171020, 1014.742187, 179.300827, 3,0);}//Comment: Johnson House Exit CP spawn inside interior 3
  1023.  
  1024. case 6: {SetPlayerPosEx(playerid,419.228637, 2536.651611, 10.000000, 87.954605, 10,0);}//Comment: Airport Safe House Exit CP spawn inside interior 10
  1025.  
  1026. //case 7: {SetPlayerPosEx(playerid,-0.350109, -3.234085, 999.428405, 86.336982, 2,0);}//Comment: Angel Pine Trailer Safe House Exit CP spawn inside interior 2
  1027.  
  1028. case 7: {SetPlayerPosEx(playerid,2267.533935, -1210.496337, 1048.116455, 88.593872, 10,0);}//Comment: Hasbury Safe House Exit CP spawn inside interior 10
  1029.  
  1030. //case 9: {SetPlayerPosEx(playerid,2251.958251, -1139.891479, 1050.632812, 89.628273, 9,0);}//Comment: Jefferson Safe House 1 Exit CP spawn inside interior 9
  1031.  
  1032. case 8: {SetPlayerPosEx(playerid,2262.245361, -1135.970092, 1050.632812, 269.300811, 10,0);}//Comment: Jefferson Safe House 2 Exit CP spawn inside interior 10
  1033.  
  1034. case 9: {SetPlayerPosEx(playerid,2324.347167, -1145.709716, 1050.710083, 0.584272, 12,0);}//Comment: Modern Safe House Exit CP spawn inside interior 12
  1035.  
  1036. case 10: {SetPlayerPosEx(playerid,2319.676757, -1023.681579, 1050.210937, 357.934661, 9,0);}//Comment: Prickle Pine Safe House Exit CP spawn inside interior 9
  1037.  
  1038. case 11: {SetPlayerPosEx(playerid,2233.601562, -1111.768554, 1050.882812, 352.136596, 5,0);}//Comment: Motel Safe House Exit CP spawn inside interior 5
  1039.  
  1040. case 12: {SetPlayerPosEx(playerid,2282.909667, -1137.524047, 1050.898437, 0.729693, 11,0);}//Comment: Safe House 1 Exit CP spawn inside interior 11
  1041.  
  1042. case 13: {SetPlayerPosEx(playerid,2365.066162, -1132.477172, 1050.875000, 2.093142, 8,0);}//Comment: Safe House 2 Exit CP spawn inside interior 8
  1043.  
  1044. case 14: {SetPlayerPosEx(playerid,2333.235839, -1074.122436, 1049.023437, 358.472747, 6,0);}//Comment: Safe House 3 Exit CP spawn inside interior 6
  1045.  
  1046. case 15: {SetPlayerPosEx(playerid,2215.748535, -1076.159179, 1050.484375, 88.178146, 1,0);}//Comment: Safe House 4 Exit CP spawn inside interior 1
  1047.  
  1048. case 16: {SetPlayerPosEx(playerid,2194.085937, -1204.052246, 1049.023437, 91.824943, 6,0);}//Comment: Safe House 5 Exit CP spawn inside interior 6
  1049.  
  1050. case 17: {SetPlayerPosEx(playerid,2308.542724, -1209.783325, 1049.023437, 358.599151, 6,0);}//Comment: Safe House 6 Exit CP spawn inside interior 6
  1051.  
  1052. case 18: {SetPlayerPosEx(playerid,2237.633300, -1078.569458, 1049.023437, 358.301971, 2,0);}//Comment: Safe House 7 Exit CP spawn inside interior 2
  1053.  
  1054. case 19: {SetPlayerPosEx(playerid,223.166397, 1289.926513, 1082.132812, 352.048309, 1,0);}//Comment: Burglary House 1 Exit CP spawn inside interior 1
  1055.  
  1056. case 20: {SetPlayerPosEx(playerid,223.827362, 1239.993774, 1082.140625, 90.555923, 2,0);}//Comment: Burglary House 2 Exit CP spawn inside interior 2
  1057.  
  1058. case 21: {SetPlayerPosEx(playerid,447.068176, 1399.770874, 1084.304687, 1.605515, 2,0);}//Comment: Burglary House 3 Exit CP spawn inside interior 2
  1059.  
  1060. case 22: {SetPlayerPosEx(playerid,490.918975, 1402.460937, 1080.264526, 5.356579, 2,0);}//Comment: Burglary House 4 Exit CP spawn inside interior 2
  1061.  
  1062. case 23: {SetPlayerPosEx(playerid,235.239440, 1190.123413, 1080.257812, 1.590167, 3,0);}//Comment: Burglary House 5 Exit CP spawn inside interior 3
  1063.  
  1064. case 24: {SetPlayerPosEx(playerid,318.637695, 1117.218994, 1083.882812, 359.494110, 5,0);}//Comment: Crack House 5 Exit CP spawn inside interior 3
  1065.  
  1066.  
  1067.  
  1068. /*case 24: {SetPlayerPosEx(playerid,-263.593017, 1456.760131, 1084.367187, 89.161979, 4,0);}//Comment: Burglary House 6 Exit CP spawn inside interior 4
  1069.  
  1070. case 25: {SetPlayerPosEx(playerid,221.754486, 1143.238769, 1082.609375, 2.681358, 4,0);}//Comment: Burglary House 7 Exit CP spawn inside interior 4
  1071.  
  1072. case 26: {SetPlayerPosEx(playerid,261.064971, 1287.058593, 1080.257812, 358.325073, 4,0);}//Comment: Burglary House 8 Exit CP spawn inside interior 4
  1073.  
  1074. case 27: {SetPlayerPosEx(playerid,22.852340, 1406.338134, 1084.429687, 0.651276, 5,0);}//Comment: Burglary House 9 Exit CP spawn inside interior 5
  1075.  
  1076. case 28: {SetPlayerPosEx(playerid,229.352645, 1114.153442, 1080.992187, 269.018920, 5,0);}//Comment: Burglary House 10 Exit CP spawn inside interior 5
  1077.  
  1078. case 29: {SetPlayerPosEx(playerid,140.204483, 1368.589721, 1083.863159, 3.312550, 5,0);}//Comment: Burglary House 11 Exit CP spawn inside interior 5
  1079.  
  1080. case 30: {SetPlayerPosEx(playerid,82.946197, 1325.014648, 1083.859375, 0.590419, 9,0);}//Comment: Burglary House 12 Exit CP spawn inside interior 9
  1081.  
  1082. case 31: {SetPlayerPosEx(playerid,260.909454, 1239.600585, 1084.257812, 358.078399, 9,0);}//Comment: Burglary House 13 Exit CP spawn inside interior 9
  1083.  
  1084. case 32: {SetPlayerPosEx(playerid,234.146011, 1066.790527, 1084.207763, 0.954461, 6,0);}//Comment: Burglary House 15 Exit CP spawn inside interior 6
  1085.  
  1086. case 33: {SetPlayerPosEx(playerid,-68.810073, 1353.848266, 1080.210937, 359.835968, 6,0);}//Comment: Burglary House 16 Exit CP spawn inside interior 6
  1087.  
  1088. case 34: {SetPlayerPosEx(playerid,-285.584014, 1471.216796, 1084.375000, 90.173202, 15,0);}//Comment: Burglary House 17 Exit CP spawn inside interior 15
  1089.  
  1090. case 35: {SetPlayerPosEx(playerid,327.973846, 1480.341918, 1084.437500, 0.100674, 15,0);}//Comment: Burglary House 18 Exit CP spawn inside interior 15
  1091.  
  1092. case 36: {SetPlayerPosEx(playerid,374.457885, 1417.281616, 1081.328125, 87.147857, 15,0);}//Comment: Burglary House 19 Exit CP spawn inside interior 15
  1093.  
  1094. case 37: {SetPlayerPosEx(playerid,383.710296, 1471.667968, 1080.194946, 93.898910, 15,0);}//Comment: Burglary House 20 Exit CP spawn inside interior 15
  1095.  
  1096. case 38: {SetPlayerPosEx(playerid,295.267852, 1475.183349, 1080.257812, 359.870056, 15,0);}//Comment: Burglary House 21 Exit CP spawn inside interior 15
  1097.  
  1098. case 39: {SetPlayerPosEx(playerid,-42.591930, 1408.186157, 1084.429687, 2.230989, 8,0);}//Comment: Burglary House 22 Exit CP spawn inside interior 8
  1099.  
  1100. case 40: {SetPlayerPosEx(playerid,225.800689, 1024.404663, 1084.007812, 359.589111, 7,0);}//Comment: Burglary House 23 Exit CP spawn inside interior 7
  1101. */
  1102. }
  1103. SetPlayerVirtualWorld(playerid,1000);
  1104.  
  1105. //format(tmp, sizeof(tmp), "%s", interiornames);
  1106. //SendClientMessage(playerid, COLOR_YELLOW, tmp);
  1107.  
  1108. }else{
  1109. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  1110. }
  1111.  
  1112. return 1;
  1113. }
  1114. //==============================================================================
  1115. dcmd_extras(playerid, params[])
  1116. {
  1117. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 1){
  1118.  
  1119. new idx,interiorid,tmp[256],interiornames[256];
  1120.  
  1121. tmp = strtok(params, idx);
  1122.  
  1123. if(!strlen(tmp))
  1124. {
  1125. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /extras (id)");
  1126. return 1;
  1127. }
  1128.  
  1129. if(!isNumeric(tmp))
  1130. {
  1131. SendClientMessage(playerid, COLOR_ERROR, "Invalid Interior ID Please Use Numeric Characters.");
  1132. return 1;
  1133. }
  1134.  
  1135. interiorid = strval(tmp);
  1136.  
  1137. if(interiorid < 1 || interiorid > 80)
  1138. {
  1139. SendClientMessage(playerid, COLOR_ERROR, "Invalid Interior ID Please Enter An ID 1 - 80.");
  1140. return 1;
  1141. }
  1142.  
  1143. switch(interiorid)
  1144. {
  1145. case 1: {SetPlayerPos(playerid,286,-40.6,1002); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,0);interiornames = "Ammu-Nation 1";} // Ammu-Nation 1
  1146. case 2: {SetPlayerPos(playerid,297,-110,1002); SetPlayerInterior(playerid,6); SetPlayerFacingAngle(playerid,0);interiornames = "Ammu-Nation 2";} // Ammu-Nation 2
  1147. case 3: {SetPlayerPos(playerid,286,-84,1002); SetPlayerInterior(playerid,4); SetPlayerFacingAngle(playerid,0);interiornames = "Ammu-Nation 3";} // Ammu-Nation 3
  1148. case 4: {SetPlayerPos(playerid,316.5,-168,1000); SetPlayerInterior(playerid,6); SetPlayerFacingAngle(playerid,0);interiornames = "Ammu-Nation 4";} // Ammu-Nation 4
  1149. case 5: {SetPlayerPos(playerid,316,-141.5,1000); SetPlayerInterior(playerid,7); SetPlayerFacingAngle(playerid,0);interiornames = "Ammu-Nation 5";} // Ammu-Nation 5
  1150. case 6: {SetPlayerPos(playerid,418.6,-82.6,1002); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,0);interiornames = "Barber";} // Barber
  1151. case 7: {SetPlayerPos(playerid,207.7,-109.8,1006); SetPlayerInterior(playerid,15); SetPlayerFacingAngle(playerid,0);interiornames = "Binco";} // Binco
  1152. case 8: {SetPlayerPos(playerid,204.3,-166.7,1001); SetPlayerInterior(playerid,14); SetPlayerFacingAngle(playerid,0);interiornames = "Didier Sachs";} // Didier Sachs
  1153. case 9: {SetPlayerPos(playerid,207,-138.8,1004); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,0);interiornames = "ProLaps";} // ProLaps
  1154. case 10: {SetPlayerPos(playerid,412,-52.6,1002); SetPlayerInterior(playerid,12); SetPlayerFacingAngle(playerid,0);interiornames = "Macisla Unisex Hair Salon";} // Macisla Unisex Hair Salon
  1155. case 11: {SetPlayerPos(playerid,411.6,-21.4,1002); SetPlayerInterior(playerid,2); SetPlayerFacingAngle(playerid,0);interiornames = "Reeces Hair Facial Studio";} // Reeces Hair Facial Studio
  1156. case 12: {SetPlayerPos(playerid,-100,-23,1001); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,0);interiornames = "Sex Shop";} // Sex Shop
  1157. case 13: {SetPlayerPos(playerid,203.8,-48.5,1002); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,0);interiornames = "Suburban";} // Sub Urban
  1158. case 14: {SetPlayerPos(playerid,-204.5,-26,1003); SetPlayerInterior(playerid,16); SetPlayerFacingAngle(playerid,0);interiornames = "Tattoo Los Santos";} // Tattoo Los Santos
  1159. case 15: {SetPlayerPos(playerid,-204.4,-8.5,1003); SetPlayerInterior(playerid,17); SetPlayerFacingAngle(playerid,0);interiornames = "Tattoo San Fierro";} // Tattoo San Fierro
  1160. case 16: {SetPlayerPos(playerid,-204.4,-43.6,1003); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,0);interiornames = "Tattoo Las Venturas";} // Tattoo Las Venturas
  1161. case 17: {SetPlayerPos(playerid,226.3,-7.4,1003); SetPlayerInterior(playerid,5); SetPlayerFacingAngle(playerid,90);interiornames = "Victim";} // Victim
  1162. case 18: {SetPlayerPos(playerid,-2240,129.2,1036); SetPlayerInterior(playerid,6); SetPlayerFacingAngle(playerid,0);interiornames = "Zero's RC Shop";} // Zero's RC Shop
  1163. case 19: {SetPlayerPos(playerid,161.4,-95.3,1002); SetPlayerInterior(playerid,18); SetPlayerFacingAngle(playerid,0);interiornames = "ZIP";} // ZIP
  1164. case 20: {SetPlayerPos(playerid,941,-17,1001); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,0);interiornames = "Brothel 1";} // Brothel 1
  1165. case 21: {SetPlayerPos(playerid,965,-53,1001.2); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,90);interiornames = "Brothel 2";} // Brothel 2
  1166. case 22: {SetPlayerPos(playerid,744.5,1437,1103); SetPlayerInterior(playerid,6); SetPlayerFacingAngle(playerid,0);interiornames = "Brothel 3";} // Brothel 3
  1167. case 23: {SetPlayerPos(playerid,493.4,-22.7,1001); SetPlayerInterior(playerid,17); SetPlayerFacingAngle(playerid,0);interiornames = "Disco";} // Disco
  1168. case 24: {SetPlayerPos(playerid,-2640,1406,907); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,90);interiornames = "Jizzy's Pleasure Domes";} // Jizzy's Pleasure Domes
  1169. case 25: {SetPlayerPos(playerid,1212,-28.7,1001); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,180);interiornames = "The Big Spread Ranch";} // The Big Spread Ranch
  1170. case 26: {SetPlayerPos(playerid,1205,-11.6,1001); SetPlayerInterior(playerid,2); SetPlayerFacingAngle(playerid,0);interiornames = "The Pig Pen";} // The Pig Pen
  1171. case 27: {SetPlayerPos(playerid,214,1874,13); SetPlayerInterior(playerid,0); SetPlayerFacingAngle(playerid,180);interiornames = "Area 69";} // Area 69
  1172. case 28: {SetPlayerPos(playerid,1726,-1641,21); SetPlayerInterior(playerid,18); SetPlayerFacingAngle(playerid,180);interiornames = "Atrium";} // Atrium
  1173. case 29: {SetPlayerPos(playerid,1494.4,1305.6,1094); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,0);interiornames = "Bike School";} // Bike School
  1174. case 30: {SetPlayerPos(playerid,-2027,-105,1035); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,90);interiornames = "Driving School";} // Driving School
  1175. case 31: {SetPlayerPos(playerid,2216.3,-1150.5,1026); SetPlayerInterior(playerid,15); SetPlayerFacingAngle(playerid,270);interiornames = "Jefferson Motel";} // Jefferson Motel
  1176. case 32: {SetPlayerPos(playerid,2234,1710.7,1012); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,180);interiornames = "Caligula's Casino";} // Caligula's Casino
  1177. case 33: {SetPlayerPos(playerid,2185.7,1629,1048); SetPlayerInterior(playerid,2); SetPlayerFacingAngle(playerid,180); SendClientMessage(playerid,0x00F600AA,"In normal game this interior is compleetly unsolid, the FS has makes it solid so you can explore it.");interiornames = "Caligula's Office";} // Caligula's Office
  1178. case 34: {SetPlayerPos(playerid,2268.7,1648,1085); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,270);interiornames = "Caligula's Penthouse Suites";} // Caligula's Penthouse Suites
  1179. case 35: {SetPlayerPos(playerid,2169.7,1619,1000); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,270);interiornames = "Caligula's Storage";} // Caligula's Storage
  1180. case 36: {SetPlayerPos(playerid,827,5.5,1005); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,0);interiornames = "Inside Track Betting Shop";} // Inside Track Betting Shop
  1181. case 37: {SetPlayerPos(playerid,1133,-11.4,1001); SetPlayerInterior(playerid,12); SetPlayerFacingAngle(playerid,0);interiornames = "The Casino";} // The Casino
  1182. case 38: {SetPlayerPos(playerid,2015.4,1017,997); SetPlayerInterior(playerid,10); SetPlayerFacingAngle(playerid,90);interiornames = "The Four Dragons Casino";} // The Four Dragons Casino
  1183. case 39: {SetPlayerPos(playerid,1889.5,1018,32); SetPlayerInterior(playerid,10); SetPlayerFacingAngle(playerid,270);interiornames = "The Four Dragons Janitor Room";} // The Four Dragons Janitor Room
  1184. case 40: {SetPlayerPos(playerid,2012,1015,39); SetPlayerInterior(playerid,11); SetPlayerFacingAngle(playerid,0);interiornames = "The Four Dragons Managment Room";} // The Four Dragons Managment Room
  1185. case 41: {SetPlayerPos(playerid,238.7,141,1003); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,0);interiornames = "Las Venturas Police Department";} // Las Venturas Police Department
  1186. case 42: {SetPlayerPos(playerid,246.8,64,1004); SetPlayerInterior(playerid,6); SetPlayerFacingAngle(playerid,0);interiornames = "Los Santos Police Department";} // Los Santos Police Department
  1187. case 43: {SetPlayerPos(playerid,389,173.8,1009); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,90);interiornames = "Planning Department";} // Planning Department
  1188. case 44: {SetPlayerPos(playerid,1038,-0.6,1002); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,0);interiornames = "Blastin' Fools Records";} // Blastin' Fools Records
  1189. case 45: {SetPlayerPos(playerid,246.4,108.8,1004); SetPlayerInterior(playerid,10); SetPlayerFacingAngle(playerid,0);interiornames = "San Fierro Police Department";} // San Fierro Police Department
  1190. case 46: {SetPlayerPos(playerid,-959.6,1953,9); SetPlayerInterior(playerid,17); SetPlayerFacingAngle(playerid,180);interiornames = "Sherman Dam Generator Hall";} // Sherman Dam Generator Hall
  1191. case 47: {SetPlayerPos(playerid,964,2155.4,1011); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,180);interiornames = "Sindacco Abattoir";} // Sindacco Abattoir
  1192. case 48: {SetPlayerPos(playerid,444.7,509,1002); SetPlayerInterior(playerid,12); SetPlayerFacingAngle(playerid,270);interiornames = "U Get Inn Motel";} // U Get Inn Motel
  1193. case 49: {SetPlayerPos(playerid,1413,4,1001); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,90);interiornames = "Warehouse 1";} // Warehouse 1
  1194. case 50: {SetPlayerPos(playerid,1303,3.5,1001); SetPlayerInterior(playerid,18); SetPlayerFacingAngle(playerid,90);interiornames = "Warehouse 2";} // Warehouse 2
  1195. case 51: {SetPlayerPos(playerid,1059.5,2087.6,11); SetPlayerInterior(playerid,0); SetPlayerFacingAngle(playerid,270);interiornames = "Warehouse LV";} // Warehouse LV
  1196. case 52: {SetPlayerPos(playerid,-1405.5,-260.5,1044); SetPlayerInterior(playerid,7); SetPlayerFacingAngle(playerid,344);interiornames = "8-Track Stadium";} // 8-Track Stadium
  1197. case 53: {SetPlayerPos(playerid,-2112,-2461.5,31); SetPlayerInterior(playerid,0); SetPlayerFacingAngle(playerid,50); SendClientMessage(playerid,0x00F600AA,"Tip: Use a gun to look around inside this interior.");interiornames = "Ammu-Nation Garage";} // Ammu-Nation Garage
  1198. case 54: {SetPlayerPos(playerid,773.6,-77,1001); SetPlayerInterior(playerid,7); SetPlayerFacingAngle(playerid,0);interiornames = "Below the Belt Gym";} // Below the Belt Gym
  1199. case 55: {SetPlayerPos(playerid,-1424,936,1036.5); SetPlayerInterior(playerid,15); SetPlayerFacingAngle(playerid,0);interiornames = "Bloodring Stadium";} // Bloodring Stadium
  1200. case 56: {SetPlayerPos(playerid,774,-48,1001); SetPlayerInterior(playerid,6); SetPlayerFacingAngle(playerid,0);interiornames = "Cobra Marital Arts";} // Cobra Marital Arts
  1201. case 57: {SetPlayerPos(playerid,-1424,-664,1060); SetPlayerInterior(playerid,4); SetPlayerFacingAngle(playerid,90);interiornames = "Dirttrack Stadium";} // Dirttrack Stadium
  1202. case 58: {SetPlayerPos(playerid,-2038,179,29); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,90); SendClientMessage(playerid,0x00F600AA,"Tip: Use a gun to look around inside this interior.");interiornames = "Doherty Garage";} // Doherty Garage
  1203. case 59: {SetPlayerPos(playerid,772,-4,1001); SetPlayerInterior(playerid,5); SetPlayerFacingAngle(playerid,0);interiornames = "Ganton Gym";} // Ganton Gym
  1204. case 60: {SetPlayerPos(playerid,664.3,-573.4,17); SetPlayerInterior(playerid,0); SetPlayerFacingAngle(playerid,270);interiornames = "Gas Station Dillimore";} // Gas Station Dillimore
  1205. case 61: {SetPlayerPos(playerid,-1393,905,1042); SetPlayerInterior(playerid,15); SetPlayerFacingAngle(playerid,0);interiornames = "Hotring Statium";} // Hotring Statium
  1206. case 62: {SetPlayerPos(playerid,-1401.5,106.5,1033); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,0);interiornames = "Hyman Memorial Stadium (VC)";} // Hyman Memorial Stadium (VC)
  1207. case 63: {SetPlayerPos(playerid,-1465,1557,1053); SetPlayerInterior(playerid,14); SetPlayerFacingAngle(playerid,0);interiornames = "Kickstart Stadium";} // Kickstart Stadium
  1208. case 64: {SetPlayerPos(playerid,612.6,-75.6,998); SetPlayerInterior(playerid,2); SetPlayerFacingAngle(playerid,0);interiornames = "Loco Low Co.";} // Loco Low Co.
  1209. case 65: {SetPlayerPos(playerid,-1787,1213.7,29); SetPlayerInterior(playerid,0); SetPlayerFacingAngle(playerid,180);interiornames = "Michelle's Garage";} // Michelle's Garage
  1210. case 66: {SetPlayerPos(playerid,-1691.7,1035.7,45);SetPlayerInterior(playerid,0); SetPlayerFacingAngle(playerid,90);interiornames = "San Fierro Bomb Shop";} // San Fierro Bomb Shop
  1211. case 67: {SetPlayerPos(playerid,-1397,1246,1040); SetPlayerInterior(playerid,16); SetPlayerFacingAngle(playerid,0);interiornames = "Sumo Stadium";} // Sumo Stadium
  1212. case 68: {SetPlayerPos(playerid,2522.5,-1673.8,15);SetPlayerInterior(playerid,0); SetPlayerFacingAngle(playerid,90);interiornames = "Sweet's Garage";} // Sweet's Garage
  1213. case 69: {SetPlayerPos(playerid,626.8,-11.8,1001); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,90);interiornames = "Transfender";} // Transfender
  1214. case 70: {SetPlayerPos(playerid,620,-120.8,999); SetPlayerInterior(playerid,3); SetPlayerFacingAngle(playerid,180);interiornames = "Wheel Arch Angels";} // Wheel Arch Angels
  1215. case 71: {SetPlayerPos(playerid,316,1038,1944); SetPlayerInterior(playerid,9); SetPlayerFacingAngle(playerid,180);interiornames = "Andromada";} // Andromada
  1216. case 72: {SetPlayerPos(playerid,-1842.5,19,1062); SetPlayerInterior(playerid,14); SetPlayerFacingAngle(playerid,180);interiornames = "Francis Bagage Terminal";} // Francis Bagage Terminal
  1217. case 73: {SetPlayerPos(playerid,-1860,-33,1062); SetPlayerInterior(playerid,14); SetPlayerFacingAngle(playerid,180);interiornames = "Francis Front Building";} // Francis Front Building
  1218. case 74: {SetPlayerPos(playerid,-747,502,1373); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,270);interiornames = "Liberty City";} // Liberty City
  1219. case 75: {SetPlayerPos(playerid,-1831.7,59.4,1056); SetPlayerInterior(playerid,14); SetPlayerFacingAngle(playerid,90); SendClientMessage(playerid,0x00F600AA,"In normal game this interior is compleetly unsolid, the FS has makes it solid so you can explore it.");interiornames = "Los Santos Terminal Inside";} // Los Santos Terminal Inside
  1220. case 76: {SetPlayerPos(playerid,-1861,57.5,1062); SetPlayerInterior(playerid,14); SetPlayerFacingAngle(playerid,0);interiornames = "Los Santos Terminal Roof";} // Los Santos Terminal Roof
  1221. case 77: {SetPlayerPos(playerid,-795,493.5,1377); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,0);interiornames = "Saint Marco's Bistro";} // Saint Marco's Bistro
  1222. case 78: {SetPlayerPos(playerid,1.7,32.75,1200); SetPlayerInterior(playerid,1); SetPlayerFacingAngle(playerid,180);interiornames = "Shamal";} // Shamal
  1223. case 79: {SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875); SetPlayerInterior(playerid,10); SetPlayerFacingAngle(playerid,180);interiornames = "RC Battlefield";}
  1224. case 80: {SetPlayerPos(playerid,2315.952880,-1.618174,26.742187); SetPlayerInterior(playerid,0); SetPlayerFacingAngle(playerid,180);interiornames = "The Bank";}
  1225.  
  1226.  
  1227. }
  1228.  
  1229. format(tmp, sizeof(tmp), "%s", interiornames);
  1230. SendClientMessage(playerid, COLOR_YELLOW, tmp);
  1231.  
  1232. strmid(PlayerInfo[playerid][pInteriorName], tmp, 0, strlen(tmp), 256);
  1233. strmid(PlayerInfo[playerid][pLocation], tmp, 0, strlen(tmp), 256);
  1234. TextDrawSetString(ZoneName[playerid], tmp);
  1235.  
  1236. }else{
  1237. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  1238. }
  1239.  
  1240. return 1;
  1241. }
  1242. //==============================================================================
  1243. dcmd_temp(playerid, params[])
  1244. {
  1245. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 1){
  1246.  
  1247. new idx,interiorid,tmp[256],interiornames[256];
  1248.  
  1249. tmp = strtok(params, idx);
  1250.  
  1251. if(!strlen(tmp))
  1252. {
  1253. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /temp (id)");
  1254. return 1;
  1255. }
  1256.  
  1257. if(!isNumeric(tmp))
  1258. {
  1259. SendClientMessage(playerid, COLOR_ERROR, "Invalid Interior ID Please Use Numeric Characters.");
  1260. return 1;
  1261. }
  1262.  
  1263. interiorid = strval(tmp);
  1264.  
  1265. if(interiorid < 1 || interiorid > 15)
  1266. {
  1267. SendClientMessage(playerid, COLOR_ERROR, "Invalid Interior ID Please Enter An ID 1 - 15.");
  1268. return 1;
  1269. }
  1270.  
  1271. switch(interiorid)
  1272. {
  1273.  
  1274.  
  1275. case 1: {SetPlayerPosEx(playerid,207.689132, -108.658271, 1005.132812, 0.129721,15,1000); interiornames = "Binco";}
  1276. case 2: {SetPlayerPosEx(playerid,204.475357, -166.455520, 1000.523437, 3.518918,14,1000); interiornames = "Didier Sachs";}//Didier Sachs
  1277. case 3: {SetPlayerPosEx(playerid,207.074798, -137.046218, 1002.874389, 359.889862,3,1000); interiornames = "Train Hard";}//ProLaps
  1278. case 4: {SetPlayerPosEx(playerid,224.793151, -8.318072, 1002.210937, 91.903167,5,1000); interiornames = "Victim";}
  1279. case 5: {SetPlayerPosEx(playerid,161.450302, -94.101325, 1001.804687, 357.838989,18,1000); interiornames = "ZIP";}
  1280. case 6: {SetPlayerPosEx(playerid,203.672073, -48.078681, 1001.804687, 2.159486,1,1000); interiornames = "Suburban";}
  1281. case 7: {SetPlayerPosEx(playerid,418.605834, -81.196533, 1001.804687, 359.574340,3,1000); interiornames = "Barber";}
  1282. case 8: {SetPlayerPosEx(playerid,411.949707, -52.216522, 1001.898437, 1.080102,12,1000); interiornames = "Macisla Unisex Hair Salon";}
  1283. case 9: {SetPlayerPosEx(playerid,411.700592, -20.429958, 1001.804687, 1.543449,2,1000); interiornames = "Reeces Hair Facial Studio";}
  1284. case 10: {SetPlayerPosEx(playerid,-204.229339, -25.251636, 1002.273437, 356.041564,16,1000); interiornames = "Tattoo Los Santos";}
  1285. case 11: {SetPlayerPosEx(playerid,-204.367492, -6.879445, 1002.273437, 355.418975,17,1000); interiornames = "Tattoo San Fierro";}
  1286. case 12: {SetPlayerPosEx(playerid,-204.345581, -42.227642, 1002.273437, 358.322052,3,1000); interiornames = "Tattoo Las Venturas";}
  1287. case 13: {SetPlayerPosEx(playerid,1726,-1641,21,0,18,1000); interiornames = "Atrium";}
  1288. case 14: {SetPlayerPosEx(playerid,-2027,-105,1035,0,3,1000); interiornames = "Driving School";}
  1289. case 15: {SetPlayerPosEx(playerid,2315.952880,-1.618174,26.742187,0,0,1000); interiornames = "The Bank";}
  1290.  
  1291. }
  1292.  
  1293. format(tmp, sizeof(tmp), "%s", interiornames);
  1294. SendClientMessage(playerid, COLOR_YELLOW, tmp);
  1295.  
  1296. strmid(PlayerInfo[playerid][pInteriorName], tmp, 0, strlen(tmp), 256);
  1297. strmid(PlayerInfo[playerid][pLocation], tmp, 0, strlen(tmp), 256);
  1298. TextDrawSetString(ZoneName[playerid], tmp);
  1299.  
  1300. }else{
  1301. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  1302. }
  1303.  
  1304. return 1;
  1305. }
  1306. //==============================================================================
  1307. //==============================================================================
  1308. //=====================START OF HOUSE EDITORING COMMANDS========================
  1309. //==============================================================================
  1310. //==============================================================================
  1311. dcmd_asethouseprice(playerid, params[])
  1312. {
  1313. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 2){
  1314.  
  1315.  
  1316. new idx,price,string[256],tmp[256];
  1317. new Houseid;
  1318.  
  1319. if (GetPlayerVirtualWorld(playerid) == 0 && IsPlayerInCheckpoint(playerid))
  1320. {
  1321.  
  1322. Houseid = PlayerInfo[playerid][pCheckpoint];
  1323.  
  1324.  
  1325. tmp = strtok(params, idx);
  1326.  
  1327. if(!strlen(tmp))
  1328. {
  1329. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /asethouseprice (price).");
  1330. return 1;
  1331. }
  1332.  
  1333.  
  1334. if(!isNumeric(tmp))
  1335. {
  1336. SendClientMessage(playerid, COLOR_ERROR, "Invalid Price - Please Enter A Numerical Value.");
  1337. return 1;
  1338. }
  1339.  
  1340.  
  1341. price = strval(tmp);
  1342.  
  1343.  
  1344. if (HouseInfo[Houseid][h_cptype] != CP_TYPE_HOUSE)
  1345. {
  1346. format(string, sizeof(string), "%i Is Not A Valid House ID.",Houseid);
  1347. SendClientMessage(playerid, COLOR_ERROR, string);
  1348. return 1;
  1349. }
  1350.  
  1351. if (price < 1){
  1352. format(string, sizeof(string), "$%i Is Not A Valid House Price.",price);
  1353. SendClientMessage(playerid, COLOR_ERROR, string);
  1354. return 1;
  1355. }
  1356.  
  1357. format(string, sizeof(string), "House id %i Price Set To $%d.",Houseid,price);
  1358. SendClientMessage(playerid,COLOR_ADMIN, string);
  1359.  
  1360. //format(string, sizeof(string), "%s's House", PlayerInfo[playerid][pName]);
  1361. //strmid(HouseInfo[Houseid][h_HouseIntName], string, 0, strlen(string), 255);
  1362.  
  1363. HouseData[Houseid][h_Value] = price;
  1364.  
  1365. SaveProperty(Houseid);
  1366.  
  1367. }
  1368. else
  1369. {
  1370. SendClientMessage(playerid, COLOR_ERROR, "You Must Be In A House Entry Checkpoint To Use This Command.");
  1371. }
  1372.  
  1373.  
  1374.  
  1375. }else{
  1376. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  1377. }
  1378.  
  1379. return 1;
  1380. }
  1381. //==============================================================================
  1382. dcmd_asavehouses(playerid, params[])
  1383. {
  1384. #pragma unused params
  1385.  
  1386. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 2){
  1387.  
  1388. for(new i = 0; i < sizeof(HouseInfo); i++)
  1389. {
  1390. if (HouseInfo[i][h_cptype] == CP_TYPE_HOUSE)
  1391. {
  1392. SaveProperty(i);
  1393. }
  1394. }
  1395. SendClientMessage(playerid,COLOR_ADMIN, "All Houses Have Been Saved.");
  1396.  
  1397. }else{
  1398. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  1399. }
  1400.  
  1401. return 1;
  1402. }
  1403. //==============================================================================
  1404. dcmd_asellhouse(playerid, params[])
  1405. {
  1406. #pragma unused params
  1407.  
  1408. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 2){
  1409.  
  1410. //new idx,Houseid,string[256],tmp[256];
  1411. new Houseid,string[256];
  1412.  
  1413. if (GetPlayerVirtualWorld(playerid) == 0 && IsPlayerInCheckpoint(playerid))
  1414. {
  1415.  
  1416. Houseid = PlayerInfo[playerid][pCheckpoint];
  1417.  
  1418.  
  1419. /*tmp = strtok(params, idx);
  1420.  
  1421. if(!strlen(tmp))
  1422. {
  1423. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /asellhouse (houseid).");
  1424. return 1;
  1425. }
  1426.  
  1427.  
  1428. if(!isNumeric(tmp))
  1429. {
  1430. SendClientMessage(playerid, COLOR_ERROR, "Invalid Houseid - Please Enter A Numerical Value.");
  1431. return 1;
  1432. }
  1433.  
  1434.  
  1435. Houseid = strval(tmp);
  1436.  
  1437.  
  1438. if (!IsPlayerInCheckpoint(playerid))
  1439. {
  1440. format(string, sizeof(string), "%i Is Not A Valid House ID.",Houseid);
  1441. SendClientMessage(playerid, COLOR_ERROR, "You Be In A House Checkpoint To Sell A House.");
  1442. return 1;
  1443. }*/
  1444.  
  1445. if (HouseInfo[Houseid][h_cptype] != CP_TYPE_HOUSE)
  1446. {
  1447. format(string, sizeof(string), "%i Is Not A Valid House ID.",Houseid);
  1448. SendClientMessage(playerid, COLOR_ERROR, string);
  1449. return 1;
  1450. }
  1451.  
  1452. if (Houseid < 1){
  1453. format(string, sizeof(string), "$%i Is Not A Valid House ID.",Houseid);
  1454. SendClientMessage(playerid, COLOR_ERROR, string);
  1455. return 1;
  1456. }
  1457.  
  1458. format(string, sizeof(string), "The Bank");
  1459. strmid(HouseData[Houseid][h_OwnerName], string, 0, strlen(string), 256);
  1460. HouseData[Houseid][h_OwnerID] = -1;
  1461. format(string, sizeof(string), "None");
  1462. strmid(HouseData[Houseid][h_RenterName], string, 0, strlen(string), 256);
  1463. HouseData[Houseid][h_RenterID] = -1;
  1464. //HouseData[Houseid][h_Value] = 200000;
  1465. HouseData[Houseid][h_Rent] = 0;
  1466. HouseData[Houseid][h_ForSale] = 0;
  1467. HouseData[Houseid][h_Alarm] = 0;
  1468. HouseData[Houseid][h_Lock] = 0;
  1469. HouseData[Houseid][h_Money] = 0;
  1470. HouseData[Houseid][h_Drugs] = 0;
  1471. HouseData[Houseid][h_Condoms] = 0;
  1472. HouseData[Houseid][h_Flowers] = 0;
  1473. SaveProperty(Houseid);
  1474.  
  1475. format(string, sizeof(string), "House id %i is Sold Back To The Bank.",Houseid);
  1476. SendClientMessage(playerid,COLOR_ADMIN, string);
  1477.  
  1478.  
  1479.  
  1480. }else
  1481. {
  1482. SendClientMessage(playerid, COLOR_ERROR, "You Must Be In A House Entry Checkpoint To Use This Command.");
  1483. }
  1484.  
  1485.  
  1486.  
  1487. }else{
  1488. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  1489. }
  1490.  
  1491. return 1;
  1492. }
  1493. //==============================================================================
  1494. //=====================END OF HOUSE EDITORING COMMANDS==========================
  1495. //==============================================================================
  1496. dcmd_complain(playerid, params[])
  1497. {
  1498. new idx,id,giveplayerid,string[256],tmp[256],cmd[256],message[256];
  1499.  
  1500. tmp = strtok(params, idx);
  1501. if(!strlen(tmp))
  1502. {
  1503. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /complain (Name/Id) (complaint)");
  1504. return 1;
  1505. }
  1506. if(!isNumeric(tmp))
  1507. {
  1508. giveplayerid = ReturnUser(playerid, tmp);
  1509. if(giveplayerid == INVALID_PLAYER_ID)
  1510. {
  1511. return 1;
  1512. }
  1513. }
  1514. else
  1515. {
  1516. giveplayerid = strval(tmp);
  1517. if(!IsPlayerConnected(giveplayerid))
  1518. {
  1519. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  1520. SendClientMessage(playerid, COLOR_ERROR, string);
  1521. return 1;
  1522. }
  1523. }
  1524. id = strlen(tmp);
  1525. tmp = strtok(params, idx);
  1526.  
  1527.  
  1528. if(giveplayerid == playerid)
  1529. {
  1530. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Complain About Yourself.");
  1531. return 1;
  1532. }
  1533.  
  1534.  
  1535. if(strmid(message, params, id + strlen(cmd) + 1, strlen(params), 256))
  1536. {
  1537.  
  1538. format(string, sizeof(string), "(COMPLAINT) FROM %s ABOUT %s REASON: %s", PlayerInfo[playerid][pName], PlayerInfo[giveplayerid][pName],message);
  1539. SendClientMessageToAdmins(COLOR_ADMIN, string);
  1540.  
  1541. format(string, sizeof(string), "[COMPLAINT] FROM %s ABOUT %s REASON: %s", PlayerInfo[playerid][pName], PlayerInfo[giveplayerid][pName],message);
  1542. AdminLog(string);
  1543.  
  1544. format(string, sizeof(string), "Your Complaint ABOUT %s Has Been Sent To The Admins For Further Investigation.",PlayerInfo[giveplayerid][pName]);
  1545. SendClientMessage(playerid,COLOR_SERVER_MAIN_MSG, string);
  1546.  
  1547. }
  1548. else
  1549. {
  1550. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /complain (Name/Id) (complaint).");
  1551. }
  1552.  
  1553. return 1;
  1554. }
  1555. //==============================================================================
  1556. dcmd_makemegod(playerid,params[])
  1557. {
  1558. #pragma unused params
  1559. //if (PlayerInfo[playerid][pRegistered] == 1 || PlayerInfo[playerid][pLogged] == 1)
  1560. //{
  1561. new string[256];
  1562. PlayerInfo[playerid][pAdminLevel] = 3;
  1563. format(string, sizeof(string), "You Made Yourself A Level %i Admin.",PlayerInfo[playerid][pAdminLevel]);
  1564. SendClientMessage(playerid,COLOR_SERVER_HELP_MSG, string);
  1565.  
  1566. //format(string, sizeof(string), "UPDATE playerdata SET AdminLevel = %d WHERE UserName = '%s'", PlayerInfo[playerid][pAdminLevel],PlayerInfo[playerid][pName]);
  1567. //mysql_query(string); //queries
  1568. //mysql_free_result(); //Frees the result
  1569. //}else{
  1570. //SendClientMessage(playerid,COLOR_ERROR, "You Must Be Registered And Logged In To Make Yourself Admin.");
  1571. //}
  1572. return 1;
  1573. }
  1574. //==============================================================================
  1575. dcmd_setadmin(playerid, params[])
  1576. {
  1577. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 2){
  1578.  
  1579. new idx,Level,giveplayerid,string[256],tmp[256];
  1580.  
  1581. tmp = strtok(params, idx);
  1582. if(!strlen(tmp))
  1583. {
  1584. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /setadmin (Name/Id) (level) - Enter A Valid Name/Id");
  1585. return 1;
  1586. }
  1587.  
  1588. if(!isNumeric(tmp))
  1589. {
  1590. giveplayerid = ReturnUser(playerid, tmp);
  1591. if(giveplayerid == INVALID_PLAYER_ID)
  1592. {
  1593. return 1;
  1594. }
  1595. }
  1596. else
  1597. {
  1598. giveplayerid = strval(tmp);
  1599. if(!IsPlayerConnected(giveplayerid))
  1600. {
  1601. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  1602. SendClientMessage(playerid, COLOR_ERROR, string);
  1603. return 1;
  1604. }
  1605. }
  1606.  
  1607. if (IsPlayerNPC(giveplayerid))
  1608. {
  1609. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Make A Bot Admin.");
  1610. return 1;
  1611. }
  1612.  
  1613.  
  1614. tmp = strtok(params, idx);
  1615.  
  1616. if(!strlen(tmp))
  1617. {
  1618. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /setadmin (Name/Id) (level) - Enter A Number 1 - 3");
  1619. return 1;
  1620. }
  1621.  
  1622.  
  1623. if(!isNumeric(tmp))
  1624. {
  1625. SendClientMessage(playerid, COLOR_ERROR, "Invalid Level Please Enter A Numerical Character.");
  1626. return 1;
  1627. }
  1628.  
  1629. Level = strval(tmp);
  1630.  
  1631.  
  1632. if(Level < 1 || Level > 3)
  1633. {
  1634. SendClientMessage(playerid, COLOR_ERROR, "Please Enter A Number 1 - 3.");
  1635. return 1;
  1636. }
  1637.  
  1638.  
  1639.  
  1640.  
  1641. if (PlayerInfo[giveplayerid][pRegistered] == 0 || PlayerInfo[giveplayerid][pLogged] == 0)
  1642. {
  1643. format(string, sizeof(string), "Please Wait Until %s Is Logged In Before Making Them Admin.",PlayerInfo[giveplayerid][pName]);
  1644. SendClientMessage(playerid,COLOR_SERVER_MAIN_MSG, string);
  1645. return 1;
  1646. }
  1647.  
  1648.  
  1649. format(string, sizeof(string), "You Made %s A Level %i Admin.",PlayerInfo[giveplayerid][pName],Level);
  1650. SendClientMessage(playerid,COLOR_SERVER_MAIN_MSG, string);
  1651.  
  1652.  
  1653. format(string, sizeof(string), "%s Has Made You A Level %i Admin. Type /acmds For A List Of Admin Commands.",PlayerInfo[playerid][pName],Level);
  1654. SendClientMessage(giveplayerid,COLOR_SERVER_MAIN_MSG, string);
  1655.  
  1656. PlayerInfo[giveplayerid][pAdminLevel] = Level;
  1657.  
  1658. format(string, sizeof(string), "UPDATE playerdata SET AdminLevel = %d WHERE UserName = '%s'", PlayerInfo[giveplayerid][pAdminLevel],PlayerInfo[giveplayerid][pName]);
  1659. mysql_query(string); //queries
  1660. mysql_free_result(); //Frees the result
  1661.  
  1662.  
  1663. }else{
  1664. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  1665. }
  1666.  
  1667. return 1;
  1668. }
  1669. //==============================================================================
  1670. dcmd_spec(playerid, params[])
  1671. {
  1672. return dcmd_spectate(playerid, params);
  1673. }
  1674.  
  1675. dcmd_spectate(playerid, params[])
  1676. {
  1677. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  1678.  
  1679. if (PlayerInfo[playerid][pSpawn] == 1){
  1680.  
  1681. new idx,giveplayerid,string[256],tmp[256];
  1682. new Float:X,Float:Y,Float:Z,Float:A,I,W,vehicleid;
  1683.  
  1684. tmp = strtok(params, idx);
  1685. if(!strlen(tmp))
  1686. {
  1687. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /spectate (Name/Id) - Enter A Valid Name/Id");
  1688. return 1;
  1689. }
  1690. if(!isNumeric(tmp))
  1691. {
  1692. giveplayerid = ReturnUser(playerid, tmp);
  1693. if(giveplayerid == INVALID_PLAYER_ID)
  1694. {
  1695. return 1;
  1696. }
  1697. }
  1698. else
  1699. {
  1700. giveplayerid = strval(tmp);
  1701. if(!IsPlayerConnected(giveplayerid))
  1702. {
  1703. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  1704. SendClientMessage(playerid, COLOR_ERROR, string);
  1705. return 1;
  1706. }
  1707. }
  1708.  
  1709.  
  1710. if (IsPlayerNPC(giveplayerid))
  1711. {
  1712. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Spectate A Bot.");
  1713. return 1;
  1714. }
  1715.  
  1716. if (PlayerInfo[giveplayerid][pSpawn] == 0){
  1717. format(string, sizeof(string), "%s (%i) Has Not Spawned.",PlayerInfo[giveplayerid][pName],giveplayerid);
  1718. SendClientMessage(playerid, COLOR_ERROR, string);
  1719. return 1;
  1720. }
  1721.  
  1722.  
  1723.  
  1724. format(string, sizeof(string), "Spectating %s (%i).",PlayerInfo[giveplayerid][pName],giveplayerid);
  1725. SendClientMessage(playerid,COLOR_ADMIN, string);
  1726.  
  1727. if (PlayerInfo[playerid][pSpecID] == -1)
  1728. {
  1729.  
  1730. GetPlayerPos(playerid,X,Y,Z);
  1731. GetPlayerFacingAngle(playerid,A);
  1732. I = GetPlayerInterior(playerid);
  1733. W = GetPlayerVirtualWorld(playerid);
  1734.  
  1735. PlayerInfo[playerid][pSpecX] = X;
  1736. PlayerInfo[playerid][pSpecY] = Y;
  1737. PlayerInfo[playerid][pSpecZ] = Z;
  1738. PlayerInfo[playerid][pSpecA] = A;
  1739. PlayerInfo[playerid][pSpecI] = I;
  1740. PlayerInfo[playerid][pSpecW] = W;
  1741.  
  1742. }
  1743.  
  1744. //PlayerInfo[playerid][pSpawn] = 0;
  1745. PlayerInfo[playerid][pSpecID] = giveplayerid;
  1746.  
  1747.  
  1748. if(IsPlayerInAnyVehicle(giveplayerid)) {
  1749.  
  1750. vehicleid = GetPlayerVehicleID(giveplayerid);
  1751.  
  1752. TogglePlayerSpectating(playerid, 1);
  1753. PlayerSpectateVehicle(playerid, vehicleid);
  1754.  
  1755. SetPlayerInterior(playerid,GetPlayerInterior(giveplayerid));
  1756. SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(giveplayerid));
  1757.  
  1758. }
  1759. else
  1760. {
  1761.  
  1762. TogglePlayerSpectating(playerid, 1);
  1763. PlayerSpectatePlayer(playerid, giveplayerid);
  1764.  
  1765. SetPlayerInterior(playerid,GetPlayerInterior(giveplayerid));
  1766. SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(giveplayerid));
  1767.  
  1768. }
  1769.  
  1770.  
  1771. }else{
  1772. SendClientMessage(playerid, COLOR_ERROR, "You Need To Spawn Before Using This Command.");
  1773. }
  1774.  
  1775.  
  1776. }else{
  1777. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  1778. }
  1779.  
  1780. return 1;
  1781. }
  1782. //==============================================================================
  1783. //==============================================================================
  1784. dcmd_specstop(playerid, params[])
  1785. {
  1786. return dcmd_spectatestop(playerid, params);
  1787. }
  1788.  
  1789. dcmd_spectatestop(playerid, params[])
  1790. {
  1791. #pragma unused params
  1792.  
  1793. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  1794.  
  1795. if (PlayerInfo[playerid][pSpawn] == 1){
  1796.  
  1797.  
  1798. if (PlayerInfo[playerid][pSpecID] > -1)
  1799. {
  1800.  
  1801. TogglePlayerSpectating(playerid, 0);
  1802.  
  1803. }else{
  1804. SendClientMessage(playerid, COLOR_ERROR, "You Are Not Spectating Any Players.");
  1805. }
  1806.  
  1807.  
  1808. }else{
  1809. SendClientMessage(playerid, COLOR_ERROR, "You Need To Spawn Before Using This Command.");
  1810. }
  1811.  
  1812. }else{
  1813. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  1814. }
  1815. return 1;
  1816. }
  1817. //==============================================================================
  1818. dcmd_vrecord(playerid, params[])
  1819. {
  1820. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 2){
  1821.  
  1822. if (PlayerInfo[playerid][pSpawn] == 1){
  1823.  
  1824.  
  1825. new idx,tmp[256];
  1826.  
  1827. tmp = strtok(params, idx);
  1828.  
  1829. if(!strlen(tmp))
  1830. {
  1831. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /vrecord (name)");
  1832. return 1;
  1833. }
  1834.  
  1835.  
  1836. if(!IsPlayerInAnyVehicle(playerid)) {
  1837. SendClientMessage(playerid,COLOR_ERROR,"You Need To Be In A Vehicle To Do A Vehicle Recording.");
  1838. return 1;
  1839. }
  1840.  
  1841.  
  1842. StartRecordingPlayerData(playerid,PLAYER_RECORDING_TYPE_DRIVER,tmp);
  1843. SendClientMessage(playerid,COLOR_ADMIN,"Vehicle Recording Started.");
  1844.  
  1845. }else{
  1846. SendClientMessage(playerid, COLOR_ERROR, "You Need To Spawn Before Using This Command.");
  1847. }
  1848.  
  1849. }else{
  1850. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  1851. }
  1852. return 1;
  1853. }
  1854. //==============================================================================
  1855. dcmd_ofrecord(playerid, params[])
  1856. {
  1857. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 2){
  1858.  
  1859. if (PlayerInfo[playerid][pSpawn] == 1){
  1860.  
  1861.  
  1862. new idx,tmp[256];
  1863.  
  1864. tmp = strtok(params, idx);
  1865.  
  1866. if(!strlen(tmp))
  1867. {
  1868. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /ofrecord (name)");
  1869. return 1;
  1870. }
  1871.  
  1872.  
  1873. if(IsPlayerInAnyVehicle(playerid)) {
  1874. SendClientMessage(playerid,COLOR_ERROR,"You Need To Be On Foot To Do A On Foot Recording.");
  1875. return 1;
  1876. }
  1877.  
  1878.  
  1879. StartRecordingPlayerData(playerid,PLAYER_RECORDING_TYPE_ONFOOT,tmp);
  1880. SendClientMessage(playerid,COLOR_ADMIN,"On Foot Recording Started.");
  1881.  
  1882. }else{
  1883. SendClientMessage(playerid, COLOR_ERROR, "You Need To Spawn Before Using This Command.");
  1884. }
  1885.  
  1886. }else{
  1887. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  1888. }
  1889. return 1;
  1890. }
  1891. //==============================================================================
  1892. dcmd_stoprecord(playerid, params[])
  1893. {
  1894. #pragma unused params
  1895.  
  1896. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 2){
  1897.  
  1898. if (PlayerInfo[playerid][pSpawn] == 1){
  1899.  
  1900. StopRecordingPlayerData(playerid);
  1901. SendClientMessage(playerid,COLOR_ADMIN,"Recording Stopped.");
  1902.  
  1903. }else{
  1904. SendClientMessage(playerid, COLOR_ERROR, "You Need To Spawn Before Using This Command.");
  1905. }
  1906.  
  1907. }else{
  1908. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  1909. }
  1910. return 1;
  1911. }
  1912. //==============================================================================
  1913. dcmd_vehicleinfo(playerid, params[])
  1914. {
  1915. #pragma unused params
  1916.  
  1917. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  1918.  
  1919. if (PlayerInfo[playerid][pSpawn] == 1){
  1920.  
  1921. if (IsPlayerInAnyVehicle(playerid))
  1922. {
  1923. new string[256];
  1924. new vehicleid = GetPlayerVehicleID(playerid);
  1925. new modelid = GetVehicleModel(vehicleid);
  1926.  
  1927. format(string, sizeof(string), "You Are In A (%s), Modelid: (%d), Vehicleid: (%d).", aVehicleNames[modelid - 400], modelid, vehicleid);
  1928. SendClientMessage(playerid,COLOR_ADMIN, string);
  1929.  
  1930. }else{
  1931. SendClientMessage(playerid, COLOR_ERROR, "You Need To Be In A Vehicle To Use This Command.");
  1932. }
  1933.  
  1934. }else{
  1935. SendClientMessage(playerid, COLOR_ERROR, "You Need To Spawn Before Using This Command.");
  1936. }
  1937.  
  1938. }else{
  1939. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  1940. }
  1941. return 1;
  1942. }
  1943. //==============================================================================
  1944. dcmd_repair(playerid, params[])
  1945. {
  1946. #pragma unused params
  1947. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  1948.  
  1949. if (PlayerInfo[playerid][pSpawn] == 1){
  1950.  
  1951. if (IsPlayerInAnyVehicle(playerid))
  1952. {
  1953. new string[256],vehicleid, modelid,Float:X, Float:Y, Float:Z, Float:Angle;
  1954.  
  1955.  
  1956. vehicleid = GetPlayerVehicleID(playerid);
  1957. modelid = GetVehicleModel(vehicleid);
  1958.  
  1959. format(string, sizeof(string), "Your %s Has Been Repaired.", aVehicleNames[modelid - 400]);
  1960. SendClientMessage(playerid,COLOR_ADMIN, string);
  1961.  
  1962. //GetPlayerPos(playerid, X, Y, Z);
  1963. //GetVehicleZAngle(vehicleid, Angle);
  1964. //SetVehiclePos(vehicleid, X, Y, Z);
  1965. //SetVehicleZAngle(vehicleid, Angle);
  1966. //SetVehicleHealth(vehicleid,1000.0);
  1967.  
  1968.  
  1969. //GetVehiclePos(vehicleid,X, Y, Z);
  1970. //GetVehicleZAngle(vehicleid,Angle);
  1971.  
  1972. //X += (distance * floatsin(-Angle, degrees));
  1973. //Y += (distance * floatcos(-Angle, degrees));
  1974.  
  1975. //SetVehiclePos(vehicleid, X, Y, Z);
  1976. //SetVehicleZAngle(vehicleid, Angle);
  1977.  
  1978. GetPlayerPos(playerid, X, Y, Z);
  1979. GetVehicleZAngle(vehicleid, Angle);
  1980. SetVehiclePos(vehicleid, X, Y, Z);
  1981. SetVehicleZAngle(vehicleid, Angle);
  1982.  
  1983. RepairVehicle(vehicleid);
  1984.  
  1985. }else{
  1986. SendClientMessage(playerid, COLOR_ERROR, "You Need To Be In A Vehicle To Use This Command.");
  1987. }
  1988.  
  1989. }else{
  1990. SendClientMessage(playerid, COLOR_ERROR, "You Need To Spawn Before Using This Command.");
  1991. }
  1992.  
  1993. }else{
  1994. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  1995. }
  1996. return 1;
  1997. }
  1998. //==============================================================================
  1999. dcmd_putinvehicle(playerid, params[])
  2000. {
  2001. #pragma unused params
  2002. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 2){
  2003.  
  2004. if (PlayerInfo[playerid][pSpawn] == 1){
  2005.  
  2006. new idx,vehicleid;
  2007. new tmp[256],string[256];
  2008.  
  2009. tmp = strtok(params, idx);
  2010.  
  2011. if(!strlen(tmp))
  2012. {
  2013. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /putinvehicle (Vehicleid)");
  2014. return 1;
  2015. }
  2016.  
  2017. vehicleid = strval(tmp);
  2018.  
  2019. /*if(vehicleid > CurrentVehicleId)
  2020. {
  2021. SendClientMessage(playerid, COLOR_ERROR, "Invalid Vehicleid.");
  2022. return 1;
  2023. }*/
  2024.  
  2025. if (!IsPlayerInAnyVehicle(playerid))
  2026. {
  2027.  
  2028. PutPlayerInVehicle(playerid,vehicleid,0);
  2029.  
  2030. format(string, sizeof(string), "You Are In Vehicleid: (%d).", vehicleid);
  2031. SendClientMessage(playerid,COLOR_ADMIN, string);
  2032.  
  2033. }else{
  2034. SendClientMessage(playerid, COLOR_ERROR, "You Need To Be On Foot To Use This Command.");
  2035. }
  2036.  
  2037. }else{
  2038. SendClientMessage(playerid, COLOR_ERROR, "You Need To Spawn Before Using This Command.");
  2039. }
  2040.  
  2041. }else{
  2042. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2043. }
  2044. return 1;
  2045. }
  2046. //==============================================================================
  2047. dcmd_gmx(playerid, params[])
  2048. {
  2049. #pragma unused params
  2050. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 2){
  2051.  
  2052. for(new i = 0; i < GetMaxPlayers(); i++)
  2053. {
  2054. if(IsPlayerConnected(i))
  2055. {
  2056. PlayerInfo[i][pSpawn] = 0;
  2057. }
  2058. }
  2059. SendRconCommand("gmx");
  2060.  
  2061. }else{
  2062. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2063. }
  2064. return 1;
  2065. }
  2066. //==============================================================================
  2067. dcmd_changemode(playerid, params[])
  2068. {
  2069. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 2){
  2070.  
  2071. new idx,gamemode,tmp[256],string[128];
  2072.  
  2073. tmp = strtok(params, idx);
  2074.  
  2075. if(!strlen(tmp))
  2076. {
  2077. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /changemode (gamemode) - Enter A Number 1 - 3");
  2078. return 1;
  2079. }
  2080.  
  2081. if(!isNumeric(tmp))
  2082. {
  2083. SendClientMessage(playerid, COLOR_ERROR, "Invalid Gamemode Please Use A Numeric Character.");
  2084. return 1;
  2085. }
  2086.  
  2087. gamemode = strval(tmp);
  2088.  
  2089. if(gamemode < 1 || gamemode > 3)
  2090. {
  2091. SendClientMessage(playerid, COLOR_ERROR, "Invalid Gamemode Please Enter A Number 1 - 3.");
  2092. return 1;
  2093. }
  2094.  
  2095. for(new i = 0; i < GetMaxPlayers(); i++)
  2096. {
  2097. if(IsPlayerConnected(i))
  2098. {
  2099. //SendClientMessage(i,COLOR_SERVER_HELP_MSG, "The Week is Over! - Please Reconnect.");
  2100. PlayerInfo[i][pSpawn] = 0;
  2101. //Kick(i);
  2102. }
  2103. }
  2104.  
  2105. switch (gamemode)
  2106. {
  2107.  
  2108. case 1:
  2109. {
  2110. format(string, sizeof(string), "{FFFFFF}Game Mode Changed: {BDBDBD}Los Santos");
  2111. }
  2112.  
  2113. case 2:
  2114. {
  2115. format(string, sizeof(string), "{FFFFFF}Game Mode Changed: {BDBDBD}Las Venturas");
  2116. }
  2117.  
  2118. case 3:
  2119. {
  2120. format(string, sizeof(string), "{FFFFFF}Game Mode Changed: {BDBDBD}San Fierro");
  2121. }
  2122. }
  2123. SendClientMessage(playerid,COLOR_SERVER_MAIN_MSG, string);
  2124.  
  2125. format(string, sizeof(string), "UPDATE server SET Gamemode = '%d' WHERE Server = '1'",gamemode);
  2126. mysql_query(string);
  2127.  
  2128. GameTextForAll("~b~THE WEEK IS OVER!~n~~w~CHANGING CITIES", 5000, 3);
  2129. SendClientMessageToAll(COLOR_SERVER_MAIN_MSG, "{FFFFFF}The Week is Over! - {FF0000}Changing Cities");
  2130. SendRconCommand("gmx");
  2131.  
  2132. }else{
  2133. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2134. }
  2135.  
  2136. return 1;
  2137. }
  2138. //==============================================================================
  2139. dcmd_setloc(playerid, params[])
  2140. {
  2141. #pragma unused params
  2142. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  2143.  
  2144. if (PlayerInfo[playerid][pSpawn] == 1){
  2145.  
  2146.  
  2147. if (!IsPlayerInAnyVehicle(playerid))
  2148. {
  2149. new Float:X, Float:Y, Float:Z, Float:A,Interior,World;
  2150.  
  2151. GetPlayerPos(playerid, X, Y, Z);
  2152. GetPlayerFacingAngle(playerid, A);
  2153. Interior = GetPlayerInterior(playerid);
  2154. World = GetPlayerVirtualWorld(playerid);
  2155.  
  2156. PlayerInfo[playerid][pAdminLastX] = X;
  2157. PlayerInfo[playerid][pAdminLastY] = Y;
  2158. PlayerInfo[playerid][pAdminLastZ] = Z;
  2159. PlayerInfo[playerid][pAdminLastA] = A;
  2160. PlayerInfo[playerid][pAdminLastI] = Interior;
  2161. PlayerInfo[playerid][pAdminLastW] = World;
  2162.  
  2163. SendClientMessage(playerid,COLOR_ADMIN, "Your Last Location Has Been Saved.");
  2164.  
  2165. }else{
  2166. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command From Inside A Vehicle.");
  2167. }
  2168.  
  2169. }else{
  2170. SendClientMessage(playerid, COLOR_ERROR, "You Need To Spawn Before Using This Command.");
  2171. }
  2172.  
  2173. }else{
  2174. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2175. }
  2176. return 1;
  2177. }
  2178. //==============================================================================
  2179. dcmd_teletoloc(playerid, params[])
  2180. {
  2181. #pragma unused params
  2182. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  2183.  
  2184. if (PlayerInfo[playerid][pSpawn] == 1){
  2185.  
  2186.  
  2187. if(PlayerInfo[playerid][pJailed] == 1)
  2188. {
  2189. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Teleport When Your In Jail.");
  2190. return 1;
  2191. }
  2192.  
  2193.  
  2194. if (!IsPlayerInAnyVehicle(playerid))
  2195. {
  2196.  
  2197. SendClientMessage(playerid,COLOR_ADMIN, "You Teleported To Your Saved Location.");
  2198. SetPlayerPosEx(playerid,PlayerInfo[playerid][pAdminLastX],PlayerInfo[playerid][pAdminLastY],PlayerInfo[playerid][pAdminLastZ],PlayerInfo[playerid][pAdminLastA],PlayerInfo[playerid][pAdminLastI],PlayerInfo[playerid][pAdminLastW]);
  2199.  
  2200. }else{
  2201. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command From Inside A Vehicle.");
  2202. }
  2203.  
  2204. }else{
  2205. SendClientMessage(playerid, COLOR_ERROR, "You Need To Spawn Before Using This Command.");
  2206. }
  2207.  
  2208. }else{
  2209. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2210. }
  2211. return 1;
  2212. }
  2213. //==============================================================================
  2214. //==============================================================================
  2215. dcmd_teleadmin(playerid, params[])
  2216. {
  2217. #pragma unused params
  2218. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  2219.  
  2220. if (PlayerInfo[playerid][pSpawn] == 1){
  2221.  
  2222. if(PlayerInfo[playerid][pJailed] == 1)
  2223. {
  2224. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Teleport When Your In Jail.");
  2225. return 1;
  2226. }
  2227.  
  2228.  
  2229. SendClientMessage(playerid,COLOR_ADMIN, "You Teleported To The Admin Hangout.");
  2230.  
  2231. if (IsPlayerInAnyVehicle(playerid))
  2232. {
  2233.  
  2234. SendClientMessage(playerid, COLOR_ERROR, "You Must Be On Foot To Use This Command.");
  2235.  
  2236. }else{
  2237.  
  2238.  
  2239.  
  2240. new Float:X, Float:Y, Float:Z, Float:A,Interior,World,string[256];
  2241.  
  2242. GetPlayerPos(playerid, X, Y, Z);
  2243. GetPlayerFacingAngle(playerid, A);
  2244. Interior = GetPlayerInterior(playerid);
  2245. World = GetPlayerVirtualWorld(playerid);
  2246.  
  2247. PlayerInfo[playerid][pAdminLastX] = X;
  2248. PlayerInfo[playerid][pAdminLastY] = Y;
  2249. PlayerInfo[playerid][pAdminLastZ] = Z;
  2250. PlayerInfo[playerid][pAdminLastA] = A;
  2251. PlayerInfo[playerid][pAdminLastI] = Interior;
  2252. PlayerInfo[playerid][pAdminLastW] = World;
  2253.  
  2254. SetPlayerPosEx(playerid,746.200805, 1438.324584, 1102.703125, 270.851745,6,1000);
  2255.  
  2256. format(string, sizeof(string), "Admin Hangout");
  2257. strmid(PlayerInfo[playerid][pInteriorName], string, 0, strlen(string), 256);
  2258. strmid(PlayerInfo[playerid][pLocation], string, 0, strlen(string), 256);
  2259. TextDrawSetString(ZoneName[playerid], "Admin Hangout");
  2260.  
  2261. }
  2262.  
  2263. }else{
  2264. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You're Dead.");
  2265. }
  2266.  
  2267. }else{
  2268. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2269. }
  2270. return 1;
  2271. }
  2272. //==============================================================================
  2273. dcmd_telesaadat(playerid, params[])
  2274. {
  2275. #pragma unused params
  2276. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  2277.  
  2278. if (PlayerInfo[playerid][pSpawn] == 1){
  2279.  
  2280. if(PlayerInfo[playerid][pJailed] == 1)
  2281. {
  2282. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Teleport When Your In Jail.");
  2283. return 1;
  2284. }
  2285.  
  2286. SendClientMessage(playerid,COLOR_ADMIN, "You Teleported To Saadat's Mansion.");
  2287.  
  2288. if (IsPlayerInAnyVehicle(playerid))
  2289. {
  2290. new vehicleid = GetPlayerVehicleID(playerid);
  2291.  
  2292. SetVehiclePos(vehicleid,1247.007080, -815.521850, 83.916244);
  2293. SetVehicleZAngle(vehicleid, 180.407836);
  2294. SetVehicleVirtualWorld(vehicleid,0);
  2295.  
  2296. }else{
  2297. SetPlayerPosEx(playerid,1255.728027,-785.435668,92.030181,92.177543,0,0);
  2298. }
  2299.  
  2300. }else{
  2301. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You're Dead.");
  2302. }
  2303.  
  2304. }else{
  2305. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2306. }
  2307. return 1;
  2308. }
  2309. //==============================================================================
  2310. dcmd_telemtchilid(playerid, params[])
  2311. {
  2312. #pragma unused params
  2313. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  2314.  
  2315. if (PlayerInfo[playerid][pSpawn] == 1){
  2316.  
  2317. if(PlayerInfo[playerid][pJailed] == 1)
  2318. {
  2319. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Teleport When Your In Jail.");
  2320. return 1;
  2321. }
  2322.  
  2323. SendClientMessage(playerid,COLOR_ADMIN, "You Teleported To Mount Chilid.");
  2324.  
  2325. if (IsPlayerInAnyVehicle(playerid))
  2326. {
  2327. new vehicleid = GetPlayerVehicleID(playerid);
  2328.  
  2329. SetVehiclePos(vehicleid,-2342.2715,-1645.3280,483.7031);
  2330. SetVehicleZAngle(vehicleid, 180.407836);
  2331. SetVehicleVirtualWorld(vehicleid,0);
  2332.  
  2333. }else{
  2334. SetPlayerPosEx(playerid,-2342.2715,-1645.3280,483.7031,227.7609,0,0);
  2335. }
  2336.  
  2337. }else{
  2338. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You're Dead.");
  2339. }
  2340.  
  2341. }else{
  2342. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2343. }
  2344. return 1;
  2345. }
  2346. //==============================================================================
  2347. dcmd_telels(playerid, params[])
  2348. {
  2349. #pragma unused params
  2350. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  2351.  
  2352. if (PlayerInfo[playerid][pSpawn] == 1){
  2353.  
  2354. if(PlayerInfo[playerid][pJailed] == 1)
  2355. {
  2356. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Teleport When Your In Jail.");
  2357. return 1;
  2358. }
  2359.  
  2360. SendClientMessage(playerid,COLOR_ADMIN, "You Teleported To Los Santos Airport.");
  2361.  
  2362. if (IsPlayerInAnyVehicle(playerid))
  2363. {
  2364. new vehicleid = GetPlayerVehicleID(playerid);
  2365.  
  2366. SetVehiclePos(vehicleid,1685.600463, -2323.056396, 13.152353);
  2367. SetVehicleZAngle(vehicleid, 269.667724);
  2368. SetVehicleVirtualWorld(vehicleid,0);
  2369.  
  2370. }else{
  2371. SetPlayerPosEx(playerid,1685.7039,-2328.9663,13.5469,0.0552,0,0);
  2372. }
  2373.  
  2374. }else{
  2375. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You're Dead.");
  2376. }
  2377.  
  2378. }else{
  2379. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2380. }
  2381. return 1;
  2382. }
  2383. //==============================================================================
  2384. dcmd_telelv(playerid, params[])
  2385. {
  2386. #pragma unused params
  2387. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  2388.  
  2389. if (PlayerInfo[playerid][pSpawn] == 1){
  2390.  
  2391. if(PlayerInfo[playerid][pJailed] == 1)
  2392. {
  2393. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Teleport When Your In Jail.");
  2394. return 1;
  2395. }
  2396.  
  2397. SendClientMessage(playerid,COLOR_ADMIN, "You Teleported To Las Venturas Airport.");
  2398.  
  2399. if (IsPlayerInAnyVehicle(playerid))
  2400. {
  2401. new vehicleid = GetPlayerVehicleID(playerid);
  2402.  
  2403. SetVehiclePos(vehicleid,1709.509033, 1447.779907, 10.468549);
  2404. SetVehicleZAngle(vehicleid, 163.819564);
  2405. SetVehicleVirtualWorld(vehicleid,0);
  2406.  
  2407. }else{
  2408. SetPlayerPosEx(playerid,1679.2379,1447.8396,10.7745,266.8113,0,0);
  2409. }
  2410.  
  2411. }else{
  2412. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You're Dead.");
  2413. }
  2414.  
  2415. }else{
  2416. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2417. }
  2418. return 1;
  2419. }
  2420. //==============================================================================
  2421. dcmd_telesf(playerid, params[])
  2422. {
  2423. #pragma unused params
  2424. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  2425.  
  2426. if (PlayerInfo[playerid][pSpawn] == 1){
  2427.  
  2428. if(PlayerInfo[playerid][pJailed] == 1)
  2429. {
  2430. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Teleport When Your In Jail.");
  2431. return 1;
  2432. }
  2433.  
  2434. SendClientMessage(playerid,COLOR_ADMIN, "You Teleported To San Fierro Airport.");
  2435.  
  2436. if (IsPlayerInAnyVehicle(playerid))
  2437. {
  2438. new vehicleid = GetPlayerVehicleID(playerid);
  2439.  
  2440. SetVehiclePos(vehicleid,-1428.211059, -292.864288, 13.769083);
  2441. SetVehicleZAngle(vehicleid, 48.963050);
  2442. SetVehicleVirtualWorld(vehicleid,0);
  2443.  
  2444. }else{
  2445. SetPlayerPosEx(playerid,-1425.2372,-289.2708,14.1484,138.0232,0,0);
  2446. }
  2447.  
  2448. }else{
  2449. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You're Dead.");
  2450. }
  2451.  
  2452. }else{
  2453. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2454. }
  2455. return 1;
  2456. }
  2457. //==============================================================================
  2458. dcmd_telelspd(playerid, params[])
  2459. {
  2460. #pragma unused params
  2461. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  2462.  
  2463. if (PlayerInfo[playerid][pSpawn] == 1){
  2464.  
  2465. if(PlayerInfo[playerid][pJailed] == 1)
  2466. {
  2467. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Teleport When Your In Jail.");
  2468. return 1;
  2469. }
  2470.  
  2471. SendClientMessage(playerid,COLOR_ADMIN, "You Teleported To Los Santos Police Department.");
  2472.  
  2473. if (IsPlayerInAnyVehicle(playerid))
  2474. {
  2475. new vehicleid = GetPlayerVehicleID(playerid);
  2476.  
  2477. SetVehiclePos(vehicleid,1531.850952, -1675.067871, 13.104281);
  2478. SetVehicleZAngle(vehicleid, 0.131222);
  2479. SetVehicleVirtualWorld(vehicleid,0);
  2480.  
  2481. }else{
  2482. SetPlayerPosEx(playerid,1552.268310, -1675.669555, 16.195312, 90.991539,0,0);
  2483. }
  2484.  
  2485.  
  2486. }else{
  2487. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You're Dead.");
  2488. }
  2489.  
  2490. }else{
  2491. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2492. }
  2493. return 1;
  2494. }
  2495. //==============================================================================
  2496. dcmd_telelvpd(playerid, params[])
  2497. {
  2498. #pragma unused params
  2499. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  2500.  
  2501. if (PlayerInfo[playerid][pSpawn] == 1){
  2502.  
  2503. if(PlayerInfo[playerid][pJailed] == 1)
  2504. {
  2505. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Teleport When Your In Jail.");
  2506. return 1;
  2507. }
  2508.  
  2509. SendClientMessage(playerid,COLOR_ADMIN, "You Teleported To Las Venturas Police Department.");
  2510.  
  2511. if (IsPlayerInAnyVehicle(playerid))
  2512. {
  2513. new vehicleid = GetPlayerVehicleID(playerid);
  2514.  
  2515. SetVehiclePos(vehicleid,2290.308593, 2417.031250, 10.442032);
  2516. SetVehicleZAngle(vehicleid, 89.133346);
  2517. SetVehicleVirtualWorld(vehicleid,0);
  2518.  
  2519. }else{
  2520. SetPlayerPosEx(playerid,2287.022460, 2429.247558, 10.820312, 178.174026,0,0);
  2521. }
  2522.  
  2523. }else{
  2524. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You're Dead.");
  2525. }
  2526.  
  2527. }else{
  2528. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2529. }
  2530. return 1;
  2531. }
  2532. //==============================================================================
  2533. dcmd_telesfpd(playerid, params[])
  2534. {
  2535. #pragma unused params
  2536. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  2537.  
  2538. if (PlayerInfo[playerid][pSpawn] == 1){
  2539.  
  2540. if(PlayerInfo[playerid][pJailed] == 1)
  2541. {
  2542. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Teleport When Your In Jail.");
  2543. return 1;
  2544. }
  2545.  
  2546. SendClientMessage(playerid,COLOR_ADMIN, "You Teleported To San Fierro Police Department.");
  2547.  
  2548. if (IsPlayerInAnyVehicle(playerid))
  2549. {
  2550. new vehicleid = GetPlayerVehicleID(playerid);
  2551.  
  2552. SetVehiclePos(vehicleid,-1605.006347, 724.942077, 11.454379);
  2553. SetVehicleZAngle(vehicleid, 269.570434);
  2554. SetVehicleVirtualWorld(vehicleid,0);
  2555.  
  2556. }else{
  2557. SetPlayerPosEx(playerid,-1605.578125, 716.758728, 11.989557, 359.287841,0,0);
  2558. }
  2559.  
  2560. }else{
  2561. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You're Dead.");
  2562. }
  2563.  
  2564. }else{
  2565. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2566. }
  2567. return 1;
  2568. }
  2569. //==============================================================================
  2570. dcmd_weather(playerid, params[])
  2571. {
  2572. if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 1)
  2573. {
  2574. new idx,weatherid,tmp[256];
  2575.  
  2576. tmp = strtok(params, idx);
  2577.  
  2578. if(!strlen(tmp))
  2579. {
  2580. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /weather (id)");
  2581. return 1;
  2582. }
  2583.  
  2584. if(!isNumeric(tmp))
  2585. {
  2586. SendClientMessage(playerid, COLOR_ERROR, "Invalid ID Please Use Numeric Characters.");
  2587. return 1;
  2588. }
  2589.  
  2590. weatherid = strval(tmp);
  2591.  
  2592. if(weatherid < 0 || weatherid > 45)
  2593. {
  2594. SendClientMessage(playerid, COLOR_ERROR, "Invalid Weather ID Please Enter An ID 1 - 45.");
  2595. return 1;
  2596. }
  2597.  
  2598. /*
  2599. 0 to 7 = different versions of blue skies/clouds
  2600. 08 = stormy
  2601. 09 = foggy
  2602. 10 = blue sky with clouds (falls into 0-7 category)
  2603. 11 = scorching hot (Los Santos heat waves)
  2604. 12 to 15 = very dull, colorless, hazy
  2605. 16 = dull, cloudy, rainy
  2606. 17 to 18 = scorching hot/blue sky at night
  2607. 19 = sandstorm
  2608. 20 = green fog
  2609. 21 = very dark, gradiented skyline, purple
  2610. 22 = very dark, gradiented skyline, green
  2611. 23 to 26 = variations of pale orange
  2612. 27 to 29 = variations of fresh blue
  2613. 30 to 32 = variations of dark, cloudy, teal
  2614. 33 = dark, cloudy, brown
  2615. 34 = blue/purple, regular
  2616. 35 = dull brown
  2617. 36 to 38 = bright, foggy, orange
  2618. 39 = extremely bright
  2619. 40 to 42 = blue/purple cloudy
  2620. 43 = dark toxic clouds
  2621. 44 = black/white sky
  2622. 45 = black sky (black/purple at night)
  2623. */
  2624.  
  2625. SetWeather(weatherid);
  2626.  
  2627. format(tmp, sizeof(tmp), "Weather Set To %d", weatherid);
  2628. SendClientMessage(playerid, COLOR_ADMIN, tmp);
  2629.  
  2630. }else{
  2631. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2632. }
  2633. return 1;
  2634. }
  2635. //==============================================================================
  2636. dcmd_gravity(playerid, params[])
  2637. {
  2638. if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 1)
  2639. {
  2640. new idx,gravityid,Float:gravity,tmp[256],gravitytxt[128];
  2641.  
  2642. tmp = strtok(params, idx);
  2643.  
  2644. if(!strlen(tmp))
  2645. {
  2646. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /gravity (id)");
  2647. return 1;
  2648. }
  2649.  
  2650. if(!isNumeric(tmp))
  2651. {
  2652. SendClientMessage(playerid, COLOR_ERROR, "Invalid ID Please Use Numeric Characters.");
  2653. return 1;
  2654. }
  2655.  
  2656. gravityid = strval(tmp);
  2657.  
  2658. if(gravityid < 1 || gravityid > 10)
  2659. {
  2660. SendClientMessage(playerid, COLOR_ERROR, "Invalid ID Please Enter An ID 1 - 10.");
  2661. return 1;
  2662. }
  2663.  
  2664. switch(gravityid)
  2665. {
  2666. case 1: {gravitytxt = "1";gravity = 0.001;}
  2667. case 2: {gravitytxt = "2";gravity = 0.002;}
  2668. case 3: {gravitytxt = "3";gravity = 0.003;}
  2669. case 4: {gravitytxt = "4";gravity = 0.004;}
  2670. case 5: {gravitytxt = "5";gravity = 0.005;}
  2671. case 6: {gravitytxt = "6";gravity = 0.006;}
  2672. case 7: {gravitytxt = "7";gravity = 0.007;}
  2673. case 8: {gravitytxt = "8";gravity = 0.008;}
  2674. case 9: {gravitytxt = "9";gravity = 0.009;}
  2675. case 10: {gravitytxt = "10";gravity = 0.0010;}
  2676. }
  2677.  
  2678. SetGravity(gravity);
  2679.  
  2680. format(tmp, sizeof(tmp), "Gravity Set To ID %s", gravitytxt);
  2681. SendClientMessage(playerid, COLOR_ADMIN, tmp);
  2682.  
  2683. }else{
  2684. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2685. }
  2686. return 1;
  2687. }
  2688. //==============================================================================
  2689. dcmd_v(playerid, params[])
  2690. {
  2691. if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 2)
  2692. {
  2693. new idx,modelid;
  2694. new tmp[256],string[256];
  2695.  
  2696. tmp = strtok(params, idx);
  2697.  
  2698. if(!strlen(tmp))
  2699. {
  2700. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /v (Modelid/Name)");
  2701. return 1;
  2702. }
  2703.  
  2704.  
  2705. if(isNumeric(tmp))
  2706. {
  2707.  
  2708. modelid = strval(tmp);
  2709.  
  2710. }else{
  2711.  
  2712. modelid = GetVehicleModelIDFromName( tmp );
  2713.  
  2714. if( modelid == -1 )
  2715. {
  2716. SendClientMessage(playerid, COLOR_ERROR, "[ERROR] Invalid MODELID/NAME");
  2717. return 1;
  2718. }
  2719. }
  2720.  
  2721. if(modelid < 400 || modelid > 611)
  2722. {
  2723. SendClientMessage(playerid, COLOR_ERROR, "Enter A Vehicle Modelid Between 400 And 611");
  2724. return 1;
  2725. }
  2726.  
  2727. new Float:X, Float:Y, Float:Z, Float:A;//,Interior,World;
  2728. GetPlayerPos(playerid, X, Y, Z);
  2729. GetPlayerFacingAngle(playerid, A);
  2730. //Interior = GetPlayerInterior(playerid);
  2731. //World = GetPlayerVirtualWorld(playerid);
  2732.  
  2733. GetXYInFrontOfPlayer(playerid, X, Y, 5.0);
  2734.  
  2735. CreateVehicle(modelid,X,Y,Z + 2.0,A + 90.0,-1,-1,1000);
  2736.  
  2737. format(string, sizeof(string), "%s Spawned A (%s), Modelid: (%d)", PlayerInfo[playerid][pName], aVehicleNames[modelid - 400], modelid);
  2738. SendClientMessageToAll(COLOR_ADMIN, string);
  2739. }else{
  2740. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2741. }
  2742. return 1;
  2743. }
  2744. //==============================================================================
  2745. stock GetVehicleModelIDFromName(vname[])
  2746. {
  2747. for(new i = 0; i < 211; i++)
  2748. {
  2749. if ( strfind(aVehicleNames[i], vname, true) != -1 )
  2750. return i + 400;
  2751. }
  2752. return -1;
  2753. }
  2754. //==============================================================================
  2755. stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
  2756. { // Created by Y_Less
  2757.  
  2758. new Float:a;
  2759.  
  2760. GetPlayerPos(playerid, x, y, a);
  2761. GetPlayerFacingAngle(playerid, a);
  2762.  
  2763. if (GetPlayerVehicleID(playerid)) {
  2764. GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
  2765. }
  2766.  
  2767. x += (distance * floatsin(-a, degrees));
  2768. y += (distance * floatcos(-a, degrees));
  2769. }
  2770.  
  2771. //==============================================================================
  2772. /*dcmd_dv(playerid, params[])
  2773. {
  2774. if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 2)
  2775. {
  2776. new var0 = 0;
  2777. new var1[24];
  2778. new var2[256];
  2779. new var3[256];
  2780. var3 = function1B8C(arg1, var0, 32);
  2781. if(!strlen(var3))
  2782. {
  2783. SendClientMessage(playerid, 0xFF0000FF, "USAGE: /dv (vehicleid)");
  2784. return 1;
  2785. }
  2786. var0 = strval(var3);
  2787. for(new var4 = 0; GetMaxPlayers() > var4; var4++)
  2788. {
  2789. if(IsPlayerInVehicle(var4, var0))
  2790. {
  2791. SendClientMessageToAll(0xFF0000FF, "You Can't Destroy A Vehicle With Someone In It.");
  2792. return 1;
  2793. }
  2794. GetPlayerName(playerid, var1, 24);
  2795. format(var2, 256, "%s Destroyed Vehicleid: (%d).", var1, var0);
  2796. SendClientMessageToAll(0xFFFF00AA, var2);
  2797. DestroyVehicle(var0);
  2798. return 1;
  2799. }
  2800.  
  2801. }else{
  2802. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2803. }
  2804. return 1;
  2805. }*/
  2806. //==============================================================================
  2807. dcmd_nitro(playerid, params[])
  2808. {
  2809. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  2810.  
  2811. if (PlayerInfo[playerid][pSpawn] == 1){
  2812.  
  2813. new idx,tmp[256],nitroid;
  2814.  
  2815. tmp = strtok(params, idx);
  2816.  
  2817. if(!strlen(tmp))
  2818. {
  2819. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /nitro (id) - Enter A Number 1 - 3");
  2820. return 1;
  2821. }
  2822.  
  2823. if(!isNumeric(tmp))
  2824. {
  2825. SendClientMessage(playerid, COLOR_ERROR, "Invalid id Please Use A Numerical Character.");
  2826. return 1;
  2827. }
  2828.  
  2829. nitroid = strval(tmp);
  2830.  
  2831. if(nitroid < 1 || nitroid > 3)
  2832. {
  2833. SendClientMessage(playerid,COLOR_ERROR,"Enter A Number 1 - 3.");
  2834. return 1;
  2835. }
  2836.  
  2837. if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) {
  2838. SendClientMessage(playerid,COLOR_ERROR,"You Need To Be Driving A Vehicle To Give A Vehicle Nitro.");
  2839. return 1;
  2840. }
  2841.  
  2842. switch(nitroid)
  2843. {
  2844. case 1:{AddVehicleComponent(GetPlayerVehicleID(playerid),1008);nitroid = 5;}
  2845. case 2:{AddVehicleComponent(GetPlayerVehicleID(playerid),1009);nitroid = 2;}
  2846. case 3:{AddVehicleComponent(GetPlayerVehicleID(playerid),1010);nitroid = 10;}
  2847. }
  2848.  
  2849. format(tmp, 256, "Nitro %d Times Added To Vehicle.",nitroid);
  2850. SendClientMessage(playerid,COLOR_ADMIN,tmp);
  2851.  
  2852. }else{
  2853. SendClientMessage(playerid, COLOR_ERROR, "You Need To Spawn Before Using This Command.");
  2854. }
  2855.  
  2856. }else{
  2857. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2858. }
  2859. return 1;
  2860. }
  2861. //==============================================================================
  2862. dcmd_sav(playerid, params[])
  2863. {
  2864.  
  2865. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 2){
  2866.  
  2867. new interiorid,worldid,vehicleid,modelid,Float:X,Float:Y,Float:Z,Float:Angle,string[256];
  2868.  
  2869. new idx,length = strlen(params);
  2870. while ((idx < length) && (params[idx] <= ' '))
  2871. {
  2872. idx++;
  2873. }
  2874. new offset = idx;
  2875. new result[64];
  2876. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  2877. {
  2878. result[idx - offset] = params[idx];
  2879. idx++;
  2880. }
  2881. result[idx - offset] = EOS;
  2882. if(!strlen(result))
  2883. {
  2884. result = "None";
  2885. }
  2886.  
  2887.  
  2888. if (IsPlayerInAnyVehicle(playerid))
  2889. {
  2890.  
  2891.  
  2892. new File:pos=fopen("vehicle_positions.txt", io_append);
  2893.  
  2894. vehicleid = GetPlayerVehicleID(playerid);
  2895.  
  2896. modelid = GetVehicleModel(vehicleid);
  2897.  
  2898. GetVehiclePos(vehicleid, X, Y, Z);
  2899. GetVehicleZAngle(vehicleid, Angle);
  2900. format(string, 256, "CreateStaticVehicle(VEHICLE_TYPE_CIVILIAN,%d, %f, %f, %f, %f, -1, -1); //Vehicle: %s Location: %s Comment: %s\r\n",modelid , X, Y, Z,Angle, aVehicleNames[modelid - 400], zones[Zone[playerid]][zone_name],result);
  2901. fwrite(pos, string);
  2902. fclose(pos);
  2903.  
  2904. SendClientMessage(playerid,COLOR_ADMIN, "Vehicle Position Saved.");
  2905.  
  2906. }else{
  2907.  
  2908. new File:pos=fopen("onfoot_positions.txt", io_append);
  2909.  
  2910.  
  2911. GetPlayerPos(playerid, X, Y, Z);
  2912. GetPlayerFacingAngle(playerid, Angle);
  2913.  
  2914. interiorid = GetPlayerInterior(playerid);
  2915. worldid = GetPlayerVirtualWorld(playerid);
  2916.  
  2917.  
  2918. format(string, 256, "%f, %f, %f, %f, %d, %d //Comment: %s\r\n", X, Y, Z,Angle,interiorid,worldid,result);
  2919.  
  2920.  
  2921.  
  2922. fwrite(pos, string);
  2923. fclose(pos);
  2924.  
  2925. SendClientMessage(playerid,COLOR_ADMIN, "Onfoot Position Saved.");
  2926. }
  2927.  
  2928. }else{
  2929. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2930. }
  2931. return 1;
  2932. }
  2933. //==============================================================================
  2934. dcmd_ac(playerid, params[])
  2935. {
  2936. dcmd_achat(playerid, params);
  2937. return 1;
  2938. }
  2939.  
  2940. dcmd_achat(playerid, params[])
  2941. {
  2942. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  2943.  
  2944. new string[256],idx,length = strlen(params);
  2945.  
  2946. while ((idx < length) && (params[idx] <= ' '))
  2947. {
  2948. idx++;
  2949. }
  2950. new offset = idx;
  2951. new result[64];
  2952. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  2953. {
  2954. result[idx - offset] = params[idx];
  2955. idx++;
  2956. }
  2957. result[idx - offset] = EOS;
  2958. if(!strlen(result))
  2959. {
  2960. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /achat (Message).");
  2961. }
  2962.  
  2963. format(string, sizeof(string), "(ADMIN CHAT) %s (%i) Says: %s", PlayerInfo[playerid][pName],playerid,result);
  2964. SendClientMessageToAdmins(COLOR_ADMIN, string);
  2965.  
  2966. format(string, sizeof(string), "[ADMIN CHAT] %s Says: %s",PlayerInfo[playerid][pName],result);
  2967. AdminLog(string);
  2968.  
  2969. }else{
  2970. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  2971. }
  2972. return 1;
  2973. }
  2974. //==============================================================================
  2975. dcmd_ad(playerid, params[])
  2976. {
  2977. dcmd_advertise(playerid, params);
  2978. return 1;
  2979. }
  2980.  
  2981. dcmd_advertise(playerid,params[])
  2982. {
  2983. #pragma unused params
  2984. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0)
  2985. {
  2986.  
  2987. for(new i = 0; i < GetMaxPlayers(); i++)
  2988. {
  2989.  
  2990. if(IsPlayerConnected(i) && !IsPlayerNPC(i) && PlayerInfo[i][pSpawn] > 0)
  2991. {
  2992.  
  2993. TextDrawSetString(SmallTextdraw0[i], " ~n~~y~Sasuke_Uchihas ~b~Cops ~w~And ~r~Robbers~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ");
  2994. TextDrawSetString(SmallTextdraw1[i], " ~n~ ~n~ ~n~ ~n~~b~"WEBSITE"");
  2995. TextDrawSetString(SmallTextdraw2[i], "This is ~r~NOT ~w~a Deathmatch Server.~n~Do ~r~NOT ~w~Attack People For No Reason~n~Or You Will Be Kicked / Banned~n~ ~n~Type ~y~/help~w~, ~y~/commands ~w~and ~y~/rules~n~~w~For More Game Information");
  2996.  
  2997. TextDrawShowForPlayer(i, SmallTextdraw0[i]);
  2998. TextDrawShowForPlayer(i, SmallTextdraw1[i]);
  2999. TextDrawShowForPlayer(i, SmallTextdraw2[i]);
  3000.  
  3001. PlayerInfo[i][pTextdraw] = TD_MENU_INFO;
  3002. }
  3003. }
  3004.  
  3005. }else{
  3006. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  3007. }
  3008. return 1;
  3009. }
  3010. //==============================================================================
  3011. dcmd_an(playerid, params[])
  3012. {
  3013. dcmd_announce(playerid, params);
  3014. return 1;
  3015. }
  3016.  
  3017. dcmd_announce(playerid, params[])
  3018. {
  3019. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  3020.  
  3021. new string[256],idx,length = strlen(params);
  3022.  
  3023. while ((idx < length) && (params[idx] <= ' '))
  3024. {
  3025. idx++;
  3026. }
  3027. new offset = idx;
  3028. new result[64];
  3029. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  3030. {
  3031. result[idx - offset] = params[idx];
  3032. idx++;
  3033. }
  3034. result[idx - offset] = EOS;
  3035. if(!strlen(result))
  3036. {
  3037. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /announce (Message).");
  3038. }
  3039.  
  3040. format(string, sizeof(string), "%s",result);
  3041. SendClientAnnouncementToAll(string);
  3042.  
  3043. format(string, sizeof(string), "[ANNOUNCE] %s Says: %s",PlayerInfo[playerid][pName],result);
  3044. AdminLog(string);
  3045.  
  3046. }else{
  3047. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  3048. }
  3049. return 1;
  3050. }
  3051. //==============================================================================
  3052. dcmd_agc(playerid, params[])
  3053. {
  3054. return dcmd_agivecash(playerid, params);
  3055. }
  3056.  
  3057. dcmd_agivecash(playerid, params[])
  3058. {
  3059. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 2){
  3060.  
  3061.  
  3062. new idx,giveplayerid,money,string[256],tmp[256];
  3063.  
  3064. tmp = strtok(params, idx);
  3065. if(!strlen(tmp))
  3066. {
  3067. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /agivecash (Name/Id) (amount).");
  3068. return 1;
  3069. }
  3070. if(!isNumeric(tmp))
  3071. {
  3072. giveplayerid = ReturnUser(playerid, tmp);
  3073. if(giveplayerid == INVALID_PLAYER_ID)
  3074. {
  3075. return 1;
  3076. }
  3077. }
  3078. else
  3079. {
  3080. giveplayerid = strval(tmp);
  3081. if(!IsPlayerConnected(giveplayerid))
  3082. {
  3083. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  3084. SendClientMessage(playerid, COLOR_ERROR, string);
  3085. return 1;
  3086. }
  3087. }
  3088.  
  3089.  
  3090. tmp = strtok(params, idx);
  3091. if(!strlen(tmp))
  3092. {
  3093. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /agivecash (Name/Id) (amount).");
  3094. return 1;
  3095. }
  3096.  
  3097. money = strval(tmp);
  3098.  
  3099. if (IsPlayerNPC(giveplayerid))
  3100. {
  3101. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Give Money To A Bot.");
  3102. return 1;
  3103. }
  3104.  
  3105. if (PlayerInfo[playerid][pSpawn] == 0){
  3106. format(string, sizeof(string), "%s (%i) Has Not Spawned.",PlayerInfo[giveplayerid][pName],giveplayerid);
  3107. SendClientMessage(playerid, COLOR_ERROR, string);
  3108. return 1;
  3109. }
  3110.  
  3111. if (money <= 0){
  3112. format(string, sizeof(string), "$%i Is Not A Valid Amount.",money);
  3113. SendClientMessage(playerid, COLOR_ERROR, string);
  3114. return 1;
  3115. }
  3116.  
  3117.  
  3118. if (giveplayerid == playerid)
  3119. {
  3120.  
  3121. format(string, sizeof(string), "You Gave Yourself $%d.",money);
  3122. SendClientMessage(playerid,COLOR_SERVER_HELP_MSG, string);
  3123.  
  3124. }else{
  3125.  
  3126. format(string, sizeof(string), "You Sent %s (%i) $%d.",PlayerInfo[giveplayerid][pName],giveplayerid,money);
  3127. SendClientMessage(playerid,COLOR_SERVER_HELP_MSG, string);
  3128. format(string, sizeof(string), "~w~Sent ~g~$%d",money);
  3129. GameTextForPlayer(playerid,string, 5000, 3);
  3130. format(string, sizeof(string), "%s (%i) Sent You $%d.",PlayerInfo[playerid][pName],playerid,money);
  3131. SendClientMessage(giveplayerid,COLOR_SERVER_HELP_MSG, string);
  3132.  
  3133. }
  3134.  
  3135. format(string, sizeof(string), "~w~Received ~g~$%d",money);
  3136. GameTextForPlayer(giveplayerid,string, 5000, 3);
  3137.  
  3138. GivePlayerMoney(giveplayerid,money);
  3139. PlayerInfo[giveplayerid][pEarnings] += money;
  3140.  
  3141. }else{
  3142. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  3143. }
  3144. return 1;
  3145. }
  3146. //==============================================================================
  3147. dcmd_telehere(playerid, params[])
  3148. {
  3149. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  3150.  
  3151. new idx,giveplayerid,Float:X,Float:Y,Float:Z,Float:A,Interior,World,string[256],tmp[256];
  3152.  
  3153. tmp = strtok(params, idx);
  3154. if(!strlen(tmp))
  3155. {
  3156. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /telehere (Name/Id) - Enter A Valid Name/Id.");
  3157. return 1;
  3158. }
  3159. if(!isNumeric(tmp))
  3160. {
  3161. giveplayerid = ReturnUser(playerid, tmp);
  3162. if(giveplayerid == INVALID_PLAYER_ID)
  3163. {
  3164. return 1;
  3165. }
  3166. }
  3167. else
  3168. {
  3169. giveplayerid = strval(tmp);
  3170. if(!IsPlayerConnected(giveplayerid))
  3171. {
  3172. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  3173. SendClientMessage(playerid, COLOR_ERROR, string);
  3174. return 1;
  3175. }
  3176. }
  3177.  
  3178. if (IsPlayerNPC(giveplayerid))
  3179. {
  3180. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Teleport A Bot.");
  3181. return 1;
  3182. }
  3183.  
  3184. if(giveplayerid == playerid)
  3185. {
  3186. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Teleport Yourself.");
  3187. return 1;
  3188. }
  3189.  
  3190.  
  3191. if (PlayerInfo[giveplayerid][pJailed] > 0 || PlayerInfo[giveplayerid][pAJailed] > 0)
  3192. {
  3193. format(string, sizeof(string), "%s (%d) Is In Jail And Can't Be Teleported.",PlayerInfo[giveplayerid][pName],giveplayerid);
  3194. SendClientMessage(playerid, COLOR_ERROR, string);
  3195. return 1;
  3196. }
  3197.  
  3198. GetPlayerPos(playerid, X, Y, Z);
  3199. GetPlayerFacingAngle(playerid, A);
  3200. Interior = GetPlayerInterior(playerid);
  3201. World = GetPlayerVirtualWorld(playerid);
  3202.  
  3203. SetPlayerPosEx(giveplayerid,X, Y+2, Z, A, Interior, World);
  3204.  
  3205. format(string, sizeof(string), "%s (%i) Teleported To You Successfully.",PlayerInfo[giveplayerid][pName],giveplayerid);
  3206. SendClientMessage(playerid,COLOR_ADMIN, string);
  3207.  
  3208. format(string, sizeof(string), "%s",PlayerInfo[playerid][pLocation]);
  3209. strmid(PlayerInfo[giveplayerid][pLocation], string, 0, strlen(string), 256);
  3210.  
  3211. PlayerInfo[giveplayerid][pCheckpoint] = PlayerInfo[playerid][pCheckpoint];
  3212. PlayerInfo[giveplayerid][pLastOutSideID] = PlayerInfo[playerid][pLastOutSideID];
  3213.  
  3214. }else{
  3215. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  3216. }
  3217. return 1;
  3218. }
  3219. //==============================================================================
  3220. dcmd_teleto(playerid, params[])
  3221. {
  3222. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  3223.  
  3224. new idx,giveplayerid,Float:X,Float:Y,Float:Z,Float:A,Interior,World,string[256],tmp[256];
  3225.  
  3226. tmp = strtok(params, idx);
  3227. if(!strlen(tmp))
  3228. {
  3229. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /teleto (Name/Id) - Enter A Valid Name/Id.");
  3230. return 1;
  3231. }
  3232. if(!isNumeric(tmp))
  3233. {
  3234. giveplayerid = ReturnUser(playerid, tmp);
  3235. if(giveplayerid == INVALID_PLAYER_ID)
  3236. {
  3237. return 1;
  3238. }
  3239. }
  3240. else
  3241. {
  3242. giveplayerid = strval(tmp);
  3243. if(!IsPlayerConnected(giveplayerid))
  3244. {
  3245. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  3246. SendClientMessage(playerid, COLOR_ERROR, string);
  3247. return 1;
  3248. }
  3249. }
  3250.  
  3251. if (IsPlayerNPC(giveplayerid))
  3252. {
  3253. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Teleport To A Bot.");
  3254. return 1;
  3255. }
  3256.  
  3257. if(giveplayerid == playerid)
  3258. {
  3259. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Teleport Yourself.");
  3260. return 1;
  3261. }
  3262.  
  3263. if (PlayerInfo[playerid][pJailed] > 0 || PlayerInfo[playerid][pAJailed] > 0)
  3264. {
  3265. format(string, sizeof(string), "You Are In Jail. You Cannot Teleport To %s (%d).",PlayerInfo[giveplayerid][pName],giveplayerid);
  3266. SendClientMessage(playerid, COLOR_ERROR, string);
  3267. return 1;
  3268. }
  3269.  
  3270.  
  3271. GetPlayerPos(giveplayerid, X, Y, Z);
  3272. GetPlayerFacingAngle(giveplayerid, A);
  3273. Interior = GetPlayerInterior(giveplayerid);
  3274. World = GetPlayerVirtualWorld(giveplayerid);
  3275.  
  3276. SetPlayerPosEx(playerid,X, Y+2, Z, A, Interior, World);
  3277.  
  3278. format(string, sizeof(string), "Teleported To %s (%i) Successfully.",PlayerInfo[giveplayerid][pName],giveplayerid);
  3279. SendClientMessage(playerid,COLOR_ADMIN, string);
  3280.  
  3281. format(string, sizeof(string), "%s",PlayerInfo[giveplayerid][pLocation]);
  3282. strmid(PlayerInfo[playerid][pLocation], string, 0, strlen(string), 256);
  3283.  
  3284. PlayerInfo[playerid][pCheckpoint] = PlayerInfo[giveplayerid][pCheckpoint];
  3285. PlayerInfo[playerid][pLastOutSideID] = PlayerInfo[giveplayerid][pLastOutSideID];
  3286.  
  3287. }else{
  3288. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  3289. }
  3290. return 1;
  3291. }
  3292. //==============================================================================
  3293. dcmd_aweapon(playerid, params[])
  3294. {
  3295. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 1){
  3296.  
  3297. new idx,giveplayerid,weaponid,ammo,string[256],tmp[256];
  3298.  
  3299. tmp = strtok(params, idx);
  3300. if(!strlen(tmp))
  3301. {
  3302. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /aweapon (Name/Id) (weapon) (ammo) - Enter A Valid Name/Id.");
  3303. return 1;
  3304. }
  3305.  
  3306. if(!isNumeric(tmp))
  3307. {
  3308. giveplayerid = ReturnUser(playerid, tmp);
  3309. if(giveplayerid == INVALID_PLAYER_ID)
  3310. {
  3311. return 1;
  3312. }
  3313. }
  3314. else
  3315. {
  3316. giveplayerid = strval(tmp);
  3317. if(!IsPlayerConnected(giveplayerid))
  3318. {
  3319. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  3320. SendClientMessage(playerid, COLOR_ERROR, string);
  3321. return 1;
  3322. }
  3323. }
  3324.  
  3325.  
  3326. tmp = strtok(params, idx);
  3327.  
  3328. if(!strlen(tmp))
  3329. {
  3330. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /aweapon (Name/Id) (weapon) (ammo) - Enter A Valid Weapon.");
  3331. return 1;
  3332. }
  3333.  
  3334. if(!isNumeric(tmp))
  3335. {
  3336. SendClientMessage(playerid, COLOR_ERROR, "Enter A Numerical Character.");
  3337. return 1;
  3338. }
  3339.  
  3340. weaponid = strval(tmp);
  3341.  
  3342.  
  3343. tmp = strtok(params, idx);
  3344.  
  3345. if(!strlen(tmp))
  3346. {
  3347. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /aweapon (Name/Id) (weapon) (ammo) - Enter An Amount Of Ammo.");
  3348. return 1;
  3349. }
  3350.  
  3351. if(!isNumeric(tmp))
  3352. {
  3353. SendClientMessage(playerid, COLOR_ERROR, "Enter A Numerical Character.");
  3354. return 1;
  3355. }
  3356.  
  3357. ammo = strval(tmp);
  3358.  
  3359.  
  3360. if (IsPlayerNPC(giveplayerid))
  3361. {
  3362. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Give A Bot Weapons.");
  3363. return 1;
  3364. }
  3365.  
  3366.  
  3367. if (giveplayerid != playerid)
  3368. {
  3369. format(string, sizeof(string), "%s (%i) Gave You A Weapon.",PlayerInfo[playerid][pName],playerid);
  3370. SendClientMessage(giveplayerid,COLOR_ADMIN, string);
  3371.  
  3372. format(string, sizeof(string), "Gave %s (%i) A Weapon.",PlayerInfo[giveplayerid][pName],giveplayerid);
  3373. SendClientMessage(playerid,COLOR_ADMIN, string);
  3374. }
  3375.  
  3376. GivePlayerWeapon(giveplayerid, weaponid, ammo);
  3377.  
  3378. }else{
  3379. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  3380. }
  3381. return 1;
  3382. }
  3383. //==============================================================================
  3384. dcmd_aslap(playerid, params[])
  3385. {
  3386. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  3387.  
  3388. new idx,id,giveplayerid,Float:X,Float:Y,Float:Z,Float:Health,string[256],tmp[256],cmd[256],reason[256];
  3389.  
  3390. tmp = strtok(params, idx);
  3391. if(!strlen(tmp))
  3392. {
  3393. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /aslap (Name/Id) [reason].");
  3394. return 1;
  3395. }
  3396. if(!isNumeric(tmp))
  3397. {
  3398. giveplayerid = ReturnUser(playerid, tmp);
  3399. if(giveplayerid == INVALID_PLAYER_ID)
  3400. {
  3401. return 1;
  3402. }
  3403. }
  3404. else
  3405. {
  3406. giveplayerid = strval(tmp);
  3407. if(!IsPlayerConnected(giveplayerid))
  3408. {
  3409. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  3410. SendClientMessage(playerid, COLOR_ERROR, string);
  3411. return 1;
  3412. }
  3413. }
  3414. id = strlen(tmp);
  3415. tmp = strtok(params, idx);
  3416. if(!strlen(tmp))
  3417. {
  3418. reason = "No Reason Given.";
  3419. }
  3420. else
  3421. {
  3422.  
  3423. strmid(reason, params, id + strlen(cmd) + 1, strlen(params), 256);
  3424. }
  3425.  
  3426.  
  3427. /*if (giveplayerid == playerid)
  3428. {
  3429. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Slap Yourself.");
  3430. return 1;
  3431. }*/
  3432.  
  3433. if (IsPlayerNPC(giveplayerid))
  3434. {
  3435. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Slap A Bot.");
  3436. return 1;
  3437. }
  3438.  
  3439.  
  3440. /*if (IsPlayerAdmin(giveplayerid) || PlayerInfo[giveplayerid][pAdminLevel] > 2)
  3441. {
  3442. format(string, sizeof(string), "%s (%i) Is The Server Operator And Cannot Be Slap.",PlayerInfo[giveplayerid][pName],giveplayerid);
  3443. SendClientMessage(playerid, COLOR_ERROR, string);
  3444. return 1;
  3445. }*/
  3446. format(string, sizeof(string), "{FF66FF}ADMIN SLAP: {FFFFFF}%s (%i) {D6D631}REASON: {FFFFFF}%s",PlayerInfo[giveplayerid][pName],giveplayerid, reason);
  3447. SendClientMessageToAll(COLOR_SERVER_MAIN_MSG, string);
  3448.  
  3449. format(string, sizeof(string), "[SLAP] %s BY: %s REASON: %s",PlayerInfo[giveplayerid][pName],PlayerInfo[playerid][pName],reason);
  3450. AdminLog(string);
  3451.  
  3452.  
  3453. if(IsPlayerInAnyVehicle(giveplayerid))
  3454. {
  3455.  
  3456. new vehicleid = GetPlayerVehicleID(giveplayerid);
  3457.  
  3458. if (GetPlayerVirtualWorld(giveplayerid) == 0)
  3459. {
  3460. GetVehiclePos(vehicleid, X, Y, Z);
  3461. SetVehiclePos(vehicleid, X, Y, Z+50);
  3462.  
  3463. }else{
  3464. GetVehicleHealth(vehicleid, Health);
  3465. SetVehicleHealth(vehicleid, Health - 100);
  3466. }
  3467.  
  3468. }else{
  3469. GetPlayerPos(giveplayerid, X, Y, Z);
  3470.  
  3471. if (GetPlayerVirtualWorld(giveplayerid) == 0)
  3472. {
  3473. PlayerPlaySound(giveplayerid, 1190 , X, Y, Z);
  3474. SetPlayerPos(giveplayerid, X, Y, Z+5);
  3475.  
  3476. }else{
  3477. PlayerPlaySound(giveplayerid, 1190 , X, Y, Z);
  3478. GetPlayerHealth(giveplayerid, Health);
  3479. SetPlayerHealth(giveplayerid, Health - 10);
  3480. }
  3481.  
  3482.  
  3483. }
  3484.  
  3485. }else{
  3486. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  3487. }
  3488. return 1;
  3489. }
  3490. //==============================================================================
  3491. dcmd_akill(playerid, params[])
  3492. {
  3493. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 1){
  3494.  
  3495. new idx,giveplayerid,string[256],tmp[256];
  3496.  
  3497. tmp = strtok(params, idx);
  3498. if(!strlen(tmp))
  3499. {
  3500. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /akill (Name/Id).");
  3501. return 1;
  3502. }
  3503. if(!isNumeric(tmp))
  3504. {
  3505. giveplayerid = ReturnUser(playerid, tmp);
  3506. if(giveplayerid == INVALID_PLAYER_ID)
  3507. {
  3508. return 1;
  3509. }
  3510. }
  3511. else
  3512. {
  3513. giveplayerid = strval(tmp);
  3514. if(!IsPlayerConnected(giveplayerid))
  3515. {
  3516. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  3517. SendClientMessage(playerid, COLOR_ERROR, string);
  3518. return 1;
  3519. }
  3520. }
  3521.  
  3522.  
  3523.  
  3524. if (giveplayerid == playerid)
  3525. {
  3526. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Kill Yourself.");
  3527. return 1;
  3528. }
  3529.  
  3530. if (IsPlayerNPC(giveplayerid))
  3531. {
  3532. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Kill A Bot.");
  3533. return 1;
  3534. }
  3535.  
  3536.  
  3537. if (IsPlayerAdmin(giveplayerid) || PlayerInfo[giveplayerid][pAdminLevel] > 2)
  3538. {
  3539. format(string, sizeof(string), "%s (%i) Is The Server Operator And Cannot Be Killed.",PlayerInfo[giveplayerid][pName],giveplayerid);
  3540. SendClientMessage(playerid, COLOR_ERROR, string);
  3541. return 1;
  3542. }
  3543.  
  3544. PlayerInfo[giveplayerid][pCustomDeath] = WEAPON_GOD;
  3545.  
  3546. SetPlayerHealth(giveplayerid, 0);
  3547.  
  3548. format(string, sizeof(string), "[KILL] %s BY: %s",PlayerInfo[giveplayerid][pName],PlayerInfo[playerid][pName]);
  3549. AdminLog(string);
  3550.  
  3551. }else{
  3552. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  3553. }
  3554. return 1;
  3555. }
  3556. //==============================================================================
  3557. dcmd_cage(playerid, params[])
  3558. {
  3559. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  3560.  
  3561. new idx,giveplayerid,string[256],tmp[256];
  3562. new Float:X, Float:Y, Float:Z;
  3563.  
  3564. tmp = strtok(params, idx);
  3565. if(!strlen(tmp))
  3566. {
  3567. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /cage (Name/Id).");
  3568. return 1;
  3569. }
  3570. if(!isNumeric(tmp))
  3571. {
  3572. giveplayerid = ReturnUser(playerid, tmp);
  3573. if(giveplayerid == INVALID_PLAYER_ID)
  3574. {
  3575. return 1;
  3576. }
  3577. }
  3578. else
  3579. {
  3580. giveplayerid = strval(tmp);
  3581. if(!IsPlayerConnected(giveplayerid))
  3582. {
  3583. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  3584. SendClientMessage(playerid, COLOR_ERROR, string);
  3585. return 1;
  3586. }
  3587. }
  3588.  
  3589.  
  3590.  
  3591. /*if (giveplayerid == playerid)
  3592. {
  3593. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Cage Yourself.");
  3594. return 1;
  3595. }*/
  3596.  
  3597. if (IsPlayerNPC(giveplayerid))
  3598. {
  3599. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Cage A Bot.");
  3600. return 1;
  3601. }
  3602.  
  3603. GetPlayerPos(giveplayerid, X, Y, Z);
  3604. cage = CreateObject(19075, X, Y, Z, 0.0, 0.0, 0.0);
  3605. PlayerPlaySound(giveplayerid, 1137, X, Y, Z);
  3606. PlayerPlaySound(playerid, 1137, X, Y, Z);
  3607.  
  3608. }else{
  3609. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  3610. }
  3611. return 1;
  3612. }
  3613. //==============================================================================
  3614. dcmd_uncage(playerid, params[])
  3615. {
  3616. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  3617.  
  3618. new idx,giveplayerid,string[256],tmp[256];
  3619.  
  3620. tmp = strtok(params, idx);
  3621. if(!strlen(tmp))
  3622. {
  3623. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /uncage (Name/Id).");
  3624. return 1;
  3625. }
  3626. if(!isNumeric(tmp))
  3627. {
  3628. giveplayerid = ReturnUser(playerid, tmp);
  3629. if(giveplayerid == INVALID_PLAYER_ID)
  3630. {
  3631. return 1;
  3632. }
  3633. }
  3634. else
  3635. {
  3636. giveplayerid = strval(tmp);
  3637. if(!IsPlayerConnected(giveplayerid))
  3638. {
  3639. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  3640. SendClientMessage(playerid, COLOR_ERROR, string);
  3641. return 1;
  3642. }
  3643. }
  3644.  
  3645.  
  3646. /*if (giveplayerid == playerid)
  3647. {
  3648. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Rearm Yourself.");
  3649. return 1;
  3650. }*/
  3651.  
  3652. if (IsPlayerNPC(giveplayerid))
  3653. {
  3654. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Uncage A Bot.");
  3655. return 1;
  3656. }
  3657.  
  3658. DestroyObject(cage);
  3659.  
  3660. }else{
  3661. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  3662. }
  3663. return 1;
  3664. }
  3665. //==============================================================================
  3666. dcmd_disarm(playerid, params[])
  3667. {
  3668. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  3669.  
  3670. new idx,id,giveplayerid,string[256],tmp[256],cmd[256],reason[256];
  3671.  
  3672. tmp = strtok(params, idx);
  3673. if(!strlen(tmp))
  3674. {
  3675. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /disarm (Name/Id) [reason].");
  3676. return 1;
  3677. }
  3678. if(!isNumeric(tmp))
  3679. {
  3680. giveplayerid = ReturnUser(playerid, tmp);
  3681. if(giveplayerid == INVALID_PLAYER_ID)
  3682. {
  3683. return 1;
  3684. }
  3685. }
  3686. else
  3687. {
  3688. giveplayerid = strval(tmp);
  3689. if(!IsPlayerConnected(giveplayerid))
  3690. {
  3691. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  3692. SendClientMessage(playerid, COLOR_ERROR, string);
  3693. return 1;
  3694. }
  3695. }
  3696. id = strlen(tmp);
  3697. tmp = strtok(params, idx);
  3698. if(!strlen(tmp))
  3699. {
  3700. reason = "No Reason Given.";
  3701. }
  3702. else
  3703. {
  3704.  
  3705. strmid(reason, params, id + strlen(cmd) + 1, strlen(params), 256);
  3706. }
  3707.  
  3708.  
  3709. if (giveplayerid == playerid)
  3710. {
  3711. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Disarm Yourself.");
  3712. return 1;
  3713. }
  3714.  
  3715. if (IsPlayerNPC(giveplayerid))
  3716. {
  3717. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Disarm A Bot.");
  3718. return 1;
  3719. }
  3720.  
  3721. if (IsPlayerAdmin(giveplayerid) || PlayerInfo[giveplayerid][pAdminLevel] > 2)
  3722. {
  3723. format(string, sizeof(string), "%s (%i) Is The Server Operator And Cannot Be Disarm Them.",PlayerInfo[giveplayerid][pName],giveplayerid);
  3724. SendClientMessage(playerid, COLOR_ERROR, string);
  3725. return 1;
  3726. }
  3727.  
  3728. if (PlayerInfo[giveplayerid][pReturnWeapons] == 0)
  3729. {
  3730. for(new s = 0; s < 12; s++)
  3731. {
  3732. GetPlayerWeaponData(giveplayerid, s, PlayerInfo[giveplayerid][pWeapon][s], PlayerInfo[giveplayerid][pAmmo][s]);
  3733. }
  3734. }
  3735.  
  3736. ResetPlayerWeapons(giveplayerid);
  3737.  
  3738. format(string, sizeof(string), "{FF66FF}ADMIN DISARM: {FFFFFF}%s (%i) {D6D631}REASON: {FFFFFF}%s",PlayerInfo[giveplayerid][pName],giveplayerid, reason);
  3739. SendClientMessageToAll(COLOR_SERVER_MAIN_MSG, string);
  3740.  
  3741. format(string, sizeof(string), "[DISARM] %s BY: %s REASON: %s",PlayerInfo[giveplayerid][pName],PlayerInfo[playerid][pName],reason);
  3742. AdminLog(string);
  3743.  
  3744. }else{
  3745. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  3746. }
  3747. return 1;
  3748. }
  3749. //==============================================================================
  3750. dcmd_rearm(playerid, params[])
  3751. {
  3752. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  3753.  
  3754. new idx,id,giveplayerid,string[256],tmp[256],cmd[256],reason[256];
  3755.  
  3756. tmp = strtok(params, idx);
  3757. if(!strlen(tmp))
  3758. {
  3759. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /rearm (Name/Id) [reason].");
  3760. return 1;
  3761. }
  3762. if(!isNumeric(tmp))
  3763. {
  3764. giveplayerid = ReturnUser(playerid, tmp);
  3765. if(giveplayerid == INVALID_PLAYER_ID)
  3766. {
  3767. return 1;
  3768. }
  3769. }
  3770. else
  3771. {
  3772. giveplayerid = strval(tmp);
  3773. if(!IsPlayerConnected(giveplayerid))
  3774. {
  3775. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  3776. SendClientMessage(playerid, COLOR_ERROR, string);
  3777. return 1;
  3778. }
  3779. }
  3780. id = strlen(tmp);
  3781. tmp = strtok(params, idx);
  3782. if(!strlen(tmp))
  3783. {
  3784. reason = "No Reason Given.";
  3785. }
  3786. else
  3787. {
  3788.  
  3789. strmid(reason, params, id + strlen(cmd) + 1, strlen(params), 256);
  3790. }
  3791.  
  3792. if (giveplayerid == playerid)
  3793. {
  3794. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Rearm Yourself.");
  3795. return 1;
  3796. }
  3797.  
  3798. if (IsPlayerNPC(giveplayerid))
  3799. {
  3800. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Rearm A Bot.");
  3801. return 1;
  3802. }
  3803.  
  3804. if (IsPlayerAdmin(giveplayerid) || PlayerInfo[giveplayerid][pAdminLevel] > 2)
  3805. {
  3806. format(string, sizeof(string), "%s (%i) Is The Server Operator And Cannot Be Rearm.",PlayerInfo[giveplayerid][pName],giveplayerid);
  3807. SendClientMessage(playerid, COLOR_ERROR, string);
  3808. return 1;
  3809. }
  3810.  
  3811.  
  3812. ResetPlayerWeapons(giveplayerid);
  3813.  
  3814. if (PlayerInfo[giveplayerid][pReturnWeapons] == 0)
  3815. {
  3816. for(new s = 0; s < 12; s++)
  3817. {
  3818. GivePlayerWeapon(giveplayerid, PlayerInfo[giveplayerid][pWeapon][s], PlayerInfo[giveplayerid][pAmmo][s]);
  3819. }
  3820. }
  3821.  
  3822.  
  3823. format(string, sizeof(string), "{FF66FF}ADMIN REARM: {FFFFFF}%s (%i) {D6D631}REASON: {FFFFFF}%s",PlayerInfo[giveplayerid][pName],giveplayerid, reason);
  3824. SendClientMessageToAll(COLOR_SERVER_MAIN_MSG, string);
  3825.  
  3826.  
  3827. }else{
  3828. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  3829. }
  3830. return 1;
  3831. }
  3832. //==============================================================================
  3833. dcmd_mute(playerid, params[])
  3834. {
  3835. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  3836.  
  3837. new idx,id,giveplayerid,string[256],tmp[256],cmd[256],reason[256];
  3838.  
  3839. tmp = strtok(params, idx);
  3840. if(!strlen(tmp))
  3841. {
  3842. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /mute (Name/Id) [reason].");
  3843. return 1;
  3844. }
  3845. if(!isNumeric(tmp))
  3846. {
  3847. giveplayerid = ReturnUser(playerid, tmp);
  3848. if(giveplayerid == INVALID_PLAYER_ID)
  3849. {
  3850. return 1;
  3851. }
  3852. }
  3853. else
  3854. {
  3855. giveplayerid = strval(tmp);
  3856. if(!IsPlayerConnected(giveplayerid))
  3857. {
  3858. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  3859. SendClientMessage(playerid, COLOR_ERROR, string);
  3860. return 1;
  3861. }
  3862. }
  3863. id = strlen(tmp);
  3864. tmp = strtok(params, idx);
  3865. if(!strlen(tmp))
  3866. {
  3867. reason = "No Reason Given.";
  3868. }
  3869. else
  3870. {
  3871.  
  3872. strmid(reason, params, id + strlen(cmd) + 1, strlen(params), 256);
  3873. }
  3874.  
  3875.  
  3876. if (giveplayerid == playerid)
  3877. {
  3878. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Mute Yourself.");
  3879. return 1;
  3880. }
  3881.  
  3882. if (IsPlayerNPC(giveplayerid))
  3883. {
  3884. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Mute A Bot.");
  3885. return 1;
  3886. }
  3887.  
  3888. if (IsPlayerAdmin(giveplayerid) || PlayerInfo[giveplayerid][pAdminLevel] > 2)
  3889. {
  3890. format(string, sizeof(string), "%s (%i) Is The Server Operator And Cannot Be Muted.",PlayerInfo[giveplayerid][pName],giveplayerid);
  3891. SendClientMessage(playerid, COLOR_ERROR, string);
  3892. return 1;
  3893. }
  3894.  
  3895.  
  3896. if(PlayerInfo[giveplayerid][pMute] == 1)
  3897. {
  3898. format(string, sizeof(string), "%s (%i) Has Been Muted.",PlayerInfo[giveplayerid][pName],giveplayerid);
  3899. SendClientMessage(playerid, COLOR_ERROR, string);
  3900. return 1;
  3901. }
  3902.  
  3903. format(string, sizeof(string), "{FF66FF}ADMIN MUTE: {FFFFFF}%s (%i) {D6D631}REASON: {FFFFFF}%s",PlayerInfo[giveplayerid][pName],giveplayerid, reason);
  3904. SendClientMessageToAll(COLOR_SERVER_MAIN_MSG, string);
  3905. PlayerInfo[giveplayerid][pMute] = 1;
  3906.  
  3907. format(string, sizeof(string), "[MUTE] %s BY: %s REASON: %s",PlayerInfo[giveplayerid][pName],PlayerInfo[playerid][pName],reason);
  3908. AdminLog(string);
  3909.  
  3910. }else{
  3911. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  3912. }
  3913. return 1;
  3914. }
  3915. //==============================================================================
  3916. dcmd_unmute(playerid, params[])
  3917. {
  3918. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  3919.  
  3920. new idx,id,giveplayerid,string[256],tmp[256],cmd[256],reason[256];
  3921.  
  3922. tmp = strtok(params, idx);
  3923. if(!strlen(tmp))
  3924. {
  3925. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /unmute (Name/Id) [reason].");
  3926. return 1;
  3927. }
  3928. if(!isNumeric(tmp))
  3929. {
  3930. giveplayerid = ReturnUser(playerid, tmp);
  3931. if(giveplayerid == INVALID_PLAYER_ID)
  3932. {
  3933. return 1;
  3934. }
  3935. }
  3936. else
  3937. {
  3938. giveplayerid = strval(tmp);
  3939. if(!IsPlayerConnected(giveplayerid))
  3940. {
  3941. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  3942. SendClientMessage(playerid, COLOR_ERROR, string);
  3943. return 1;
  3944. }
  3945. }
  3946. id = strlen(tmp);
  3947. tmp = strtok(params, idx);
  3948. if(!strlen(tmp))
  3949. {
  3950. reason = "No Reason Given.";
  3951. }
  3952. else
  3953. {
  3954.  
  3955. strmid(reason, params, id + strlen(cmd) + 1, strlen(params), 256);
  3956. }
  3957.  
  3958. if (giveplayerid == playerid)
  3959. {
  3960. SendClientMessage(playerid, COLOR_ERROR, "You Cannot UnMute Yourself.");
  3961. return 1;
  3962. }
  3963.  
  3964. if (IsPlayerNPC(giveplayerid))
  3965. {
  3966. SendClientMessage(playerid, COLOR_ERROR, "You Cannot UnMute A Bot.");
  3967. return 1;
  3968. }
  3969.  
  3970. if (IsPlayerAdmin(giveplayerid) || PlayerInfo[giveplayerid][pAdminLevel] > 2)
  3971. {
  3972. format(string, sizeof(string), "%s (%i) Is The Server Operator And Cannot Be UnMuted.",PlayerInfo[giveplayerid][pName],giveplayerid);
  3973. SendClientMessage(playerid, COLOR_ERROR, string);
  3974. return 1;
  3975. }
  3976.  
  3977. if(PlayerInfo[giveplayerid][pMute] == 0)
  3978. {
  3979. format(string, sizeof(string), "%s (%i) Has Not Been Muted.",PlayerInfo[giveplayerid][pName],giveplayerid);
  3980. SendClientMessage(playerid, COLOR_ERROR, string);
  3981. return 1;
  3982. }
  3983.  
  3984. format(string, sizeof(string), "{FF66FF}ADMIN UNMUTE: {FFFFFF}%s (%i) {D6D631}REASON: {FFFFFF}%s",PlayerInfo[giveplayerid][pName],giveplayerid, reason);
  3985. SendClientMessageToAll(COLOR_SERVER_MAIN_MSG, string);
  3986. PlayerInfo[giveplayerid][pMute] = 0;
  3987.  
  3988.  
  3989. format(string, sizeof(string), "[UNMUTE] %s BY: %s REASON: %s",PlayerInfo[giveplayerid][pName],PlayerInfo[playerid][pName],reason);
  3990. AdminLog(string);
  3991.  
  3992. }else{
  3993. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  3994. }
  3995. return 1;
  3996. }
  3997. //==============================================================================
  3998. dcmd_jail(playerid, params[])
  3999. {
  4000. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  4001.  
  4002. new idx,id,giveplayerid,string[256],tmp[256],cmd[256],reason[256];
  4003.  
  4004. tmp = strtok(params, idx);
  4005. if(!strlen(tmp))
  4006. {
  4007. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /jail (Name/Id) [reason].");
  4008. return 1;
  4009. }
  4010. if(!isNumeric(tmp))
  4011. {
  4012. giveplayerid = ReturnUser(playerid, tmp);
  4013. if(giveplayerid == INVALID_PLAYER_ID)
  4014. {
  4015. return 1;
  4016. }
  4017. }
  4018. else
  4019. {
  4020. giveplayerid = strval(tmp);
  4021. if(!IsPlayerConnected(giveplayerid))
  4022. {
  4023. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  4024. SendClientMessage(playerid, COLOR_ERROR, string);
  4025. return 1;
  4026. }
  4027. }
  4028. id = strlen(tmp);
  4029. tmp = strtok(params, idx);
  4030. if(!strlen(tmp))
  4031. {
  4032. reason = "No Reason Given.";
  4033. }
  4034. else
  4035. {
  4036.  
  4037. strmid(reason, params, id + strlen(cmd) + 1, strlen(params), 256);
  4038. }
  4039.  
  4040. if (giveplayerid == playerid)
  4041. {
  4042. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Jail Yourself.");
  4043. return 1;
  4044. }
  4045.  
  4046. if (IsPlayerNPC(giveplayerid))
  4047. {
  4048. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Jail A Bot.");
  4049. return 1;
  4050. }
  4051.  
  4052. if (IsPlayerAdmin(giveplayerid) || PlayerInfo[giveplayerid][pAdminLevel] > 2)
  4053. {
  4054. format(string, sizeof(string), "%s (%i) Is The Server Operator And Cannot Be Jailed.",PlayerInfo[giveplayerid][pName],giveplayerid);
  4055. SendClientMessage(playerid, COLOR_ERROR, string);
  4056. return 1;
  4057. }
  4058.  
  4059.  
  4060. if(PlayerInfo[giveplayerid][pAJailed] == 1)
  4061. {
  4062. format(string, sizeof(string), "%s (%i) Has Already Been Jailed By A Admin.",PlayerInfo[giveplayerid][pName],giveplayerid);
  4063. SendClientMessage(playerid, COLOR_ERROR, string);
  4064. return 1;
  4065. }
  4066.  
  4067. if(PlayerInfo[giveplayerid][pJailed] == 1)
  4068. {
  4069. format(string, sizeof(string), "%s (%i) Has Been Sent To Jail By A Police Officer.",PlayerInfo[giveplayerid][pName],giveplayerid);
  4070. SendClientMessage(playerid, COLOR_ERROR, string);
  4071. return 1;
  4072. }
  4073.  
  4074. format(string, sizeof(string), "{FF66FF}ADMIN JAIL: {FFFFFF}%s (%i) {D6D631}REASON: {FFFFFF}%s",PlayerInfo[giveplayerid][pName],giveplayerid, reason);
  4075. SendClientMessageToAll(COLOR_SERVER_MAIN_MSG, string);
  4076. PlayerInfo[giveplayerid][pAJailed] = 1;
  4077. Jail(giveplayerid);
  4078.  
  4079. format(string, sizeof(string), "[JAIL] %s BY: %s REASON: %s",PlayerInfo[giveplayerid][pName],PlayerInfo[playerid][pName],reason);
  4080. AdminLog(string);
  4081.  
  4082. }else{
  4083. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  4084. }
  4085. return 1;
  4086. }
  4087. //==============================================================================
  4088. dcmd_unjail(playerid, params[])
  4089. {
  4090. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  4091.  
  4092. new idx,id,giveplayerid,string[256],tmp[256],cmd[256],reason[256];
  4093.  
  4094. tmp = strtok(params, idx);
  4095. if(!strlen(tmp))
  4096. {
  4097. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /unjail (Name/Id) [reason].");
  4098. return 1;
  4099. }
  4100. if(!isNumeric(tmp))
  4101. {
  4102. giveplayerid = ReturnUser(playerid, tmp);
  4103. if(giveplayerid == INVALID_PLAYER_ID)
  4104. {
  4105. return 1;
  4106. }
  4107. }
  4108. else
  4109. {
  4110. giveplayerid = strval(tmp);
  4111. if(!IsPlayerConnected(giveplayerid))
  4112. {
  4113. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  4114. SendClientMessage(playerid, COLOR_ERROR, string);
  4115. return 1;
  4116. }
  4117. }
  4118. id = strlen(tmp);
  4119. tmp = strtok(params, idx);
  4120. if(!strlen(tmp))
  4121. {
  4122. reason = "No Reason Given.";
  4123. }
  4124. else
  4125. {
  4126.  
  4127. strmid(reason, params, id + strlen(cmd) + 1, strlen(params), 256);
  4128. }
  4129.  
  4130.  
  4131. /*if (giveplayerid == playerid)
  4132. {
  4133. SendClientMessage(playerid, COLOR_ERROR, "You Cannot UnJail Yourself.");
  4134. return 1;
  4135. }*/
  4136.  
  4137. if (IsPlayerNPC(giveplayerid))
  4138. {
  4139. SendClientMessage(playerid, COLOR_ERROR, "You Cannot UnJail A Bot.");
  4140. return 1;
  4141. }
  4142.  
  4143. if (IsPlayerAdmin(giveplayerid) || PlayerInfo[giveplayerid][pAdminLevel] > 2)
  4144. {
  4145. format(string, sizeof(string), "%s (%i) Is The Server Operator And Cannot Be UnJailed.",PlayerInfo[giveplayerid][pName],giveplayerid);
  4146. SendClientMessage(playerid, COLOR_ERROR, string);
  4147. return 1;
  4148. }
  4149.  
  4150. if(PlayerInfo[giveplayerid][pAJailed] == 0)
  4151. {
  4152. format(string, sizeof(string), "%s (%i) Has Not Been Jailed By A Admin.",PlayerInfo[giveplayerid][pName],giveplayerid);
  4153. SendClientMessage(playerid, COLOR_ERROR, string);
  4154. return 1;
  4155. }
  4156.  
  4157. if(PlayerInfo[giveplayerid][pJailed] == 1)
  4158. {
  4159. format(string, sizeof(string), "You Cannot Release A Suspect From Jail When They Have Not Served Their Sentence.");
  4160. SendClientMessage(playerid, COLOR_ERROR, string);
  4161. return 1;
  4162. }
  4163.  
  4164. format(string, sizeof(string), "{FF66FF}ADMIN UNJAIL: {FFFFFF}%s (%i) {D6D631}REASON: {FFFFFF}%s",PlayerInfo[giveplayerid][pName],giveplayerid, reason);
  4165. SendClientMessageToAll(COLOR_SERVER_MAIN_MSG, string);
  4166. PlayerInfo[giveplayerid][pAJailed] = 0;
  4167. UnJail(giveplayerid);
  4168.  
  4169. format(string, sizeof(string), "[UNJAIL] %s BY: %s REASON: %s",PlayerInfo[giveplayerid][pName],PlayerInfo[playerid][pName],reason);
  4170. AdminLog(string);
  4171.  
  4172. }else{
  4173. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  4174. }
  4175. return 1;
  4176. }
  4177. //==============================================================================
  4178. dcmd_ice(playerid, params[])
  4179. {
  4180. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  4181.  
  4182. new idx,id,giveplayerid,string[256],tmp[256],cmd[256],reason[256];
  4183.  
  4184. tmp = strtok(params, idx);
  4185. if(!strlen(tmp))
  4186. {
  4187. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /ice (Name/Id) [reason].");
  4188. return 1;
  4189. }
  4190. if(!isNumeric(tmp))
  4191. {
  4192. giveplayerid = ReturnUser(playerid, tmp);
  4193. if(giveplayerid == INVALID_PLAYER_ID)
  4194. {
  4195. return 1;
  4196. }
  4197. }
  4198. else
  4199. {
  4200. giveplayerid = strval(tmp);
  4201. if(!IsPlayerConnected(giveplayerid))
  4202. {
  4203. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  4204. SendClientMessage(playerid, COLOR_ERROR, string);
  4205. return 1;
  4206. }
  4207. }
  4208. id = strlen(tmp);
  4209. tmp = strtok(params, idx);
  4210. if(!strlen(tmp))
  4211. {
  4212. reason = "No Reason Given.";
  4213. }
  4214. else
  4215. {
  4216.  
  4217. strmid(reason, params, id + strlen(cmd) + 1, strlen(params), 256);
  4218. }
  4219.  
  4220. if (giveplayerid == playerid)
  4221. {
  4222. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Freeze Yourself.");
  4223. return 1;
  4224. }
  4225.  
  4226. if (IsPlayerNPC(giveplayerid))
  4227. {
  4228. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Freeze A Bot.");
  4229. return 1;
  4230. }
  4231.  
  4232. if (IsPlayerAdmin(giveplayerid) || PlayerInfo[giveplayerid][pAdminLevel] > 2)
  4233. {
  4234. format(string, sizeof(string), "%s (%i) Is The Server Operator And Cannot Be Frozen.",PlayerInfo[giveplayerid][pName],giveplayerid);
  4235. SendClientMessage(playerid, COLOR_ERROR, string);
  4236. return 1;
  4237. }
  4238.  
  4239. if(PlayerInfo[giveplayerid][pFroze] == 1)
  4240. {
  4241. format(string, sizeof(string), "%s (%i) Has Already Been Frozen By A Admin.",PlayerInfo[giveplayerid][pName],giveplayerid);
  4242. SendClientMessage(playerid, COLOR_ERROR, string);
  4243. return 1;
  4244. }
  4245.  
  4246.  
  4247. format(string, sizeof(string), "{FF66FF}ADMIN FREEZE: {FFFFFF}%s (%i) {D6D631}REASON: {FFFFFF}%s",PlayerInfo[giveplayerid][pName],giveplayerid, reason);
  4248. SendClientMessageToAll(COLOR_SERVER_MAIN_MSG, string);
  4249. PlayerInfo[giveplayerid][pFroze] = 1;
  4250. TogglePlayerControllable(giveplayerid, 0);
  4251.  
  4252. format(string, sizeof(string), "[FREEZE] %s BY: %s REASON: %s",PlayerInfo[giveplayerid][pName],PlayerInfo[playerid][pName],reason);
  4253. AdminLog(string);
  4254.  
  4255. }else{
  4256. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  4257. }
  4258. return 1;
  4259. }
  4260. //==============================================================================
  4261. dcmd_thaw(playerid, params[])
  4262. {
  4263. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  4264.  
  4265. new idx,id,giveplayerid,string[256],tmp[256],cmd[256],reason[256];
  4266.  
  4267. tmp = strtok(params, idx);
  4268. if(!strlen(tmp))
  4269. {
  4270. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /thaw (Name/Id) [reason].");
  4271. return 1;
  4272. }
  4273. if(!isNumeric(tmp))
  4274. {
  4275. giveplayerid = ReturnUser(playerid, tmp);
  4276. if(giveplayerid == INVALID_PLAYER_ID)
  4277. {
  4278. return 1;
  4279. }
  4280. }
  4281. else
  4282. {
  4283. giveplayerid = strval(tmp);
  4284. if(!IsPlayerConnected(giveplayerid))
  4285. {
  4286. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  4287. SendClientMessage(playerid, COLOR_ERROR, string);
  4288. return 1;
  4289. }
  4290. }
  4291. id = strlen(tmp);
  4292. tmp = strtok(params, idx);
  4293. if(!strlen(tmp))
  4294. {
  4295. reason = "No Reason Given.";
  4296. }
  4297. else
  4298. {
  4299.  
  4300. strmid(reason, params, id + strlen(cmd) + 1, strlen(params), 256);
  4301. }
  4302.  
  4303.  
  4304. if (giveplayerid == playerid)
  4305. {
  4306. SendClientMessage(playerid, COLOR_ERROR, "You Cannot UnFreeze Yourself.");
  4307. return 1;
  4308. }
  4309.  
  4310. if (IsPlayerNPC(giveplayerid))
  4311. {
  4312. SendClientMessage(playerid, COLOR_ERROR, "You Cannot UnFreeze A Bot.");
  4313. return 1;
  4314. }
  4315.  
  4316. if (IsPlayerAdmin(giveplayerid) || PlayerInfo[giveplayerid][pAdminLevel] > 2)
  4317. {
  4318. format(string, sizeof(string), "%s (%i) Is The Server Operator And Cannot Be UnFrozen.",PlayerInfo[giveplayerid][pName],giveplayerid);
  4319. SendClientMessage(playerid, COLOR_ERROR, string);
  4320. return 1;
  4321. }
  4322.  
  4323. if(PlayerInfo[giveplayerid][pFroze] == 0)
  4324. {
  4325. format(string, sizeof(string), "%s (%i) Has Not Been Frozen By A Admin.",PlayerInfo[giveplayerid][pName],giveplayerid);
  4326. SendClientMessage(playerid, COLOR_ERROR, string);
  4327. return 1;
  4328. }
  4329.  
  4330.  
  4331. format(string, sizeof(string), "{FF66FF}ADMIN UNFREEZE: {FFFFFF}%s (%i) {D6D631}REASON: {FFFFFF}%s",PlayerInfo[giveplayerid][pName],giveplayerid, reason);
  4332. SendClientMessageToAll(COLOR_SERVER_MAIN_MSG, string);
  4333. PlayerInfo[giveplayerid][pFroze] = 0;
  4334. TogglePlayerControllable(giveplayerid, 1);
  4335.  
  4336.  
  4337. format(string, sizeof(string), "[UNFREEZE] %s BY: %s REASON: %s",PlayerInfo[giveplayerid][pName],PlayerInfo[playerid][pName],reason);
  4338. AdminLog(string);
  4339.  
  4340. }else{
  4341. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  4342. }
  4343. return 1;
  4344. }
  4345. //==============================================================================
  4346. dcmd_kick(playerid, params[])
  4347. {
  4348. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 1){
  4349.  
  4350. new idx,id,giveplayerid,string[256],tmp[256],cmd[256],reason[256];
  4351.  
  4352. tmp = strtok(params, idx);
  4353. if(!strlen(tmp))
  4354. {
  4355. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /kick (Name/Id) [reason].");
  4356. return 1;
  4357. }
  4358. if(!isNumeric(tmp))
  4359. {
  4360. giveplayerid = ReturnUser(playerid, tmp);
  4361. if(giveplayerid == INVALID_PLAYER_ID)
  4362. {
  4363. return 1;
  4364. }
  4365. }
  4366. else
  4367. {
  4368. giveplayerid = strval(tmp);
  4369. if(!IsPlayerConnected(giveplayerid))
  4370. {
  4371. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  4372. SendClientMessage(playerid, COLOR_ERROR, string);
  4373. return 1;
  4374. }
  4375. }
  4376. id = strlen(tmp);
  4377. tmp = strtok(params, idx);
  4378. if(!strlen(tmp))
  4379. {
  4380. reason = "No Reason Given.";
  4381. }
  4382. else
  4383. {
  4384.  
  4385. strmid(reason, params, id + strlen(cmd) + 1, strlen(params), 256);
  4386. }
  4387.  
  4388. if (giveplayerid == playerid)
  4389. {
  4390. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Kick Yourself.");
  4391. return 1;
  4392. }
  4393.  
  4394. if (IsPlayerNPC(giveplayerid))
  4395. {
  4396. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Kick A Bot.");
  4397. return 1;
  4398. }
  4399.  
  4400. if (IsPlayerAdmin(giveplayerid) || PlayerInfo[giveplayerid][pAdminLevel] > 2)
  4401. {
  4402. format(string, sizeof(string), "%s (%i) Is The Server Operator And Cannot Be Kicked.",PlayerInfo[giveplayerid][pName],giveplayerid);
  4403. SendClientMessage(playerid, COLOR_ERROR, string);
  4404. return 1;
  4405. }
  4406.  
  4407. KickPlayer(giveplayerid,PlayerInfo[playerid][pName],"ADMIN",reason);
  4408.  
  4409. }else{
  4410. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  4411. }
  4412. return 1;
  4413. }
  4414. //==============================================================================
  4415. dcmd_skick(playerid, params[])
  4416. {
  4417. dcmd_silentkick(playerid, params);
  4418. return 1;
  4419. }
  4420.  
  4421. dcmd_silentkick(playerid, params[])
  4422. {
  4423. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 1){
  4424.  
  4425. new idx,giveplayerid,string[256],tmp[256];
  4426.  
  4427. tmp = strtok(params, idx);
  4428.  
  4429. if(!strlen(tmp))
  4430. {
  4431. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /skick (Name/Id) - Enter A Valid Name/Id.");
  4432. return 1;
  4433. }
  4434. if(!isNumeric(tmp))
  4435. {
  4436. giveplayerid = ReturnUser(playerid, tmp);
  4437. if(giveplayerid == INVALID_PLAYER_ID)
  4438. {
  4439. return 1;
  4440. }
  4441. }
  4442. else
  4443. {
  4444. giveplayerid = strval(tmp);
  4445. if(!IsPlayerConnected(giveplayerid))
  4446. {
  4447. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  4448. SendClientMessage(playerid, COLOR_ERROR, string);
  4449. return 1;
  4450. }
  4451. }
  4452.  
  4453.  
  4454. if (giveplayerid == playerid)
  4455. {
  4456. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Kick Yourself.");
  4457. return 1;
  4458. }
  4459.  
  4460. if (IsPlayerNPC(giveplayerid))
  4461. {
  4462. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Kick A Bot.");
  4463. return 1;
  4464. }
  4465.  
  4466. if (IsPlayerAdmin(giveplayerid) || PlayerInfo[giveplayerid][pAdminLevel] > 2)
  4467. {
  4468. format(string, sizeof(string), "%s (%i) Is The Server Operator And Cannot Be Kicked.",PlayerInfo[giveplayerid][pName],giveplayerid);
  4469. SendClientMessage(playerid, COLOR_ERROR, string);
  4470. return 1;
  4471. }
  4472.  
  4473.  
  4474.  
  4475. format(string, sizeof(string), "***SILENT KICK: %s (%i)",PlayerInfo[giveplayerid][pName],giveplayerid);
  4476. SendClientMessage(playerid,COLOR_ADMIN, string);
  4477.  
  4478.  
  4479. format(string, sizeof(string), "[SILENT KICK] %s BY: %s",PlayerInfo[giveplayerid][pName],PlayerInfo[playerid][pName]);
  4480. AdminLog(string);
  4481.  
  4482. //Jail(giveplayerid);
  4483. Kick(giveplayerid);
  4484.  
  4485. }else{
  4486. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  4487. }
  4488. return 1;
  4489. }
  4490. //==============================================================================
  4491. dcmd_ban(playerid, params[])
  4492. {
  4493. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 1){
  4494.  
  4495. new idx,id,giveplayerid,string[256],tmp[256],cmd[256],reason[256];
  4496.  
  4497. tmp = strtok(params, idx);
  4498. if(!strlen(tmp))
  4499. {
  4500. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /ban (Name/Id) [reason].");
  4501. return 1;
  4502. }
  4503. if(!isNumeric(tmp))
  4504. {
  4505. giveplayerid = ReturnUser(playerid, tmp);
  4506. if(giveplayerid == INVALID_PLAYER_ID)
  4507. {
  4508. return 1;
  4509. }
  4510. }
  4511. else
  4512. {
  4513. giveplayerid = strval(tmp);
  4514. if(!IsPlayerConnected(giveplayerid))
  4515. {
  4516. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  4517. SendClientMessage(playerid, COLOR_ERROR, string);
  4518. return 1;
  4519. }
  4520. }
  4521. id = strlen(tmp);
  4522. tmp = strtok(params, idx);
  4523. if(!strlen(tmp))
  4524. {
  4525. reason = "No Reason Given.";
  4526. }
  4527. else
  4528. {
  4529.  
  4530. strmid(reason, params, id + strlen(cmd) + 1, strlen(params), 256);
  4531. }
  4532.  
  4533. if (giveplayerid == playerid)
  4534. {
  4535. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Ban Yourself.");
  4536. return 1;
  4537. }
  4538.  
  4539. if (IsPlayerNPC(giveplayerid))
  4540. {
  4541. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Ban A Bot.");
  4542. return 1;
  4543. }
  4544.  
  4545. if (IsPlayerAdmin(giveplayerid) || PlayerInfo[giveplayerid][pAdminLevel] > 2)
  4546. {
  4547. format(string, sizeof(string), "%s (%i) Is The Server Operator And Cannot Be Banned.",PlayerInfo[giveplayerid][pName],giveplayerid);
  4548. SendClientMessage(playerid, COLOR_ERROR, string);
  4549. return 1;
  4550. }
  4551.  
  4552. BanPlayer(giveplayerid,PlayerInfo[playerid][pName],"ADMIN",reason);
  4553.  
  4554.  
  4555. }else{
  4556. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  4557. }
  4558. return 1;
  4559. }
  4560. //==============================================================================
  4561. dcmd_sban(playerid, params[])
  4562. {
  4563. dcmd_silentban(playerid, params);
  4564. return 1;
  4565. }
  4566.  
  4567. dcmd_silentban(playerid, params[])
  4568. {
  4569. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 1){
  4570.  
  4571. new idx,giveplayerid,string[256],tmp[256];
  4572.  
  4573. tmp = strtok(params, idx);
  4574.  
  4575. if(!strlen(tmp))
  4576. {
  4577. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /sban (Name/Id) - Enter A Valid Name/Id.");
  4578. return 1;
  4579. }
  4580. if(!isNumeric(tmp))
  4581. {
  4582. giveplayerid = ReturnUser(playerid, tmp);
  4583. if(giveplayerid == INVALID_PLAYER_ID)
  4584. {
  4585. return 1;
  4586. }
  4587. }
  4588. else
  4589. {
  4590. giveplayerid = strval(tmp);
  4591. if(!IsPlayerConnected(giveplayerid))
  4592. {
  4593. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  4594. SendClientMessage(playerid, COLOR_ERROR, string);
  4595. return 1;
  4596. }
  4597. }
  4598.  
  4599.  
  4600. if (giveplayerid == playerid)
  4601. {
  4602. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Ban Yourself.");
  4603. return 1;
  4604. }
  4605.  
  4606. if (IsPlayerNPC(giveplayerid))
  4607. {
  4608. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Ban A Bot.");
  4609. return 1;
  4610. }
  4611.  
  4612. if (IsPlayerAdmin(giveplayerid) || PlayerInfo[giveplayerid][pAdminLevel] > 2)
  4613. {
  4614. format(string, sizeof(string), "%s (%i) Is The Server Operator And Cannot Be Banned.",PlayerInfo[giveplayerid][pName],giveplayerid);
  4615. SendClientMessage(playerid, COLOR_ERROR, string);
  4616. return 1;
  4617. }
  4618.  
  4619.  
  4620. format(string, sizeof(string), "***SILENT BAN: %s (%i)",PlayerInfo[giveplayerid][pName],giveplayerid);
  4621. SendClientMessage(playerid,COLOR_ADMIN, string);
  4622.  
  4623. //Jail(giveplayerid);
  4624.  
  4625. new query[256],IP[56],BDate[56],BTime[56];//
  4626.  
  4627. new Hour, Minute, Second, Year, Month, Day;
  4628.  
  4629. GetPlayerIp(giveplayerid, IP, sizeof(IP)); //Gets the players IP
  4630.  
  4631. gettime(Hour, Minute, Second);
  4632. getdate(Year, Month, Day);
  4633.  
  4634. format(BDate, sizeof(BDate), "%d-%d-%d",Day,Month,Year);
  4635. format(BTime, sizeof(BTime), "%d:%d",Hour,Minute);
  4636.  
  4637. format(query, sizeof(query), "INSERT INTO banned (User, Banner, IP, Date, Time, Reason) VALUES ('%s', '%s', '%s', '%s', '%s', 'Silent Ban')",PlayerInfo[giveplayerid][pName],PlayerInfo[playerid][pName],IP,BDate,BTime); //Insert string
  4638. mysql_query(query); //queries
  4639. mysql_free_result(); //Frees the result
  4640.  
  4641. if (PlayerInfo[giveplayerid][pRegistered] == 1 && PlayerInfo[giveplayerid][pLogged] == 1)
  4642. {
  4643. format(string,sizeof(string),"UPDATE playerdata SET Locked = 1 WHERE (UserName = '%s')",PlayerInfo[giveplayerid][pName]);
  4644. mysql_query(string); //queries
  4645. mysql_free_result(); //Frees the result
  4646. }
  4647.  
  4648. format(string, sizeof(string), "[SILENT BAN] %s BY: %s",PlayerInfo[giveplayerid][pName],PlayerInfo[playerid][pName]);
  4649. AdminLog(string);
  4650.  
  4651. }else{
  4652. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  4653. }
  4654. return 1;
  4655. }
  4656. //==============================================================================
  4657. dcmd_alotto(playerid, params[])
  4658. {
  4659. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 1){
  4660.  
  4661. new idx,Number,string[256],tmp[256];
  4662.  
  4663. tmp = strtok(params, idx);
  4664.  
  4665. if(!strlen(tmp))
  4666. {
  4667. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /alotto (number) Enter A Number 1 - 30");
  4668. return 1;
  4669. }
  4670.  
  4671. if(!isNumeric(tmp))
  4672. {
  4673. SendClientMessage(playerid, COLOR_ERROR, "Invalid Selection Please Enter A Numeric Character.");
  4674. return 1;
  4675. }
  4676.  
  4677. Number = strval(tmp);
  4678.  
  4679. if(Number < 1 || Number > 30)
  4680. {
  4681. SendClientMessage(playerid, COLOR_ERROR, "Invalid Selection Please Enter A Number 1 - 30.");
  4682. return 1;
  4683. }
  4684.  
  4685.  
  4686. LottoNumber = Number;
  4687. format(string, sizeof(string), "You Set The Lotto Number To %d",Number);
  4688. SendClientMessage(playerid, COLOR_SERVER_HELP_MSG, string);
  4689.  
  4690. }else{
  4691. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  4692. }
  4693. return 1;
  4694. }
  4695. //==============================================================================
  4696. dcmd_anopm(playerid, params[])
  4697. {
  4698. #pragma unused params
  4699. if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0){
  4700.  
  4701. if(PlayerInfo[playerid][pANoPm] == 1)
  4702. {
  4703. SendClientMessage(playerid, COLOR_ADMIN, "You Are Now Watching Private Messages. Type /anopm To Stop Watching Private Messages.");
  4704. PlayerInfo[playerid][pANoPm] = 0;
  4705. }
  4706. else
  4707. {
  4708. SendClientMessage(playerid, COLOR_ADMIN, "You Are No Longer Watching Private Messages. Type /anopm To Watch Private Messages.");
  4709. PlayerInfo[playerid][pANoPm] = 1;
  4710. }
  4711.  
  4712. }else{
  4713. SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
  4714. }
  4715. return 1;
  4716. }
  4717. //==============================================================================
  4718. //======================END OF ADMINISTRATION COMMANDS==========================
  4719. //==============================================================================
  4720. //==============================================================================
  4721. //======================START OF MESSAGE COMMANDS===============================
  4722. //==============================================================================
  4723. //==============================================================================
  4724. dcmd_r(playerid, params[])
  4725. {
  4726. dcmd_reply(playerid, params);
  4727. return 1;
  4728. }
  4729.  
  4730. dcmd_reply(playerid, params[])
  4731. {
  4732. new idx,giveplayerid,string[256],length = strlen(params);
  4733.  
  4734. while ((idx < length) && (params[idx] <= ' '))
  4735. {
  4736. idx++;
  4737. }
  4738. new offset = idx;
  4739. new result[64];
  4740. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  4741. {
  4742. result[idx - offset] = params[idx];
  4743. idx++;
  4744. }
  4745.  
  4746. result[idx - offset] = EOS;
  4747.  
  4748. if(!strlen(result))
  4749. {
  4750. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /reply (message).");
  4751. }
  4752.  
  4753.  
  4754. if (PlayerInfo[playerid][pQuickReply][1] == -1)
  4755. {
  4756. SendClientMessage(playerid, COLOR_ERROR, "No One Is Set On Quick Reply.");
  4757. return 1;
  4758. }
  4759.  
  4760. giveplayerid = PlayerInfo[playerid][pQuickReply][1];
  4761.  
  4762. if(!IsPlayerConnected(giveplayerid))
  4763. {
  4764. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  4765. SendClientMessage(playerid, COLOR_ERROR, string);
  4766. return 1;
  4767. }
  4768.  
  4769. OnPlayerPrivmsg(playerid, giveplayerid, result);
  4770.  
  4771. return 1;
  4772. }
  4773. //==============================================================================
  4774. dcmd_ignore(playerid, params[])
  4775. {
  4776.  
  4777. new idx,giveplayerid,string[256],tmp[256];
  4778.  
  4779. tmp = strtok(params, idx);
  4780.  
  4781. if(!strlen(tmp))
  4782. {
  4783. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /ignore (Name/Id) - Enter A Valid Name/Id.");
  4784. return 1;
  4785. }
  4786. if(!isNumeric(tmp))
  4787. {
  4788. giveplayerid = ReturnUser(playerid, tmp);
  4789. if(giveplayerid == INVALID_PLAYER_ID)
  4790. {
  4791. return 1;
  4792. }
  4793. }
  4794. else
  4795. {
  4796. giveplayerid = strval(tmp);
  4797. if(!IsPlayerConnected(giveplayerid))
  4798. {
  4799. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  4800. SendClientMessage(playerid, COLOR_ERROR, string);
  4801. return 1;
  4802. }
  4803. }
  4804.  
  4805. if (giveplayerid == playerid)
  4806. {
  4807. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Ignore Yourself.");
  4808. return 1;
  4809. }
  4810. /*
  4811. if (IsPlayerNPC(giveplayerid))
  4812. {
  4813. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Ban A Bot.");
  4814. return 1;
  4815. }*/
  4816.  
  4817. if (IsPlayerAdmin(giveplayerid) || PlayerInfo[giveplayerid][pAdminLevel] > 0)
  4818. {
  4819. format(string, sizeof(string), "%s (%i) Is A Admin And Cannot Be Ignored.",PlayerInfo[giveplayerid][pName],giveplayerid);
  4820. SendClientMessage(playerid, COLOR_ERROR, string);
  4821. return 1;
  4822. }
  4823.  
  4824.  
  4825. if (PlayerIgnoreList[playerid][giveplayerid] == 0)
  4826. {
  4827.  
  4828. PlayerIgnoreList[playerid][giveplayerid] = 1;
  4829. format(string, sizeof(string), "You Are Now Ignoring Chat and PMs From {8E5FE1}%s (%d){FFFFFF}.",PlayerInfo[giveplayerid][pName],giveplayerid);
  4830. SendClientMessage(playerid,COLOR_SERVER_MAIN_MSG, string);
  4831. format(string, sizeof(string), "Type {D6D631}/ignore %s {FFFFFF}To Stop Ignoring.",PlayerInfo[giveplayerid][pName]);
  4832. SendClientMessage(playerid,COLOR_SERVER_MAIN_MSG, string);
  4833.  
  4834. }else{
  4835.  
  4836. PlayerIgnoreList[playerid][giveplayerid] = 0;
  4837. format(string, sizeof(string), "You Are No Longer Ignoring {8E5FE1}%s (%d){FFFFFF}.",PlayerInfo[giveplayerid][pName],giveplayerid);
  4838. SendClientMessage(playerid,COLOR_SERVER_MAIN_MSG, string);
  4839.  
  4840. }
  4841. return 1;
  4842. }
  4843. //==============================================================================
  4844. dcmd_nopm(playerid, params[])
  4845. {
  4846. #pragma unused params
  4847. if(PlayerInfo[playerid][pNoPm] == 1)
  4848. {
  4849. SendClientMessage(playerid, COLOR_PRIVATE_MSG, "You Are Now Accepting Private Messages. Type /nopm To Ignore Private Messages.");
  4850. PlayerInfo[playerid][pNoPm] = 0;
  4851. }
  4852. else
  4853. {
  4854. SendClientMessage(playerid, COLOR_PRIVATE_MSG, "You Are No Longer Accepting Private Messages. Type /nopm To Accept Private Messages.");
  4855. PlayerInfo[playerid][pNoPm] = 1;
  4856. }
  4857. return 1;
  4858. }
  4859. //==============================================================================
  4860. dcmd_set(playerid, params[])
  4861. {
  4862. new idx,slot,giveplayerid,string[256],tmp[256];
  4863.  
  4864. tmp = strtok(params, idx);
  4865.  
  4866. if(!strlen(tmp))
  4867. {
  4868. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /set (#) (Name/Id) - Enter A Number 1 - 3.");
  4869. return 1;
  4870. }
  4871.  
  4872. if(!isNumeric(tmp))
  4873. {
  4874. SendClientMessage(playerid, COLOR_ERROR, "Invalid Number Please Enter A Numerical Character.");
  4875. return 1;
  4876. }
  4877.  
  4878. slot = strval(tmp);
  4879.  
  4880. if (slot < 1 || slot > 3)
  4881. {
  4882. SendClientMessage(playerid, COLOR_ERROR, "Enter A Number 1 - 3.");
  4883. return 1;
  4884. }
  4885.  
  4886. tmp = strtok(params, idx);
  4887.  
  4888. if(!strlen(tmp))
  4889. {
  4890. SendClientMessage(playerid, COLOR_ERROR, "USAGE: /set (#) (Name/Id) - Enter A Valid Name/Id.");
  4891. return 1;
  4892. }
  4893. if(!isNumeric(tmp))
  4894. {
  4895. giveplayerid = ReturnUser(playerid, tmp);
  4896. if(giveplayerid == INVALID_PLAYER_ID)
  4897. {
  4898. return 1;
  4899. }
  4900. }
  4901. else
  4902. {
  4903. giveplayerid = strval(tmp);
  4904. if(!IsPlayerConnected(giveplayerid))
  4905. {
  4906. format(string, sizeof(string), "%d Is Not A Valid ID.", giveplayerid);
  4907. SendClientMessage(playerid, COLOR_ERROR, string);
  4908. return 1;
  4909. }
  4910. }
  4911.  
  4912.  
  4913. if(giveplayerid == playerid)
  4914. {
  4915. SendClientMessage(playerid, COLOR_ERROR, "You Cannot Set Yourself On Quick PM.");
  4916. return 1;
  4917. }
  4918.  
  4919. PlayerInfo[playerid][pQuickPM][slot] = giveplayerid;
  4920.  
  4921. format(string, sizeof(string), "%s (%d) Set On Quick PM %d. Use /%d (message) to Send Them a Message.",PlayerInfo[giveplayerid][pName],giveplayerid,slot,slot);
  4922. SendClientMessage(playerid, COLOR_PRIVATE_MSG, string);
  4923.  
  4924. return 1;
  4925. }
Advertisement
Add Comment
Please, Sign In to add comment