AXV09

My little shit. :)

Oct 27th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.35 KB | None | 0 0
  1. #pragma ctrlchar 0x5c
  2. #pragma pack false
  3. #pragma semicolon true
  4. #pragma tabsize 8
  5. #file rgb.pwn
  6. #file C:\Users\Kamil\Desktop\Pawn\include\a_samp.inc
  7. #line 1
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14. #line 11
  15. #pragma library samp
  16.  
  17. #pragma tabsize 4
  18.  
  19.  
  20.  
  21. #file C:\Users\Kamil\Desktop\Pawn\include\core.inc
  22. #line 1
  23.  
  24.  
  25.  
  26.  
  27.  
  28. #line 10
  29. #pragma library Core
  30.  
  31. native heapspace();
  32.  
  33. native funcidx(const name[]);
  34.  
  35. native numargs();
  36. native getarg(arg, index=0);
  37. native setarg(arg, index=0, value);
  38.  
  39. native tolower(c);
  40. native toupper(c);
  41. native swapchars(c);
  42.  
  43. native random(max);
  44.  
  45. native min(value1, value2);
  46. native max(value1, value2);
  47. native clamp(value, min=cellmin, max=cellmax);
  48.  
  49. native getproperty(id=0, const name[]="", value=cellmin, string[]="");
  50. native setproperty(id=0, const name[]="", value=cellmin, const string[]="");
  51. native deleteproperty(id=0, const name[]="", value=cellmin);
  52. native existproperty(id=0, const name[]="", value=cellmin);
  53.  
  54.  
  55. #file C:\Users\Kamil\Desktop\Pawn\include\a_samp.inc
  56. #file C:\Users\Kamil\Desktop\Pawn\include\float.inc
  57. #line 1
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. #line 14
  68. #pragma library Float
  69.  
  70.  
  71. enum floatround_method {
  72. floatround_round,
  73. floatround_floor,
  74. floatround_ceil,
  75. floatround_tozero,
  76. floatround_unbiased
  77. }
  78. enum anglemode {
  79. radian,
  80. degrees,
  81. grades
  82. }
  83.  
  84.  
  85.  
  86. native Float:float(value);
  87.  
  88.  
  89.  
  90. native Float:floatstr(const string[]);
  91.  
  92.  
  93.  
  94. native Float:floatmul(Float:oper1, Float:oper2);
  95.  
  96.  
  97.  
  98. native Float:floatdiv(Float:dividend, Float:divisor);
  99.  
  100.  
  101.  
  102. native Float:floatadd(Float:oper1, Float:oper2);
  103.  
  104.  
  105.  
  106. native Float:floatsub(Float:oper1, Float:oper2);
  107.  
  108.  
  109.  
  110. native Float:floatfract(Float:value);
  111.  
  112.  
  113.  
  114. native floatround(Float:value, floatround_method:method=floatround_round);
  115.  
  116.  
  117.  
  118.  
  119.  
  120. native floatcmp(Float:oper1, Float:oper2);
  121.  
  122.  
  123.  
  124. native Float:floatsqroot(Float:value);
  125.  
  126.  
  127.  
  128. native Float:floatpower(Float:value, Float:exponent);
  129.  
  130.  
  131.  
  132. native Float:floatlog(Float:value, Float:base=10.0);
  133.  
  134.  
  135.  
  136.  
  137. native Float:floatsin(Float:value, anglemode:mode=radian);
  138. native Float:floatcos(Float:value, anglemode:mode=radian);
  139. native Float:floattan(Float:value, anglemode:mode=radian);
  140.  
  141.  
  142.  
  143. native Float:floatabs(Float:value);
  144.  
  145.  
  146.  
  147. #pragma rational Float
  148.  
  149.  
  150. native Float:operator*(Float:oper1, Float:oper2) = floatmul;
  151. native Float:operator/(Float:oper1, Float:oper2) = floatdiv;
  152. native Float:operator+(Float:oper1, Float:oper2) = floatadd;
  153. native Float:operator-(Float:oper1, Float:oper2) = floatsub;
  154. native Float:operator=(oper) = float;
  155.  
  156. stock Float:operator++(Float:oper)
  157. return oper+1.0;
  158.  
  159. stock Float:operator--(Float:oper)
  160. return oper-1.0;
  161.  
  162. stock Float:operator-(Float:oper)
  163. return oper^Float:cellmin;
  164.  
  165. stock Float:operator*(Float:oper1, oper2)
  166. return floatmul(oper1, float(oper2));
  167.  
  168. stock Float:operator/(Float:oper1, oper2)
  169. return floatdiv(oper1, float(oper2));
  170.  
  171. stock Float:operator/(oper1, Float:oper2)
  172. return floatdiv(float(oper1), oper2);
  173.  
  174. stock Float:operator+(Float:oper1, oper2)
  175. return floatadd(oper1, float(oper2));
  176.  
  177. stock Float:operator-(Float:oper1, oper2)
  178. return floatsub(oper1, float(oper2));
  179.  
  180. stock Float:operator-(oper1, Float:oper2)
  181. return floatsub(float(oper1), oper2);
  182.  
  183. stock bool:operator==(Float:oper1, Float:oper2)
  184. return floatcmp(oper1, oper2) == 0;
  185.  
  186. stock bool:operator==(Float:oper1, oper2)
  187. return floatcmp(oper1, float(oper2)) == 0;
  188.  
  189. stock bool:operator!=(Float:oper1, Float:oper2)
  190. return floatcmp(oper1, oper2) != 0;
  191.  
  192. stock bool:operator!=(Float:oper1, oper2)
  193. return floatcmp(oper1, float(oper2)) != 0;
  194.  
  195. stock bool:operator>(Float:oper1, Float:oper2)
  196. return floatcmp(oper1, oper2) > 0;
  197.  
  198. stock bool:operator>(Float:oper1, oper2)
  199. return floatcmp(oper1, float(oper2)) > 0;
  200.  
  201. stock bool:operator>(oper1, Float:oper2)
  202. return floatcmp(float(oper1), oper2) > 0;
  203.  
  204. stock bool:operator>=(Float:oper1, Float:oper2)
  205. return floatcmp(oper1, oper2) >= 0;
  206.  
  207. stock bool:operator>=(Float:oper1, oper2)
  208. return floatcmp(oper1, float(oper2)) >= 0;
  209.  
  210. stock bool:operator>=(oper1, Float:oper2)
  211. return floatcmp(float(oper1), oper2) >= 0;
  212.  
  213. stock bool:operator<(Float:oper1, Float:oper2)
  214. return floatcmp(oper1, oper2) < 0;
  215.  
  216. stock bool:operator<(Float:oper1, oper2)
  217. return floatcmp(oper1, float(oper2)) < 0;
  218.  
  219. stock bool:operator<(oper1, Float:oper2)
  220. return floatcmp(float(oper1), oper2) < 0;
  221.  
  222. stock bool:operator<=(Float:oper1, Float:oper2)
  223. return floatcmp(oper1, oper2) <= 0;
  224.  
  225. stock bool:operator<=(Float:oper1, oper2)
  226. return floatcmp(oper1, float(oper2)) <= 0;
  227.  
  228. stock bool:operator<=(oper1, Float:oper2)
  229. return floatcmp(float(oper1), oper2) <= 0;
  230.  
  231. stock bool:operator!(Float:oper)
  232. return (_:oper & cellmax) == 0;
  233.  
  234.  
  235. forward operator%(Float:oper1, Float:oper2);
  236. forward operator%(Float:oper1, oper2);
  237. forward operator%(oper1, Float:oper2);
  238.  
  239.  
  240. #file C:\Users\Kamil\Desktop\Pawn\include\a_samp.inc
  241. #file C:\Users\Kamil\Desktop\Pawn\include\string.inc
  242. #line 1
  243.  
  244.  
  245.  
  246.  
  247.  
  248. #line 10
  249. #pragma library String
  250.  
  251. native strlen(const string[]);
  252. native strpack(dest[], const source[], maxlength=sizeof dest);
  253. native strunpack(dest[], const source[], maxlength=sizeof dest);
  254. native strcat(dest[], const source[], maxlength=sizeof dest);
  255.  
  256. native strmid(dest[], const source[], start, end, maxlength=sizeof dest);
  257. native bool: strins(string[], const substr[], pos, maxlength=sizeof string);
  258. native bool: strdel(string[], start, end);
  259.  
  260. native strcmp(const string1[], const string2[], bool:ignorecase=false, length=cellmax);
  261. native strfind(const string[], const sub[], bool:ignorecase=false, pos=0);
  262.  
  263. native strval(const string[]);
  264. native valstr(dest[], value, bool:pack=false);
  265. native bool: ispacked(const string[]);
  266.  
  267. native uudecode(dest[], const source[], maxlength=sizeof dest);
  268. native uuencode(dest[], const source[], numbytes, maxlength=sizeof dest);
  269. native memcpy(dest[], const source[], index=0, numbytes, maxlength=sizeof dest);
  270.  
  271. #file C:\Users\Kamil\Desktop\Pawn\include\a_samp.inc
  272. #file C:\Users\Kamil\Desktop\Pawn\include\file.inc
  273. #line 1
  274.  
  275.  
  276.  
  277.  
  278.  
  279. #line 10
  280. #pragma library File
  281.  
  282. enum filemode
  283. {
  284. io_read,
  285. io_write,
  286. io_readwrite,
  287. io_append,
  288. }
  289.  
  290. enum seek_whence
  291. {
  292. seek_start,
  293. seek_current,
  294. seek_end,
  295. }
  296.  
  297. const EOF = -1;
  298.  
  299. native File:fopen(const name[], filemode: mode = io_readwrite);
  300. native bool:fclose(File: handle);
  301. native File:ftemp();
  302. native bool:fremove(const name[]);
  303.  
  304. native fwrite(File: handle, const string[]);
  305. native fread(File: handle, string[], size = sizeof string, bool: pack = false);
  306. native bool:fputchar(File: handle, value, bool: utf8 = true);
  307. native fgetchar(File: handle, value, bool: utf8 = true);
  308. native fblockwrite(File: handle, const buffer[], size = sizeof buffer);
  309. native fblockread(File: handle, buffer[], size = sizeof buffer);
  310.  
  311. native fseek(File: handle, position = 0, seek_whence: whence = seek_start);
  312. native flength(File: handle);
  313. native fexist(const pattern[]);
  314. native bool:fmatch(name[], const pattern[], index = 0, size = sizeof name);
  315.  
  316. #file C:\Users\Kamil\Desktop\Pawn\include\a_samp.inc
  317. #file C:\Users\Kamil\Desktop\Pawn\include\time.inc
  318. #line 1
  319.  
  320.  
  321.  
  322.  
  323.  
  324. #line 10
  325. #pragma library Time
  326.  
  327. native gettime(&hour=0, &minute=0, &second=0);
  328. native getdate(&year=0, &month=0, &day=0);
  329. native tickcount(&granularity=0);
  330.  
  331. #file C:\Users\Kamil\Desktop\Pawn\include\a_samp.inc
  332. #file C:\Users\Kamil\Desktop\Pawn\include\datagram.inc
  333. #line 1
  334.  
  335.  
  336.  
  337.  
  338.  
  339. #line 10
  340. #pragma library DGram
  341.  
  342. native sendstring(const message[], const destination[]="");
  343. native sendpacket(const packet[], size, const destination[]="");
  344.  
  345. native listenport(port);
  346.  
  347. forward @receivestring(const message[], const source[]);
  348. forward @receivepacket(const packet[], size, const source[]);
  349.  
  350. #file C:\Users\Kamil\Desktop\Pawn\include\a_samp.inc
  351. #file C:\Users\Kamil\Desktop\Pawn\include\a_players.inc
  352. #line 1
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359. #line 11
  360. #pragma library players
  361.  
  362. #line 32
  363.  
  364. #line 39
  365.  
  366. #line 51
  367.  
  368. #line 57
  369.  
  370.  
  371. native SetSpawnInfo(playerid, team, skin, Float:x, Float:y, Float:z, Float:rotation, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
  372. native SpawnPlayer(playerid);
  373.  
  374.  
  375. native SetPlayerPos(playerid, Float:x, Float:y, Float:z);
  376. native SetPlayerPosFindZ(playerid, Float:x, Float:y, Float:z);
  377. native GetPlayerPos(playerid, &Float:x, &Float:y, &Float:z);
  378. native SetPlayerFacingAngle(playerid,Float:ang);
  379. native GetPlayerFacingAngle(playerid,&Float:ang);
  380. native IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z);
  381. native Float:GetPlayerDistanceFromPoint(playerid, Float:X, Float:Y, Float:Z);
  382. native IsPlayerStreamedIn(playerid, forplayerid);
  383. native SetPlayerInterior(playerid,interiorid);
  384. native GetPlayerInterior(playerid);
  385. native SetPlayerHealth(playerid, Float:health);
  386. native GetPlayerHealth(playerid, &Float:health);
  387. native SetPlayerArmour(playerid, Float:armour);
  388. native GetPlayerArmour(playerid, &Float:armour);
  389. native SetPlayerAmmo(playerid, weaponslot, ammo);
  390. native GetPlayerAmmo(playerid);
  391. native GetPlayerWeaponState(playerid);
  392. native GetPlayerTargetPlayer(playerid);
  393. native SetPlayerTeam(playerid, teamid);
  394. native GetPlayerTeam(playerid);
  395. native SetPlayerScore(playerid,score);
  396. native GetPlayerScore(playerid);
  397. native GetPlayerDrunkLevel(playerid);
  398. native SetPlayerDrunkLevel(playerid, level);
  399. native SetPlayerColor(playerid,color);
  400. native GetPlayerColor(playerid);
  401. native SetPlayerSkin(playerid, skinid);
  402. native GetPlayerSkin(playerid);
  403. native GivePlayerWeapon(playerid, weaponid, ammo);
  404. native ResetPlayerWeapons(playerid);
  405. native SetPlayerArmedWeapon(playerid, weaponid);
  406. native GetPlayerWeaponData(playerid, slot, &weapons, &ammo);
  407. native GivePlayerMoney(playerid,money);
  408. native ResetPlayerMoney(playerid);
  409. native SetPlayerName(playerid, const name[]);
  410. native GetPlayerMoney(playerid);
  411. native GetPlayerState(playerid);
  412. native GetPlayerIp(playerid, name[], len);
  413. native GetPlayerPing(playerid);
  414. native GetPlayerWeapon(playerid);
  415. native GetPlayerKeys(playerid, &keys, &updown, &leftright);
  416. native GetPlayerName(playerid, const name[], len);
  417. native SetPlayerTime(playerid, hour, minute);
  418. native GetPlayerTime(playerid, &hour, &minute);
  419. native TogglePlayerClock(playerid, toggle);
  420. native SetPlayerWeather(playerid, weather);
  421. native ForceClassSelection(playerid);
  422. native SetPlayerWantedLevel(playerid, level);
  423. native GetPlayerWantedLevel(playerid);
  424. native SetPlayerFightingStyle(playerid, style);
  425. native GetPlayerFightingStyle(playerid);
  426. native SetPlayerVelocity(playerid, Float:X, Float:Y, Float:Z);
  427. native GetPlayerVelocity( playerid, &Float:X, &Float:Y, &Float:Z );
  428. native PlayCrimeReportForPlayer(playerid, suspectid, crime);
  429. native PlayAudioStreamForPlayer(playerid, url[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0);
  430. native StopAudioStreamForPlayer(playerid);
  431. native SetPlayerShopName(playerid, shopname[]);
  432. native SetPlayerSkillLevel(playerid, skill, level);
  433. native GetPlayerSurfingVehicleID(playerid);
  434. native GetPlayerSurfingObjectID(playerid);
  435. native RemoveBuildingForPlayer(playerid, modelid, Float:fX, Float:fY, Float:fZ, Float:fRadius);
  436.  
  437.  
  438.  
  439. #line 128
  440.  
  441. native SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX = 0.0, Float:fOffsetY = 0.0, Float:fOffsetZ = 0.0, Float:fRotX = 0.0, Float:fRotY = 0.0, Float:fRotZ = 0.0, Float:fScaleX = 1.0, Float:fScaleY = 1.0, Float:fScaleZ = 1.0, materialcolor1 = 0, materialcolor2 = 0);
  442. native RemovePlayerAttachedObject(playerid, index);
  443. native IsPlayerAttachedObjectSlotUsed(playerid, index);
  444. native EditAttachedObject(playerid, index);
  445.  
  446.  
  447. native PlayerText:CreatePlayerTextDraw(playerid, Float:x, Float:y, text[]);
  448. native PlayerTextDrawDestroy(playerid, PlayerText:text);
  449. native PlayerTextDrawLetterSize(playerid, PlayerText:text, Float:x, Float:y);
  450. native PlayerTextDrawTextSize(playerid, PlayerText:text, Float:x, Float:y);
  451. native PlayerTextDrawAlignment(playerid, PlayerText:text, alignment);
  452. native PlayerTextDrawColor(playerid, PlayerText:text, color);
  453. native PlayerTextDrawUseBox(playerid, PlayerText:text, use);
  454. native PlayerTextDrawBoxColor(playerid, PlayerText:text, color);
  455. native PlayerTextDrawSetShadow(playerid, PlayerText:text, size);
  456. native PlayerTextDrawSetOutline(playerid, PlayerText:text, size);
  457. native PlayerTextDrawBackgroundColor(playerid, PlayerText:text, color);
  458. native PlayerTextDrawFont(playerid, PlayerText:text, font);
  459. native PlayerTextDrawSetProportional(playerid, PlayerText:text, set);
  460. native PlayerTextDrawSetSelectable(playerid, PlayerText:text, set);
  461. native PlayerTextDrawShow(playerid, PlayerText:text);
  462. native PlayerTextDrawHide(playerid, PlayerText:text);
  463. native PlayerTextDrawSetString(playerid, PlayerText:text, string[]);
  464. native PlayerTextDrawSetPreviewModel(playerid, PlayerText:text, modelindex);
  465. native PlayerTextDrawSetPreviewRot(playerid, PlayerText:text, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fZoom = 1.0);
  466. native PlayerTextDrawSetPreviewVehCol(playerid, PlayerText:text, color1, color2);
  467.  
  468.  
  469. native SetPVarInt(playerid, varname[], int_value);
  470. native GetPVarInt(playerid, varname[]);
  471. native SetPVarString(playerid, varname[], string_value[]);
  472. native GetPVarString(playerid, varname[], string_return[], len);
  473. native SetPVarFloat(playerid, varname[], Float:float_value);
  474. native Float:GetPVarFloat(playerid, varname[]);
  475. native DeletePVar(playerid, varname[]);
  476.  
  477.  
  478. #line 170
  479.  
  480. native GetPVarsUpperIndex(playerid);
  481. native GetPVarNameAtIndex(playerid, index, ret_varname[], ret_len);
  482. native GetPVarType(playerid, varname[]);
  483.  
  484. #line 176
  485. native SetPlayerChatBubble(playerid, text[], color, Float:drawdistance, expiretime);
  486.  
  487.  
  488. native PutPlayerInVehicle(playerid, vehicleid, seatid);
  489. native GetPlayerVehicleID(playerid);
  490. native GetPlayerVehicleSeat(playerid);
  491. native RemovePlayerFromVehicle(playerid);
  492. native TogglePlayerControllable(playerid, toggle);
  493. native PlayerPlaySound(playerid, soundid, Float:x, Float:y, Float:z);
  494. native ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync = 0);
  495. native ClearAnimations(playerid, forcesync = 0);
  496. native GetPlayerAnimationIndex(playerid);
  497. native GetAnimationName(index, animlib[], len1, animname[], len2);
  498. native GetPlayerSpecialAction(playerid);
  499. native SetPlayerSpecialAction(playerid,actionid);
  500.  
  501.  
  502. native SetPlayerCheckpoint(playerid, Float:x, Float:y, Float:z, Float:size);
  503. native DisablePlayerCheckpoint(playerid);
  504. native SetPlayerRaceCheckpoint(playerid, type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size);
  505. native DisablePlayerRaceCheckpoint(playerid);
  506. native SetPlayerWorldBounds(playerid,Float:x_max,Float:x_min,Float:y_max,Float:y_min);
  507. native SetPlayerMarkerForPlayer(playerid, showplayerid, color);
  508. native ShowPlayerNameTagForPlayer(playerid, showplayerid, show);
  509.  
  510. #line 205
  511.  
  512. native SetPlayerMapIcon(playerid, iconid, Float:x, Float:y, Float:z, markertype, color, style = 0);
  513. native RemovePlayerMapIcon(playerid, iconid);
  514.  
  515. native AllowPlayerTeleport(playerid, allow);
  516.  
  517.  
  518. native SetPlayerCameraPos(playerid,Float:x, Float:y, Float:z);
  519.  
  520. #line 216
  521.  
  522. native SetPlayerCameraLookAt(playerid, Float:x, Float:y, Float:z, cut = 2);
  523. native SetCameraBehindPlayer(playerid);
  524. native GetPlayerCameraPos(playerid, &Float:x, &Float:y, &Float:z);
  525. native GetPlayerCameraFrontVector(playerid, &Float:x, &Float:y, &Float:z);
  526. native GetPlayerCameraMode(playerid);
  527. native AttachCameraToObject(playerid, objectid);
  528. native AttachCameraToPlayerObject(playerid, playerobjectid);
  529. native InterpolateCameraPos(playerid, Float:FromX, Float:FromY, Float:FromZ, Float:ToX, Float:ToY, Float:ToZ, time, cut = 2);
  530. native InterpolateCameraLookAt(playerid, Float:FromX, Float:FromY, Float:FromZ, Float:ToX, Float:ToY, Float:ToZ, time, cut = 2);
  531.  
  532.  
  533. native IsPlayerConnected(playerid);
  534. native IsPlayerInVehicle(playerid, vehicleid);
  535. native IsPlayerInAnyVehicle(playerid);
  536. native IsPlayerInCheckpoint(playerid);
  537. native IsPlayerInRaceCheckpoint(playerid);
  538.  
  539.  
  540. native SetPlayerVirtualWorld(playerid, worldid);
  541. native GetPlayerVirtualWorld(playerid);
  542.  
  543.  
  544. native EnableStuntBonusForPlayer(playerid, enable);
  545. native EnableStuntBonusForAll(enable);
  546.  
  547.  
  548. #line 246
  549.  
  550. native TogglePlayerSpectating(playerid, toggle);
  551. native PlayerSpectatePlayer(playerid, targetplayerid, mode = 1);
  552. native PlayerSpectateVehicle(playerid, targetvehicleid, mode = 1);
  553.  
  554.  
  555. #line 255
  556.  
  557. native StartRecordingPlayerData(playerid, recordtype, recordname[]);
  558. native StopRecordingPlayerData(playerid);
  559.  
  560. native SelectTextDraw(playerid, hovercolor);
  561. native CancelSelectTextDraw(playerid);
  562. #file C:\Users\Kamil\Desktop\Pawn\include\a_samp.inc
  563. #file C:\Users\Kamil\Desktop\Pawn\include\a_vehicles.inc
  564. #line 1
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571. #line 11
  572. #pragma library vehicles
  573.  
  574. #line 27
  575.  
  576. #line 31
  577.  
  578.  
  579. native CreateVehicle(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay);
  580. native DestroyVehicle(vehicleid);
  581. native IsVehicleStreamedIn(vehicleid, forplayerid);
  582. native GetVehiclePos(vehicleid, &Float:x, &Float:y, &Float:z);
  583. native SetVehiclePos(vehicleid, Float:x, Float:y, Float:z);
  584. native GetVehicleZAngle(vehicleid, &Float:z_angle);
  585. native GetVehicleRotationQuat(vehicleid, &Float:w, &Float:x, &Float:y, &Float:z);
  586. native Float:GetVehicleDistanceFromPoint(vehicleid, Float:X, Float:Y, Float:Z);
  587. native SetVehicleZAngle(vehicleid, Float:z_angle);
  588. native SetVehicleParamsForPlayer(vehicleid,playerid,objective,doorslocked);
  589. native ManualVehicleEngineAndLights();
  590. native SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
  591. native GetVehicleParamsEx(vehicleid, &engine, &lights, &alarm, &doors, &bonnet, &boot, &objective);
  592. native SetVehicleToRespawn(vehicleid);
  593. native LinkVehicleToInterior(vehicleid, interiorid);
  594. native AddVehicleComponent(vehicleid, componentid);
  595. native RemoveVehicleComponent(vehicleid, componentid);
  596. native ChangeVehicleColor(vehicleid, color1, color2);
  597. native ChangeVehiclePaintjob(vehicleid, paintjobid);
  598. native SetVehicleHealth(vehicleid, Float:health);
  599. native GetVehicleHealth(vehicleid, &Float:health);
  600. native AttachTrailerToVehicle(trailerid, vehicleid);
  601. native DetachTrailerFromVehicle(vehicleid);
  602. native IsTrailerAttachedToVehicle(vehicleid);
  603. native GetVehicleTrailer(vehicleid);
  604. native SetVehicleNumberPlate(vehicleid, numberplate[]);
  605. native GetVehicleModel(vehicleid);
  606. native GetVehicleComponentInSlot(vehicleid, slot);
  607. native GetVehicleComponentType(component);
  608. native RepairVehicle(vehicleid);
  609. native GetVehicleVelocity(vehicleid, &Float:X, &Float:Y, &Float:Z);
  610. native SetVehicleVelocity(vehicleid, Float:X, Float:Y, Float:Z);
  611. native SetVehicleAngularVelocity(vehicleid, Float:X, Float:Y, Float:Z);
  612. native GetVehicleDamageStatus(vehicleid, &panels, &doors, &lights, &tires);
  613. native UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
  614.  
  615. #line 78
  616.  
  617. native GetVehicleModelInfo(vehiclemodel, infotype, &Float:X, &Float:Y, &Float:Z);
  618.  
  619.  
  620. native SetVehicleVirtualWorld(vehicleid, worldid);
  621. native GetVehicleVirtualWorld(vehicleid);#file C:\Users\Kamil\Desktop\Pawn\include\a_samp.inc
  622. #file C:\Users\Kamil\Desktop\Pawn\include\a_objects.inc
  623. #line 1
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630. #line 11
  631. #pragma library objects
  632.  
  633.  
  634.  
  635. native CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 0.0);
  636. native AttachObjectToVehicle(objectid, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ);
  637. native AttachObjectToObject(objectid, attachtoid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ, SyncRotation = 1);
  638. native AttachObjectToPlayer(objectid, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ);
  639. native SetObjectPos(objectid, Float:X, Float:Y, Float:Z);
  640. native GetObjectPos(objectid, &Float:X, &Float:Y, &Float:Z);
  641. native SetObjectRot(objectid, Float:RotX, Float:RotY, Float:RotZ);
  642. native GetObjectRot(objectid, &Float:RotX, &Float:RotY, &Float:RotZ);
  643. native IsValidObject(objectid);
  644. native DestroyObject(objectid);
  645. native MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0);
  646. native StopObject(objectid);
  647. native IsObjectMoving(objectid);
  648. native EditObject(playerid, objectid);
  649. native EditPlayerObject(playerid, objectid);
  650. native SelectObject(playerid);
  651. native CancelEdit(playerid);
  652. native CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 0.0);
  653. native AttachPlayerObjectToVehicle(playerid, objectid, vehicleid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:RotZ);
  654. native SetPlayerObjectPos(playerid, objectid, Float:X, Float:Y, Float:Z);
  655. native GetPlayerObjectPos(playerid, objectid, &Float:X, &Float:Y, &Float:Z);
  656. native SetPlayerObjectRot(playerid, objectid, Float:RotX, Float:RotY, Float:RotZ);
  657. native GetPlayerObjectRot(playerid, objectid, &Float:RotX, &Float:RotY, &Float:RotZ);
  658. native IsValidPlayerObject(playerid, objectid);
  659. native DestroyPlayerObject(playerid, objectid);
  660. native MovePlayerObject(playerid, objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0);
  661. native StopPlayerObject(playerid, objectid);
  662. native IsPlayerObjectMoving(playerid, objectid);
  663. native AttachPlayerObjectToPlayer(objectplayer, objectid, attachplayer, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ);
  664.  
  665. #line 59
  666.  
  667. #line 63
  668.  
  669. native SetObjectMaterial(objectid, materialindex, modelid, txdname[], texturename[], materialcolor=0);
  670. native SetPlayerObjectMaterial(playerid, objectid, materialindex, modelid, txdname[], texturename[], materialcolor=0);
  671.  
  672. native SetObjectMaterialText(objectid, text[], materialindex = 0, materialsize = 90, fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0);
  673. native SetPlayerObjectMaterialText(playerid, objectid, text[], materialindex = 0, materialsize = 90, fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0);#file C:\Users\Kamil\Desktop\Pawn\include\a_samp.inc
  674. #file C:\Users\Kamil\Desktop\Pawn\include\a_sampdb.inc
  675. #line 1
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682. #line 11
  683. #pragma library sampdb
  684.  
  685. native DB:db_open(name[]);
  686. native db_close(DB:db);
  687. native DBResult:db_query(DB:db,query[]);
  688. native db_free_result(DBResult:dbresult);
  689. native db_num_rows(DBResult:dbresult);
  690. native db_next_row(DBResult:dbresult);
  691. native db_num_fields(DBResult:dbresult);
  692. native db_field_name(DBResult:dbresult, field, result[], maxlength);
  693. native db_get_field(DBResult:dbresult, field, result[], maxlength);
  694. native db_get_field_assoc(DBResult:dbresult, const field[], result[], maxlength);#file C:\Users\Kamil\Desktop\Pawn\include\a_samp.inc
  695. #line 27
  696.  
  697.  
  698. #line 48
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705. native print(const string[]);
  706. native printf(const format[], {Float,_}:...);
  707. native format(output[], len, const format[], {Float,_}:...);
  708. native SendClientMessage(playerid, color, const message[]);
  709. native SendClientMessageToAll(color, const message[]);
  710. native SendPlayerMessageToPlayer(playerid, senderid, const message[]);
  711. native SendPlayerMessageToAll(senderid, const message[]);
  712. native SendDeathMessage(killer,killee,weapon);
  713. native GameTextForAll(const string[],time,style);
  714. native GameTextForPlayer(playerid,const string[],time,style);
  715. native SetTimer(funcname[], interval, repeating);
  716. native SetTimerEx(funcname[], interval, repeating, const format[], {Float,_}:...);
  717. native KillTimer(timerid);
  718. native GetTickCount();
  719. native GetMaxPlayers();
  720. native CallRemoteFunction(const function[], const format[], {Float,_}:...);
  721. native CallLocalFunction(const function[], const format[], {Float,_}:...);
  722. native Float:asin(Float:value);
  723. native Float:acos(Float:value);
  724. native Float:atan(Float:value);
  725. native Float:atan2(Float:x, Float:y);
  726.  
  727.  
  728. native SetGameModeText(const string[]);
  729. native SetTeamCount(count);
  730. native AddPlayerClass(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
  731. native AddPlayerClassEx(teamid, modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
  732. native AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2);
  733. native AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay);
  734. native AddStaticPickup(model, type, Float:X, Float:Y, Float:Z, virtualworld = 0);
  735. native CreatePickup(model, type, Float:X, Float:Y, Float:Z, virtualworld = 0);
  736. native DestroyPickup(pickup);
  737. native ShowNameTags(show);
  738. native ShowPlayerMarkers(mode);
  739. native GameModeExit();
  740. native SetWorldTime(hour);
  741. native GetWeaponName(weaponid, const weapon[], len);
  742. native EnableTirePopping(enable);
  743. native EnableVehicleFriendlyFire();
  744. native AllowInteriorWeapons(allow);
  745. native SetWeather(weatherid);
  746. native SetGravity(Float:gravity);
  747. native AllowAdminTeleport(allow);
  748. native SetDeathDropAmount(amount);
  749. native CreateExplosion(Float:X, Float:Y, Float:Z, type, Float:Radius);
  750. native EnableZoneNames(enable);
  751. native UsePlayerPedAnims();
  752. native DisableInteriorEnterExits();
  753. native SetNameTagDrawDistance(Float:distance);
  754. native DisableNameTagLOS();
  755. native LimitGlobalChatRadius(Float:chat_radius);
  756. native LimitPlayerMarkerRadius(Float:marker_radius);
  757.  
  758.  
  759. native ConnectNPC(name[], script[]);
  760. native IsPlayerNPC(playerid);
  761.  
  762.  
  763. native IsPlayerAdmin(playerid);
  764. native Kick(playerid);
  765. native Ban(playerid);
  766. native BanEx(playerid, const reason[]);
  767. native SendRconCommand(command[]);
  768. native GetServerVarAsString(const varname[], buffer[], len);
  769. native GetServerVarAsInt(const varname[]);
  770. native GetServerVarAsBool(const varname[]);
  771. native GetPlayerNetworkStats(playerid, retstr[], retstr_size);
  772. native GetNetworkStats(retstr[], retstr_size);
  773. native GetPlayerVersion(playerid, const version[], len);
  774.  
  775.  
  776. native Menu:CreateMenu(const title[], columns, Float:x, Float:y, Float:col1width, Float:col2width = 0.0);
  777. native DestroyMenu(Menu:menuid);
  778. native AddMenuItem(Menu:menuid, column, const menutext[]);
  779. native SetMenuColumnHeader(Menu:menuid, column, const columnheader[]);
  780. native ShowMenuForPlayer(Menu:menuid, playerid);
  781. native HideMenuForPlayer(Menu:menuid, playerid);
  782. native IsValidMenu(Menu:menuid);
  783. native DisableMenu(Menu:menuid);
  784. native DisableMenuRow(Menu:menuid, row);
  785. native Menu:GetPlayerMenu(playerid);
  786.  
  787.  
  788. #line 139
  789.  
  790. native Text:TextDrawCreate(Float:x, Float:y, text[]);
  791. native TextDrawDestroy(Text:text);
  792. native TextDrawLetterSize(Text:text, Float:x, Float:y);
  793. native TextDrawTextSize(Text:text, Float:x, Float:y);
  794. native TextDrawAlignment(Text:text, alignment);
  795. native TextDrawColor(Text:text, color);
  796. native TextDrawUseBox(Text:text, use);
  797. native TextDrawBoxColor(Text:text, color);
  798. native TextDrawSetShadow(Text:text, size);
  799. native TextDrawSetOutline(Text:text, size);
  800. native TextDrawBackgroundColor(Text:text, color);
  801. native TextDrawFont(Text:text, font);
  802. native TextDrawSetProportional(Text:text, set);
  803. native TextDrawSetSelectable(Text:text, set);
  804. native TextDrawShowForPlayer(playerid, Text:text);
  805. native TextDrawHideForPlayer(playerid, Text:text);
  806. native TextDrawShowForAll(Text:text);
  807. native TextDrawHideForAll(Text:text);
  808. native TextDrawSetString(Text:text, string[]);
  809. native TextDrawSetPreviewModel(Text:text, modelindex);
  810. native TextDrawSetPreviewRot(Text:text, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fZoom = 1.0);
  811. native TextDrawSetPreviewVehCol(Text:text, color1, color2);
  812.  
  813.  
  814. native GangZoneCreate(Float:minx, Float:miny, Float:maxx, Float:maxy);
  815. native GangZoneDestroy(zone);
  816. native GangZoneShowForPlayer(playerid, zone, color);
  817. native GangZoneShowForAll(zone, color);
  818. native GangZoneHideForPlayer(playerid, zone);
  819. native GangZoneHideForAll(zone);
  820. native GangZoneFlashForPlayer(playerid, zone, flashcolor);
  821. native GangZoneFlashForAll(zone, flashcolor);
  822. native GangZoneStopFlashForPlayer(playerid, zone);
  823. native GangZoneStopFlashForAll(zone);
  824.  
  825.  
  826. native Text3D:Create3DTextLabel(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS=0);
  827. native Delete3DTextLabel(Text3D:id);
  828. native Attach3DTextLabelToPlayer(Text3D:id, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ);
  829. native Attach3DTextLabelToVehicle(Text3D:id, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ);
  830. native Update3DTextLabelText(Text3D:id, color, text[]);
  831.  
  832.  
  833. native PlayerText3D:CreatePlayer3DTextLabel(playerid, text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, attachedplayer=(0xFFFF), attachedvehicle=(0xFFFF), testLOS=0);
  834. native DeletePlayer3DTextLabel(playerid, PlayerText3D:id);
  835. native UpdatePlayer3DTextLabelText(playerid, PlayerText3D:id, color, text[]);
  836.  
  837.  
  838. #line 192
  839.  
  840. native ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847. #line 210
  848.  
  849.  
  850. #line 215
  851.  
  852.  
  853. #line 261
  854.  
  855.  
  856. #line 282
  857.  
  858. #line 287
  859.  
  860.  
  861.  
  862.  
  863.  
  864. forward OnGameModeInit();
  865. forward OnGameModeExit();
  866. forward OnFilterScriptInit();
  867. forward OnFilterScriptExit();
  868. forward OnPlayerConnect(playerid);
  869. forward OnPlayerDisconnect(playerid, reason);
  870. forward OnPlayerSpawn(playerid);
  871. forward OnPlayerDeath(playerid, killerid, reason);
  872. forward OnVehicleSpawn(vehicleid);
  873. forward OnVehicleDeath(vehicleid, killerid);
  874. forward OnPlayerText(playerid, text[]);
  875. forward OnPlayerCommandText(playerid, cmdtext[]);
  876. forward OnPlayerRequestClass(playerid, classid);
  877. forward OnPlayerEnterVehicle(playerid, vehicleid, ispassenger);
  878. forward OnPlayerExitVehicle(playerid, vehicleid);
  879. forward OnPlayerStateChange(playerid, newstate, oldstate);
  880. forward OnPlayerEnterCheckpoint(playerid);
  881. forward OnPlayerLeaveCheckpoint(playerid);
  882. forward OnPlayerEnterRaceCheckpoint(playerid);
  883. forward OnPlayerLeaveRaceCheckpoint(playerid);
  884. forward OnRconCommand(cmd[]);
  885. forward OnPlayerRequestSpawn(playerid);
  886. forward OnObjectMoved(objectid);
  887. forward OnPlayerObjectMoved(playerid, objectid);
  888. forward OnPlayerPickUpPickup(playerid, pickupid);
  889. forward OnVehicleMod(playerid, vehicleid, componentid);
  890. forward OnEnterExitModShop(playerid, enterexit, interiorid);
  891. forward OnVehiclePaintjob(playerid, vehicleid, paintjobid);
  892. forward OnVehicleRespray(playerid, vehicleid, color1, color2);
  893. forward OnVehicleDamageStatusUpdate(vehicleid, playerid);
  894. forward OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat);
  895. forward OnPlayerSelectedMenuRow(playerid, row);
  896. forward OnPlayerExitedMenu(playerid);
  897. forward OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid);
  898. forward OnPlayerKeyStateChange(playerid, newkeys, oldkeys);
  899. forward OnRconLoginAttempt( ip[], password[], success );
  900. forward OnPlayerUpdate(playerid);
  901. forward OnPlayerStreamIn(playerid, forplayerid);
  902. forward OnPlayerStreamOut(playerid, forplayerid);
  903. forward OnVehicleStreamIn(vehicleid, forplayerid);
  904. forward OnVehicleStreamOut(vehicleid, forplayerid);
  905. forward OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]);
  906. forward OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid);
  907. forward OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid);
  908. forward OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ);
  909. forward OnPlayerClickTextDraw(playerid, Text:clickedid);
  910. forward OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid);
  911.  
  912. #line 341
  913. forward OnPlayerClickPlayer(playerid, clickedplayerid, source);
  914.  
  915. #line 346
  916.  
  917. forward OnPlayerEditObject( playerid, playerobject, objectid, response,
  918. Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ );
  919.  
  920. forward OnPlayerEditAttachedObject( playerid, response, index, modelid, boneid,
  921. Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ,
  922. Float:fRotX, Float:fRotY, Float:fRotZ,
  923. Float:fScaleX, Float:fScaleY, Float:fScaleZ );
  924.  
  925. #line 357
  926.  
  927. forward OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ);
  928.  
  929.  
  930. #file rgb.pwn
  931. #line 2
  932.  
  933. public OnFilterScriptInit()
  934. {
  935.  
  936. new color=0xFC05D2FF,
  937. r,
  938. g,
  939. b,
  940. a;
  941.  
  942. ConvertToRGBA(color, r, g, b, a);
  943. printf("color: %d (%x), r: %d, g: %d, b: %d, a: %d", color, color, r, g, b, a);
  944. return 1;
  945. }
  946.  
  947. stock ConvertToRGBA(color, &r, &g, &b, &a) {
  948. r=color;
  949. g=color>>8;
  950. b=color>>16;
  951. a=color&0xff;
  952. }
Advertisement
Add Comment
Please, Sign In to add comment