Advertisement
Guest User

prueba.lst

a guest
Jun 14th, 2019
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 33.10 KB | None | 0 0
  1. #pragma ctrlchar 0x5c
  2. #pragma pack false
  3. #pragma semicolon false
  4. #pragma tabsize 8
  5. #file prueba.pwn
  6. #file C:\Users\MrDave\Desktop\pawno\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\MrDave\Desktop\pawno\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\MrDave\Desktop\pawno\include\a_samp.inc
  56. #file C:\Users\MrDave\Desktop\pawno\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\MrDave\Desktop\pawno\include\a_samp.inc
  241. #file C:\Users\MrDave\Desktop\pawno\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\MrDave\Desktop\pawno\include\a_samp.inc
  272. #file C:\Users\MrDave\Desktop\pawno\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\MrDave\Desktop\pawno\include\a_samp.inc
  317. #file C:\Users\MrDave\Desktop\pawno\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\MrDave\Desktop\pawno\include\a_samp.inc
  332. #file C:\Users\MrDave\Desktop\pawno\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\MrDave\Desktop\pawno\include\a_samp.inc
  351. #file C:\Users\MrDave\Desktop\pawno\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. native GetPlayerLastShotVectors(playerid, &Float:fOriginX, &Float:fOriginY, &Float:fOriginZ, &Float:fHitPosX, &Float:fHitPosY, &Float:fHitPosZ);
  437.  
  438.  
  439.  
  440. #line 129
  441.  
  442. 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);
  443. native RemovePlayerAttachedObject(playerid, index);
  444. native IsPlayerAttachedObjectSlotUsed(playerid, index);
  445. native EditAttachedObject(playerid, index);
  446.  
  447.  
  448. native PlayerText:CreatePlayerTextDraw(playerid, Float:x, Float:y, text[]);
  449. native PlayerTextDrawDestroy(playerid, PlayerText:text);
  450. native PlayerTextDrawLetterSize(playerid, PlayerText:text, Float:x, Float:y);
  451. native PlayerTextDrawTextSize(playerid, PlayerText:text, Float:x, Float:y);
  452. native PlayerTextDrawAlignment(playerid, PlayerText:text, alignment);
  453. native PlayerTextDrawColor(playerid, PlayerText:text, color);
  454. native PlayerTextDrawUseBox(playerid, PlayerText:text, use);
  455. native PlayerTextDrawBoxColor(playerid, PlayerText:text, color);
  456. native PlayerTextDrawSetShadow(playerid, PlayerText:text, size);
  457. native PlayerTextDrawSetOutline(playerid, PlayerText:text, size);
  458. native PlayerTextDrawBackgroundColor(playerid, PlayerText:text, color);
  459. native PlayerTextDrawFont(playerid, PlayerText:text, font);
  460. native PlayerTextDrawSetProportional(playerid, PlayerText:text, set);
  461. native PlayerTextDrawSetSelectable(playerid, PlayerText:text, set);
  462. native PlayerTextDrawShow(playerid, PlayerText:text);
  463. native PlayerTextDrawHide(playerid, PlayerText:text);
  464. native PlayerTextDrawSetString(playerid, PlayerText:text, string[]);
  465. native PlayerTextDrawSetPreviewModel(playerid, PlayerText:text, modelindex);
  466. native PlayerTextDrawSetPreviewRot(playerid, PlayerText:text, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fZoom = 1.0);
  467. native PlayerTextDrawSetPreviewVehCol(playerid, PlayerText:text, color1, color2);
  468.  
  469.  
  470. native SetPVarInt(playerid, varname[], int_value);
  471. native GetPVarInt(playerid, varname[]);
  472. native SetPVarString(playerid, varname[], string_value[]);
  473. native GetPVarString(playerid, varname[], string_return[], len);
  474. native SetPVarFloat(playerid, varname[], Float:float_value);
  475. native Float:GetPVarFloat(playerid, varname[]);
  476. native DeletePVar(playerid, varname[]);
  477.  
  478.  
  479. #line 171
  480.  
  481. native GetPVarsUpperIndex(playerid);
  482. native GetPVarNameAtIndex(playerid, index, ret_varname[], ret_len);
  483. native GetPVarType(playerid, varname[]);
  484.  
  485. #line 177
  486. native SetPlayerChatBubble(playerid, text[], color, Float:drawdistance, expiretime);
  487.  
  488.  
  489. native PutPlayerInVehicle(playerid, vehicleid, seatid);
  490. native GetPlayerVehicleID(playerid);
  491. native GetPlayerVehicleSeat(playerid);
  492. native RemovePlayerFromVehicle(playerid);
  493. native TogglePlayerControllable(playerid, toggle);
  494. native PlayerPlaySound(playerid, soundid, Float:x, Float:y, Float:z);
  495. native ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync = 0);
  496. native ClearAnimations(playerid, forcesync = 0);
  497. native GetPlayerAnimationIndex(playerid);
  498. native GetAnimationName(index, animlib[], len1, animname[], len2);
  499. native GetPlayerSpecialAction(playerid);
  500. native SetPlayerSpecialAction(playerid,actionid);
  501.  
  502.  
  503. native SetPlayerCheckpoint(playerid, Float:x, Float:y, Float:z, Float:size);
  504. native DisablePlayerCheckpoint(playerid);
  505. native SetPlayerRaceCheckpoint(playerid, type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size);
  506. native DisablePlayerRaceCheckpoint(playerid);
  507. native SetPlayerWorldBounds(playerid,Float:x_max,Float:x_min,Float:y_max,Float:y_min);
  508. native SetPlayerMarkerForPlayer(playerid, showplayerid, color);
  509. native ShowPlayerNameTagForPlayer(playerid, showplayerid, show);
  510.  
  511. #line 206
  512.  
  513. native SetPlayerMapIcon(playerid, iconid, Float:x, Float:y, Float:z, markertype, color, style = 0);
  514. native RemovePlayerMapIcon(playerid, iconid);
  515.  
  516. native AllowPlayerTeleport(playerid, allow);
  517.  
  518.  
  519. native SetPlayerCameraPos(playerid,Float:x, Float:y, Float:z);
  520.  
  521. #line 217
  522.  
  523. native SetPlayerCameraLookAt(playerid, Float:x, Float:y, Float:z, cut = 2);
  524. native SetCameraBehindPlayer(playerid);
  525. native GetPlayerCameraPos(playerid, &Float:x, &Float:y, &Float:z);
  526. native GetPlayerCameraFrontVector(playerid, &Float:x, &Float:y, &Float:z);
  527. native GetPlayerCameraMode(playerid);
  528. native Float:GetPlayerCameraAspectRatio(playerid);
  529. native Float:GetPlayerCameraZoom(playerid);
  530. native AttachCameraToObject(playerid, objectid);
  531. native AttachCameraToPlayerObject(playerid, playerobjectid);
  532. native InterpolateCameraPos(playerid, Float:FromX, Float:FromY, Float:FromZ, Float:ToX, Float:ToY, Float:ToZ, time, cut = 2);
  533. native InterpolateCameraLookAt(playerid, Float:FromX, Float:FromY, Float:FromZ, Float:ToX, Float:ToY, Float:ToZ, time, cut = 2);
  534.  
  535.  
  536. native IsPlayerConnected(playerid);
  537. native IsPlayerInVehicle(playerid, vehicleid);
  538. native IsPlayerInAnyVehicle(playerid);
  539. native IsPlayerInCheckpoint(playerid);
  540. native IsPlayerInRaceCheckpoint(playerid);
  541.  
  542.  
  543. native SetPlayerVirtualWorld(playerid, worldid);
  544. native GetPlayerVirtualWorld(playerid);
  545.  
  546.  
  547. native EnableStuntBonusForPlayer(playerid, enable);
  548. native EnableStuntBonusForAll(enable);
  549.  
  550.  
  551. #line 249
  552.  
  553. native TogglePlayerSpectating(playerid, toggle);
  554. native PlayerSpectatePlayer(playerid, targetplayerid, mode = 1);
  555. native PlayerSpectateVehicle(playerid, targetvehicleid, mode = 1);
  556.  
  557.  
  558. #line 258
  559.  
  560. native StartRecordingPlayerData(playerid, recordtype, recordname[]);
  561. native StopRecordingPlayerData(playerid);
  562.  
  563. native SelectTextDraw(playerid, hovercolor);
  564. native CancelSelectTextDraw(playerid)
  565. #file C:\Users\MrDave\Desktop\pawno\include\a_samp.inc
  566. #file C:\Users\MrDave\Desktop\pawno\include\a_vehicles.inc
  567. #line 1
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574. #line 11
  575. #pragma library vehicles
  576.  
  577. #line 27
  578.  
  579. #line 31
  580.  
  581.  
  582. native CreateVehicle(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay);
  583. native DestroyVehicle(vehicleid);
  584. native IsVehicleStreamedIn(vehicleid, forplayerid);
  585. native GetVehiclePos(vehicleid, &Float:x, &Float:y, &Float:z);
  586. native SetVehiclePos(vehicleid, Float:x, Float:y, Float:z);
  587. native GetVehicleZAngle(vehicleid, &Float:z_angle);
  588. native GetVehicleRotationQuat(vehicleid, &Float:w, &Float:x, &Float:y, &Float:z);
  589. native Float:GetVehicleDistanceFromPoint(vehicleid, Float:X, Float:Y, Float:Z);
  590. native SetVehicleZAngle(vehicleid, Float:z_angle);
  591. native SetVehicleParamsForPlayer(vehicleid,playerid,objective,doorslocked);
  592. native ManualVehicleEngineAndLights();
  593. native SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
  594. native GetVehicleParamsEx(vehicleid, &engine, &lights, &alarm, &doors, &bonnet, &boot, &objective);
  595. native SetVehicleToRespawn(vehicleid);
  596. native LinkVehicleToInterior(vehicleid, interiorid);
  597. native AddVehicleComponent(vehicleid, componentid);
  598. native RemoveVehicleComponent(vehicleid, componentid);
  599. native ChangeVehicleColor(vehicleid, color1, color2);
  600. native ChangeVehiclePaintjob(vehicleid, paintjobid);
  601. native SetVehicleHealth(vehicleid, Float:health);
  602. native GetVehicleHealth(vehicleid, &Float:health);
  603. native AttachTrailerToVehicle(trailerid, vehicleid);
  604. native DetachTrailerFromVehicle(vehicleid);
  605. native IsTrailerAttachedToVehicle(vehicleid);
  606. native GetVehicleTrailer(vehicleid);
  607. native SetVehicleNumberPlate(vehicleid, numberplate[]);
  608. native GetVehicleModel(vehicleid);
  609. native GetVehicleComponentInSlot(vehicleid, slot);
  610. native GetVehicleComponentType(component);
  611. native RepairVehicle(vehicleid);
  612. native GetVehicleVelocity(vehicleid, &Float:X, &Float:Y, &Float:Z);
  613. native SetVehicleVelocity(vehicleid, Float:X, Float:Y, Float:Z);
  614. native SetVehicleAngularVelocity(vehicleid, Float:X, Float:Y, Float:Z);
  615. native GetVehicleDamageStatus(vehicleid, &panels, &doors, &lights, &tires);
  616. native UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
  617.  
  618. #line 78
  619.  
  620. native GetVehicleModelInfo(vehiclemodel, infotype, &Float:X, &Float:Y, &Float:Z);
  621.  
  622.  
  623. native SetVehicleVirtualWorld(vehicleid, worldid);
  624. native GetVehicleVirtualWorld(vehicleid);#file C:\Users\MrDave\Desktop\pawno\include\a_samp.inc
  625. #file C:\Users\MrDave\Desktop\pawno\include\a_objects.inc
  626. #line 1
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633. #line 11
  634. #pragma library objects
  635.  
  636.  
  637.  
  638. native CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 0.0);
  639. native AttachObjectToVehicle(objectid, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ);
  640. native AttachObjectToObject(objectid, attachtoid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ, SyncRotation = 1);
  641. native AttachObjectToPlayer(objectid, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ);
  642. native SetObjectPos(objectid, Float:X, Float:Y, Float:Z);
  643. native GetObjectPos(objectid, &Float:X, &Float:Y, &Float:Z);
  644. native SetObjectRot(objectid, Float:RotX, Float:RotY, Float:RotZ);
  645. native GetObjectRot(objectid, &Float:RotX, &Float:RotY, &Float:RotZ);
  646. native IsValidObject(objectid);
  647. native DestroyObject(objectid);
  648. native MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0);
  649. native StopObject(objectid);
  650. native IsObjectMoving(objectid);
  651. native EditObject(playerid, objectid);
  652. native EditPlayerObject(playerid, objectid);
  653. native SelectObject(playerid);
  654. native CancelEdit(playerid);
  655. native CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 0.0);
  656. native AttachPlayerObjectToVehicle(playerid, objectid, vehicleid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:RotZ);
  657. native SetPlayerObjectPos(playerid, objectid, Float:X, Float:Y, Float:Z);
  658. native GetPlayerObjectPos(playerid, objectid, &Float:X, &Float:Y, &Float:Z);
  659. native SetPlayerObjectRot(playerid, objectid, Float:RotX, Float:RotY, Float:RotZ);
  660. native GetPlayerObjectRot(playerid, objectid, &Float:RotX, &Float:RotY, &Float:RotZ);
  661. native IsValidPlayerObject(playerid, objectid);
  662. native DestroyPlayerObject(playerid, objectid);
  663. native MovePlayerObject(playerid, objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0);
  664. native StopPlayerObject(playerid, objectid);
  665. native IsPlayerObjectMoving(playerid, objectid);
  666. native AttachPlayerObjectToPlayer(objectplayer, objectid, attachplayer, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ);
  667.  
  668. #line 59
  669.  
  670. #line 63
  671.  
  672. native SetObjectMaterial(objectid, materialindex, modelid, txdname[], texturename[], materialcolor=0);
  673. native SetPlayerObjectMaterial(playerid, objectid, materialindex, modelid, txdname[], texturename[], materialcolor=0);
  674.  
  675. native SetObjectMaterialText(objectid, text[], materialindex = 0, materialsize = 90, fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0);
  676. native SetPlayerObjectMaterialText(playerid, objectid, text[], materialindex = 0, materialsize = 90, fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0);#file C:\Users\MrDave\Desktop\pawno\include\a_samp.inc
  677. #file C:\Users\MrDave\Desktop\pawno\include\a_sampdb.inc
  678. #line 1
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685. #line 11
  686. #pragma library sampdb
  687.  
  688. native DB:db_open(name[]);
  689. native db_close(DB:db);
  690. native DBResult:db_query(DB:db,query[]);
  691. native db_free_result(DBResult:dbresult);
  692. native db_num_rows(DBResult:dbresult);
  693. native db_next_row(DBResult:dbresult);
  694. native db_num_fields(DBResult:dbresult);
  695. native db_field_name(DBResult:dbresult, field, result[], maxlength);
  696. native db_get_field(DBResult:dbresult, field, result[], maxlength);
  697. native db_get_field_assoc(DBResult:dbresult, const field[], result[], maxlength);#file C:\Users\MrDave\Desktop\pawno\include\a_samp.inc
  698. #line 27
  699.  
  700.  
  701. #line 48
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708. native print(const string[]);
  709. native printf(const format[], {Float,_}:...);
  710. native format(output[], len, const format[], {Float,_}:...);
  711. native SendClientMessage(playerid, color, const message[]);
  712. native SendClientMessageToAll(color, const message[]);
  713. native SendPlayerMessageToPlayer(playerid, senderid, const message[]);
  714. native SendPlayerMessageToAll(senderid, const message[]);
  715. native SendDeathMessage(killer,killee,weapon);
  716. native GameTextForAll(const string[],time,style);
  717. native GameTextForPlayer(playerid,const string[],time,style);
  718. native SetTimer(funcname[], interval, repeating);
  719. native SetTimerEx(funcname[], interval, repeating, const format[], {Float,_}:...);
  720. native KillTimer(timerid);
  721. native GetTickCount();
  722. native GetMaxPlayers();
  723. native CallRemoteFunction(const function[], const format[], {Float,_}:...);
  724. native CallLocalFunction(const function[], const format[], {Float,_}:...);
  725. native Float:VectorSize(Float:x, Float:y, Float:z);
  726. native Float:asin(Float:value);
  727. native Float:acos(Float:value);
  728. native Float:atan(Float:value);
  729. native Float:atan2(Float:x, Float:y);
  730.  
  731.  
  732. native SetGameModeText(const string[]);
  733. native SetTeamCount(count);
  734. native AddPlayerClass(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
  735. 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);
  736. native AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2);
  737. native AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay);
  738. native AddStaticPickup(model, type, Float:X, Float:Y, Float:Z, virtualworld = 0);
  739. native CreatePickup(model, type, Float:X, Float:Y, Float:Z, virtualworld = 0);
  740. native DestroyPickup(pickup);
  741. native ShowNameTags(show);
  742. native ShowPlayerMarkers(mode);
  743. native GameModeExit();
  744. native SetWorldTime(hour);
  745. native GetWeaponName(weaponid, const weapon[], len);
  746. native EnableTirePopping(enable);
  747. native EnableVehicleFriendlyFire();
  748. native AllowInteriorWeapons(allow);
  749. native SetWeather(weatherid);
  750. native SetGravity(Float:gravity);
  751. native AllowAdminTeleport(allow);
  752. native SetDeathDropAmount(amount);
  753. native CreateExplosion(Float:X, Float:Y, Float:Z, type, Float:Radius);
  754. native EnableZoneNames(enable);
  755. native UsePlayerPedAnims();    
  756. native DisableInteriorEnterExits();  
  757. native SetNameTagDrawDistance(Float:distance);
  758. native DisableNameTagLOS();
  759. native LimitGlobalChatRadius(Float:chat_radius);
  760. native LimitPlayerMarkerRadius(Float:marker_radius);
  761.  
  762.  
  763. native ConnectNPC(name[], script[]);
  764. native IsPlayerNPC(playerid);
  765.  
  766.  
  767. native IsPlayerAdmin(playerid);
  768. native Kick(playerid);
  769. native Ban(playerid);
  770. native BanEx(playerid, const reason[]);
  771. native SendRconCommand(command[]);
  772. native GetServerVarAsString(const varname[], buffer[], len);
  773. native GetServerVarAsInt(const varname[]);
  774. native GetServerVarAsBool(const varname[]);
  775. native GetPlayerNetworkStats(playerid, retstr[], retstr_size);
  776. native GetNetworkStats(retstr[], retstr_size);
  777. native GetPlayerVersion(playerid, const version[], len);
  778.  
  779.  
  780. native GetServerTickRate();
  781. native NetStats_GetConnectedTime(playerid);
  782. native NetStats_MessagesReceived(playerid);
  783. native NetStats_BytesReceived(playerid);
  784. native NetStats_MessagesSent(playerid);
  785. native NetStats_BytesSent(playerid);
  786. native NetStats_MessagesRecvPerSecond(playerid);
  787. native Float:NetStats_PacketLossPercent(playerid);
  788. native NetStats_ConnectionStatus(playerid);
  789. native NetStats_GetIpPort(playerid, ip_port[], ip_port_len);
  790.  
  791.  
  792. native Menu:CreateMenu(const title[], columns, Float:x, Float:y, Float:col1width, Float:col2width = 0.0);
  793. native DestroyMenu(Menu:menuid);
  794. native AddMenuItem(Menu:menuid, column, const menutext[]);
  795. native SetMenuColumnHeader(Menu:menuid, column, const columnheader[]);
  796. native ShowMenuForPlayer(Menu:menuid, playerid);
  797. native HideMenuForPlayer(Menu:menuid, playerid);
  798. native IsValidMenu(Menu:menuid);
  799. native DisableMenu(Menu:menuid);
  800. native DisableMenuRow(Menu:menuid, row);
  801. native Menu:GetPlayerMenu(playerid);
  802.  
  803.  
  804. #line 152
  805.  
  806. native Text:TextDrawCreate(Float:x, Float:y, text[]);
  807. native TextDrawDestroy(Text:text);
  808. native TextDrawLetterSize(Text:text, Float:x, Float:y);
  809. native TextDrawTextSize(Text:text, Float:x, Float:y);
  810. native TextDrawAlignment(Text:text, alignment);
  811. native TextDrawColor(Text:text, color);
  812. native TextDrawUseBox(Text:text, use);
  813. native TextDrawBoxColor(Text:text, color);
  814. native TextDrawSetShadow(Text:text, size);
  815. native TextDrawSetOutline(Text:text, size);
  816. native TextDrawBackgroundColor(Text:text, color);
  817. native TextDrawFont(Text:text, font);
  818. native TextDrawSetProportional(Text:text, set);
  819. native TextDrawSetSelectable(Text:text, set);
  820. native TextDrawShowForPlayer(playerid, Text:text);
  821. native TextDrawHideForPlayer(playerid, Text:text);
  822. native TextDrawShowForAll(Text:text);
  823. native TextDrawHideForAll(Text:text);
  824. native TextDrawSetString(Text:text, string[]);
  825. native TextDrawSetPreviewModel(Text:text, modelindex);
  826. native TextDrawSetPreviewRot(Text:text, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fZoom = 1.0);
  827. native TextDrawSetPreviewVehCol(Text:text, color1, color2);
  828.  
  829.  
  830. native GangZoneCreate(Float:minx, Float:miny, Float:maxx, Float:maxy);
  831. native GangZoneDestroy(zone);
  832. native GangZoneShowForPlayer(playerid, zone, color);
  833. native GangZoneShowForAll(zone, color);
  834. native GangZoneHideForPlayer(playerid, zone);
  835. native GangZoneHideForAll(zone);
  836. native GangZoneFlashForPlayer(playerid, zone, flashcolor);
  837. native GangZoneFlashForAll(zone, flashcolor);
  838. native GangZoneStopFlashForPlayer(playerid, zone);
  839. native GangZoneStopFlashForAll(zone);
  840.  
  841.  
  842. native Text3D:Create3DTextLabel(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS=0);
  843. native Delete3DTextLabel(Text3D:id);
  844. native Attach3DTextLabelToPlayer(Text3D:id, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ);
  845. native Attach3DTextLabelToVehicle(Text3D:id, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ);
  846. native Update3DTextLabelText(Text3D:id, color, text[]);
  847.  
  848.  
  849. native PlayerText3D:CreatePlayer3DTextLabel(playerid, text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, attachedplayer=(0xFFFF), attachedvehicle=(0xFFFF), testLOS=0);
  850. native DeletePlayer3DTextLabel(playerid, PlayerText3D:id);
  851. native UpdatePlayer3DTextLabelText(playerid, PlayerText3D:id, color, text[]);
  852.  
  853.  
  854. #line 205
  855.  
  856. native ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863. #line 223
  864.  
  865.  
  866. #line 228
  867.  
  868.  
  869. #line 274
  870.  
  871.  
  872. #line 295
  873.  
  874. #line 300
  875.  
  876.  
  877.  
  878.  
  879.  
  880. forward OnGameModeInit();
  881. forward OnGameModeExit();
  882. forward OnFilterScriptInit();
  883. forward OnFilterScriptExit();
  884. forward OnPlayerConnect(playerid);
  885. forward OnPlayerDisconnect(playerid, reason);
  886. forward OnPlayerSpawn(playerid);
  887. forward OnPlayerDeath(playerid, killerid, reason);
  888. forward OnVehicleSpawn(vehicleid);
  889. forward OnVehicleDeath(vehicleid, killerid);
  890. forward OnPlayerText(playerid, text[]);
  891. forward OnPlayerCommandText(playerid, cmdtext[]);
  892. forward OnPlayerRequestClass(playerid, classid);
  893. forward OnPlayerEnterVehicle(playerid, vehicleid, ispassenger);
  894. forward OnPlayerExitVehicle(playerid, vehicleid);
  895. forward OnPlayerStateChange(playerid, newstate, oldstate);
  896. forward OnPlayerEnterCheckpoint(playerid);
  897. forward OnPlayerLeaveCheckpoint(playerid);
  898. forward OnPlayerEnterRaceCheckpoint(playerid);
  899. forward OnPlayerLeaveRaceCheckpoint(playerid);
  900. forward OnRconCommand(cmd[]);
  901. forward OnPlayerRequestSpawn(playerid);
  902. forward OnObjectMoved(objectid);
  903. forward OnPlayerObjectMoved(playerid, objectid);
  904. forward OnPlayerPickUpPickup(playerid, pickupid);
  905. forward OnVehicleMod(playerid, vehicleid, componentid);
  906. forward OnEnterExitModShop(playerid, enterexit, interiorid);
  907. forward OnVehiclePaintjob(playerid, vehicleid, paintjobid);
  908. forward OnVehicleRespray(playerid, vehicleid, color1, color2);
  909. forward OnVehicleDamageStatusUpdate(vehicleid, playerid);
  910. forward OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z);
  911. forward OnPlayerSelectedMenuRow(playerid, row);
  912. forward OnPlayerExitedMenu(playerid);
  913. forward OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid);
  914. forward OnPlayerKeyStateChange(playerid, newkeys, oldkeys);
  915. forward OnRconLoginAttempt( ip[], password[], success );
  916. forward OnPlayerUpdate(playerid);
  917. forward OnPlayerStreamIn(playerid, forplayerid);
  918. forward OnPlayerStreamOut(playerid, forplayerid);
  919. forward OnVehicleStreamIn(vehicleid, forplayerid);
  920. forward OnVehicleStreamOut(vehicleid, forplayerid);
  921. forward OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]);
  922. forward OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
  923. forward OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart);
  924. forward OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ);
  925. forward OnPlayerClickTextDraw(playerid, Text:clickedid);
  926. forward OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid);
  927.  
  928. #line 354
  929. forward OnPlayerClickPlayer(playerid, clickedplayerid, source);
  930.  
  931. #line 359
  932.  
  933. forward OnPlayerEditObject( playerid, playerobject, objectid, response,
  934. Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ );
  935.  
  936. forward OnPlayerEditAttachedObject( playerid, response, index, modelid, boneid,
  937. Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ,
  938. Float:fRotX, Float:fRotY, Float:fRotZ,
  939. Float:fScaleX, Float:fScaleY, Float:fScaleZ );
  940.  
  941. #line 370
  942.  
  943. forward OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ);
  944.  
  945. #line 378
  946.  
  947. forward OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ);
  948.  
  949.  
  950. #file prueba.pwn
  951. #line 2
  952.  
  953. #file include.pwn
  954. #line 3
  955.  
  956. myfunc()
  957. {
  958.     print("Hola mundo!");
  959. }
  960.  
  961. #file prueba.pwn
  962. #line 4
  963.  
  964. main()
  965. {
  966.     myfunc();
  967. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement