Guest User

FS Orgs

a guest
Jun 9th, 2012
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.93 KB | None | 0 0
  1. //includes
  2. #include <a_samp>
  3. #include <DOF2>
  4. #include <Dini>
  5. #include <Core>
  6. #include <sscanf>
  7. #include <utils>
  8. #include <cpstream>
  9. #include <file>
  10. #include <float>
  11. #include <time>
  12. #if defined FILTERSCRIPT
  13.  
  14.  
  15. //news
  16. static gTeam[MAX_PLAYERS];
  17. #pragma tabsize 0
  18.  
  19. new PlayerInfo[MAX_PLAYERS][pInfo];
  20.  
  21. public OnFilterScriptInit()
  22. {
  23. print("\n--------------------------------------");
  24. print(" Blank Filterscript by your name here");
  25. print("--------------------------------------\n");
  26. return 1;
  27. }
  28.  
  29. public OnFilterScriptExit()
  30. {
  31. return 1;
  32. }
  33.  
  34. #else
  35.  
  36. main()
  37. {
  38. print("\n----------------------------------");
  39. print(" Blank Gamemode by your name here");
  40. print("----------------------------------\n");
  41. }
  42.  
  43. #endif
  44.  
  45.  
  46. public OnGameModeInit()
  47. {
  48. // Don't use these lines if it's a filterscript
  49. SetGameModeText("Blank Script");
  50. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  51. return 1;
  52. }
  53.  
  54. public OnGameModeExit()
  55. {
  56. return 1;
  57. }
  58.  
  59. public OnPlayerRequestClass(playerid, classid)
  60. {
  61. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  62. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  63. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  64. return 1;
  65. }
  66.  
  67. public OnPlayerConnect(playerid)
  68. {
  69. return 1;
  70. }
  71.  
  72. public OnPlayerDisconnect(playerid, reason)
  73. {
  74. return 1;
  75. }
  76.  
  77. public OnPlayerSpawn(playerid)
  78. {
  79. return 1;
  80. }
  81.  
  82. public OnPlayerDeath(playerid, killerid, reason)
  83. {
  84. return 1;
  85. }
  86.  
  87. public OnVehicleSpawn(vehicleid)
  88. {
  89. return 1;
  90. }
  91.  
  92. public OnVehicleDeath(vehicleid, killerid)
  93. {
  94. return 1;
  95. }
  96.  
  97. public OnPlayerText(playerid, text[])
  98. {
  99. return 1;
  100. }
  101.  
  102. public OnPlayerCommandText(playerid, cmdtext[])
  103. {
  104. new string[256];
  105. new playermoney;
  106. new sendername[MAX_PLAYER_NAME];
  107. new giveplayer[MAX_PLAYER_NAME];
  108. new playername[MAX_PLAYER_NAME];
  109. new cmd[256];
  110. new tmp[256];
  111. new giveplayerid, moneys, idx;
  112. cmd = strtok(cmdtext, idx);
  113. //=====================================================//
  114.  
  115. if(strcmp(cmd, "/lider", true) == 0)
  116. {
  117. if(IsPlayerConnected(playerid))
  118. {
  119. tmp = strtok(cmdtext, idx);
  120. if(!strlen(tmp))
  121. {
  122. SendClientMessage(playerid, 0xFF005499, "USO: /lider [playerid/Parte-do-Nick] [Number(1-14)]");
  123. return 1;
  124. }
  125. new para1;
  126. new level;
  127. para1 = ReturnUser(tmp);
  128. tmp = strtok(cmdtext, idx);
  129. level = strval(tmp);
  130. if(level > 18 || level < 0) { SendClientMessage(playerid, 0x00559999, " Números entre 1 e 18"); return 1; }
  131. if (PlayerInfo[playerid][pAdmin] >= 4)
  132. {
  133. if(IsPlayerConnected(para1))
  134. {
  135. if(para1 != INVALID_PLAYER_ID)
  136. {
  137. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  138. GetPlayerName(playerid, sendername, sizeof(sendername));
  139. PlayerInfo[para1][pLeader] = level;
  140. format(string, sizeof(string), "* %s lhe deu o direito administração profissional, digite /rg.", sendername);
  141. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  142. format(string, sizeof(string), "* %s é o novo líder administrativo profissional (%d).", giveplayer,level);
  143. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  144. if(level == 0) { PlayerInfo[para1][pChar] = 0; }
  145. else if(level == 1) { PlayerInfo[para1][pChar] = 265; gTeam[para1] = 2; } //Police Force
  146. else if(level == 2) { PlayerInfo[para1][pChar] = 286; gTeam[para1] = 2; } //FBI/ATF
  147. else if(level == 3) { PlayerInfo[para1][pChar] = 287; gTeam[para1] = 2;} //National Guard
  148. else if(level == 4) { PlayerInfo[para1][pChar] = 70; gTeam[para1] = 4;} //Fire/Ambulance
  149. else if(level == 5) { PlayerInfo[para1][pChar] = 104; gTeam[para1] = 5;} //Ballas
  150. else if(level == 6) { PlayerInfo[para1][pChar] = 270; gTeam[para1] = 5;} //Grove
  151. else if(level == 17) { PlayerInfo[para1][pChar] = 294; gTeam[para1] = 5;} //Grove
  152. else if(level == 7) { PlayerInfo[para1][pChar] = 147; gTeam[para1] = 7;} //prefeito
  153. else if(level == 8) { PlayerInfo[para1][pChar] = 249; gTeam[para1] = 8;} //Hitmans
  154. else if(level == 9) { PlayerInfo[para1][pChar] = 17; gTeam[para1] = 9;} //News Reporters
  155. else if(level == 12) { PlayerInfo[para1][pChar] = 108; gTeam[para1] = 5;} //Los vagos
  156. else if(level == 13) { PlayerInfo[para1][pChar] = 248; gTeam[para1] = 5;} //motoqueiros
  157. else if(level == 14) { PlayerInfo[para1][pChar] = 112; gTeam[para1] = 2; } //PR
  158. else if(level == 15) { PlayerInfo[para1][pChar] = 115; gTeam[para1] = 5; } //Aztecas
  159. else if(level == 16) { PlayerInfo[para1][pChar] = 117; gTeam[para1] = 5; } //Mafia
  160. else if(level == 18) { PlayerInfo[para1][pChar] = 291; gTeam[para1] = 5; } //Mafia
  161. PlayerInfo[para1][pLeader] = level;
  162. PlayerInfo[para1][pMember] = level;
  163. PlayerInfo[para1][pRank] = 6;
  164. PlayerInfo[para1][pTeam] = gTeam[para1];
  165. PlayerInfo[para1][pModel] = PlayerInfo[para1][pChar];
  166. SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
  167. }
  168. }//not connected
  169. }
  170. else
  171. {
  172. SendClientMessage(playerid, COLOR_GRAD1, " Sem Autorização.");
  173. }
  174. }
  175. return 1;
  176. }
  177.  
  178. return 0;
  179. }
  180.  
  181. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  182. {
  183. return 1;
  184. }
  185.  
  186. public OnPlayerExitVehicle(playerid, vehicleid)
  187. {
  188. return 1;
  189. }
  190.  
  191. public OnPlayerStateChange(playerid, newstate, oldstate)
  192. {
  193. return 1;
  194. }
  195.  
  196. public OnPlayerEnterCheckpoint(playerid)
  197. {
  198. return 1;
  199. }
  200.  
  201. public OnPlayerLeaveCheckpoint(playerid)
  202. {
  203. return 1;
  204. }
  205.  
  206. public OnPlayerEnterRaceCheckpoint(playerid)
  207. {
  208. return 1;
  209. }
  210.  
  211. public OnPlayerLeaveRaceCheckpoint(playerid)
  212. {
  213. return 1;
  214. }
  215.  
  216. public OnRconCommand(cmd[])
  217. {
  218. return 1;
  219. }
  220.  
  221. public OnPlayerRequestSpawn(playerid)
  222. {
  223. return 1;
  224. }
  225.  
  226. public OnObjectMoved(objectid)
  227. {
  228. return 1;
  229. }
  230.  
  231. public OnPlayerObjectMoved(playerid, objectid)
  232. {
  233. return 1;
  234. }
  235.  
  236. public OnPlayerPickUpPickup(playerid, pickupid)
  237. {
  238. return 1;
  239. }
  240.  
  241. public OnVehicleMod(playerid, vehicleid, componentid)
  242. {
  243. return 1;
  244. }
  245.  
  246. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  247. {
  248. return 1;
  249. }
  250.  
  251. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  252. {
  253. return 1;
  254. }
  255.  
  256. public OnPlayerSelectedMenuRow(playerid, row)
  257. {
  258. return 1;
  259. }
  260.  
  261. public OnPlayerExitedMenu(playerid)
  262. {
  263. return 1;
  264. }
  265.  
  266. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  267. {
  268. return 1;
  269. }
  270.  
  271. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  272. {
  273. return 1;
  274. }
  275.  
  276. public OnRconLoginAttempt(ip[], password[], success)
  277. {
  278. return 1;
  279. }
  280.  
  281. public OnPlayerUpdate(playerid)
  282. {
  283. return 1;
  284. }
  285.  
  286. public OnPlayerStreamIn(playerid, forplayerid)
  287. {
  288. return 1;
  289. }
  290.  
  291. public OnPlayerStreamOut(playerid, forplayerid)
  292. {
  293. return 1;
  294. }
  295.  
  296. public OnVehicleStreamIn(vehicleid, forplayerid)
  297. {
  298. return 1;
  299. }
  300.  
  301. public OnVehicleStreamOut(vehicleid, forplayerid)
  302. {
  303. return 1;
  304. }
  305.  
  306. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  307. {
  308. return 1;
  309. }
  310.  
  311. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  312. {
  313. return 1;
  314. }
Advertisement
Add Comment
Please, Sign In to add comment