Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,250
» Latest member: PHantomeXe
» Forum threads: 2,377
» Forum posts: 12,288

Full Statistics

Online Users
There are currently 329 online users.
» 0 Member(s) | 326 Guest(s)
Google, Yandex, Bing

Latest Threads
Second Generation Rolepla...
Forum: Advertisements
Last Post: JamesT
9 hours ago
» Replies: 0
» Views: 8
Servidor RPG profissões
Forum: Advertisements
Last Post: tcharlesmeurer
Yesterday, 11:35 PM
» Replies: 0
» Views: 10
EVO Anti-Cheat
Forum: Libraries
Last Post: Eduardo_AC
Yesterday, 11:05 PM
» Replies: 2
» Views: 28
Developer for Hire – Syst...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-07-04, 08:35 AM
» Replies: 0
» Views: 43
Liberty City map
Forum: Pawn Scripting
Last Post: ziyadprogamer
2025-06-28, 04:55 PM
» Replies: 2
» Views: 2,168
GameText styles in open.m...
Forum: Pawn Scripting
Last Post: Miki
2025-06-28, 01:25 PM
» Replies: 1
» Views: 54
Script[gamemodes/gamemode...
Forum: Pawn Scripting
Last Post: Miki
2025-06-27, 05:08 PM
» Replies: 1
» Views: 434
Want to edit my profile n...
Forum: Chat
Last Post: Hera.
2025-06-26, 08:41 PM
» Replies: 1
» Views: 584
Farsi
Forum: Other
Last Post: acc.gangbeni
2025-06-25, 08:21 AM
» Replies: 2
» Views: 3,076
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
2025-06-22, 06:47 PM
» Replies: 0
» Views: 66

 
  PlayerTextDrawSetSelectable [SOLVED]
Posted by: Torque - 2021-02-07, 11:21 AM - Forum: Pawn Scripting - Replies (1)

I don't understand why the textdraw isn't selectable. Here's my script for reference. I don't even get a hover color. All of the SELECT buttons should be selectable but they're not.



Code:
CharSelect[playerid][10] = CreatePlayerTextDraw(playerid, 170.000000, 260.000000, "SELECT");

PlayerTextDrawAlignment(playerid, CharSelect[playerid][10], 2);

PlayerTextDrawBackgroundColor(playerid, CharSelect[playerid][10], 255);

PlayerTextDrawFont(playerid, CharSelect[playerid][10], 1);

PlayerTextDrawLetterSize(playerid, CharSelect[playerid][10], 0.219999, 0.699998);

PlayerTextDrawColor(playerid, CharSelect[playerid][10], -1);

PlayerTextDrawSetOutline(playerid, CharSelect[playerid][10], 0);

PlayerTextDrawSetProportional(playerid, CharSelect[playerid][10], 1);

PlayerTextDrawSetShadow(playerid, CharSelect[playerid][10], 0);

PlayerTextDrawUseBox(playerid, CharSelect[playerid][10], 1);

PlayerTextDrawBoxColor(playerid, CharSelect[playerid][10], 645404415);

PlayerTextDrawTextSize(playerid, CharSelect[playerid][10], 0.000000, 63.000000);

PlayerTextDrawSetSelectable(playerid, CharSelect[playerid][10], 1);





Code:
forward ShowCharacterMenu(playerid);

public ShowCharacterMenu(playerid)

{

SelectTextDraw(playerid, 0x00FF00FF);



PlayerTextDrawSetString(playerid, CharSelect[playerid][15], (!PlayerCharacters[playerid][0][0]) ? ("Empty Slot") : (PlayerCharacters[playerid][0]));

PlayerTextDrawSetPreviewModel(playerid, CharSelect[playerid][1], PlayerCharactersModel[playerid][0]);

PlayerTextDrawSetString(playerid, CharSelect[playerid][2], (!PlayerCharacters[playerid][1][0]) ? ("Empty Slot") : (PlayerCharacters[playerid][1]));

PlayerTextDrawSetPreviewModel(playerid, CharSelect[playerid][3], PlayerCharactersModel[playerid][1]);

PlayerTextDrawSetString(playerid, CharSelect[playerid][4], (!PlayerCharacters[playerid][2][0]) ? ("Empty Slot") : (PlayerCharacters[playerid][2]));

PlayerTextDrawSetPreviewModel(playerid, CharSelect[playerid][5], PlayerCharactersModel[playerid][2]);

PlayerTextDrawSetString(playerid, CharSelect[playerid][6], (!PlayerCharacters[playerid][3][0]) ? ("Empty Slot") : (PlayerCharacters[playerid][3]));

PlayerTextDrawSetPreviewModel(playerid, CharSelect[playerid][7], PlayerCharactersModel[playerid][3]);

PlayerTextDrawSetString(playerid, CharSelect[playerid][8], (!PlayerCharacters[playerid][4][0]) ? ("Empty Slot") : (PlayerCharacters[playerid][4]));

PlayerTextDrawSetPreviewModel(playerid, CharSelect[playerid][9], PlayerCharactersModel[playerid][4]);



for(new i; i < 16; i)

{

PlayerTextDrawShow(playerid, CharSelect[playerid][i]);

}

return 1;

}


  ENCODING PROBLEM?
Posted by: Zett0x - 2021-02-07, 04:03 AM - Forum: Pawn Scripting - No Replies

Hello everyone,

i used PAWNO iDE, and today i tried to change it: i installed pawn tools for vscode and i was able to compile the code. Everything okay, the problem is, when i open the file .pwn with visual studio, suddendly the spanish characteres like "?,!,?,?,?,?,?" didnt appear, except of these things, i could see a "?" character.?

Someone can help me? vscode open the files with UTF8 encoding.
Thank you very much.


SOLVED, I WITH SUBLIME TEXT I DONT HAVE THAT ISSUE


  fixes.inc in OpenMP?
Posted by: JR_Junior - 2021-02-06, 04:58 PM - Forum: Questions and Suggestions - Replies (1)

My question I don't know if it has already been asked and answered, but I want to know if it will be necessary to "fixes.inc" in OpenMP or will these bugs be fixed?


  POKE-BALL, CUP OF TEA, MAZE & PAC-MAN
Posted by: Name - 2021-02-06, 09:34 AM - Forum: Videos and Screenshots - Replies (3)

FOUR RANDOM FREEROAM MAPS?

Four random freeroam maps, I guess? When posting these, some of the maps are new and some of them are old. Old ones where posted on samp forums before, but since they are like gone? or atleast most of you never saw them, I thought why not share them again right? Plus I add new maps with old maps as well, for those who probably saw old ones, can enjoy also new ones. I would appreacite if you leave a feedback, your opinions and suggestions what i could map next or what to keep in mind for next mapping projects.?



POKE-BALL

Name: POKE-BALL

Map type: Exterior

Author of map: MrName (me)

Number of objects: 10

Number of textures: 12

Removed SA objects: 0

Custom objects: 0

Location of map: Willowfield / Ocean Docks, Los Santos

Map editor used: MSR's Mapping system

Reference: Pokemon series

About map: Huge poke ball in sewers of Los Santos.

Screenshots:



[Image: 5L91XsOl.jpg]

[Image: jve0CW4l.jpg]

[Image: DgzYes1l.jpg]




CUP OF TEA

Name: Cup of tea

Map type: Exterior

Author of map: MrName (me)

Number of objects: 26

Number of textures: 38

Removed SA objects: 0

Custom objects: 0

Location of map: Greenglass college, Las Venturas

Map editor used: MSR's mapping system

Reference: A cup of tea

About map: Big cup of tea, to warm up your heart, when you are feeling down. Smile more. :3

Screenshots:



[Image: Fwck2JPl.jpg]

[Image: l4c4u1kl.jpg]

[Image: YPs9oWHl.jpg]

[Image: rNeQAB2l.jpg]





BUSH MAZE

Name: Bush maze

Map type: Exterior

Author of map: MrName (me)

Number of objects: 491

Number of textures: 921 and 2 texts

Removed SA objects: 0

Custom objects: 0

Location of map: The Farm, Flint County, San Fierro

Map editor used: MSR's mapping system

Reference: unknown

About map: 16x16 bush maze in the middle of "The Farm" in Flint County, red flare is middle of maze. Medium level maze.?

Screenshots:



[Image: 7OhXxDTl.jpg]

[Image: tUFN8Zwl.jpg]

[Image: NrVaHA0l.jpg]

[Image: 6vwX3XDl.jpg]

[Image: EiS6Q1Ql.jpg]

[Image: hNBZUGxl.jpg]

[Image: NOqK0tbl.jpg]





PAC-MAN

Name: Pac-man

Map type: Exterior

Author of map: MrName (me)

Number of objects: 49

Number of textures: 55

Removed SA objects: 0

Custom objects: 0

Location of map: Bayside, northwestern corner of Tierra Robada

Map editor used: MSR's mapping system

Reference: PAC-MAN game

About map:??Big hungry pac-man, trying to catch white balls.. (whoops)

Screenshots:



[Image: h9LKomNl.jpg]

[Image: NZTjBLBl.jpg]

[Image: JrSvDmrl.jpg]

[Image: tAqAc7xl.jpg]

[Image: D8Ovzs5l.jpg]





Okay, that is it for now, lemme know what you think! Don't forget to leave feedback, your opinions and suggestions for the future projects! Very Appreciated! Much love! :333





  How to detect sampcac
Posted by: sampaux - 2021-02-06, 07:01 AM - Forum: Pawn Scripting - Replies (1)

I need a script to detect if the player is using sampcac

I try to use sampcac.inc and sampac.inc, but I have no idea how to use this


Question AYUDA / HELP / TDM
Posted by: Hitler - 2021-02-06, 03:27 AM - Forum: Pawn Scripting - Replies (3)

Espa?ol: Tengo un servidor TDM, ?como hago para que se igualen los teams ?, osea una funci?n para que no haya por ejemplo 5 rojos y 2 azules, que se pueda emparejar por as? decirlo, gracias.



Ingl?s: Tengo un servidor TDM, ?c?mo hago coincidir los equipos ?, me refiero a una funci?n para que no haya por ejemplo 5 rojos y 2 azules, que se pueden emparejar por as? decirlo, gracias.


Question [Duda]
Posted by: Kaiser - 2021-02-06, 01:52 AM - Forum: Programaci?n - Replies (3)

Buenas noches, ten?a la duda de c?mo le puedo agregar una funci?n de animaci?n a un comando, por ejemplo:



Quiero que el comando /robarbanco ejecut? una animaci?n c?mo si se estuviera agachando.



?Qu? tendr?a que hacer para meterle esa funci?n?


Thumbs Down Menu Para Vips
Posted by: Nikolay_Staggs - 2021-02-06, 12:33 AM - Forum: Filterscripts - No Replies

Es un simple [FS].

Solo necesitas los includes dof2 zcmd.




/*
? ? Menu Vip

*/



#include <a_samp>

#include <dof2>

#include <zcmd>



new PlayerText:MENU_VIP[MAX_PLAYERS][14];

new Selecionar_Skin[MAX_PLAYERS];



public OnFilterScriptInit()

{

return 1;

}



public OnFilterScriptExit()

{

? ? DOF2_Exit();

return 1;

}



public OnPlayerConnect(playerid)

{

MENU_VIP[playerid][0] = CreatePlayerTextDraw(playerid, 325.000000, 153.000000, "_");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][0], 1);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][0], 0.600000, 16.500017);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][0], 303.000000, 359.500000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][0], 1);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][0], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][0], 2);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][0], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][0], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][0], 16777215);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][0], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][0], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][0], 0);



MENU_VIP[playerid][1] = CreatePlayerTextDraw(playerid, 325.000000, 155.000000, "_");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][1], 1);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][1], 0.600000, 16.000024);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][1], 303.000000, 353.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][1], 1);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][1], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][1], 2);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][1], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][1], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][1], 1296911871);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][1], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][1], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][1], 0);



MENU_VIP[playerid][2] = CreatePlayerTextDraw(playerid, 389.000000, 154.000000, "Preview_Model");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][2], 5);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][2], 0.600000, 2.000000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][2], 112.500000, 94.500000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][2], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][2], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][2], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][2], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][2], 1433087999);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][2], 255);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][2], 0);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][2], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][2], 0);

PlayerTextDrawSetPreviewModel(playerid, MENU_VIP[playerid][2], 304);

PlayerTextDrawSetPreviewRot(playerid, MENU_VIP[playerid][2], -17.000000, 0.000000, -25.000000, 0.940000);

PlayerTextDrawSetPreviewVehCol(playerid, MENU_VIP[playerid][2], 1, 1);



MENU_VIP[playerid][3] = CreatePlayerTextDraw(playerid, 392.000000, 252.000000, "<");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][3], 3);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][3], 0.529166, 1.600000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][3], 404.500000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][3], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][3], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][3], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][3], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][3], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][3], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][3], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][3], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][3], 1);



MENU_VIP[playerid][4] = CreatePlayerTextDraw(playerid, 487.000000, 252.000000, ">");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][4], 3);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][4], 0.529166, 1.600000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][4], 498.000000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][4], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][4], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][4], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][4], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][4], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][4], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][4], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][4], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][4], 1);



MENU_VIP[playerid][5] = CreatePlayerTextDraw(playerid, 156.000000, 162.000000, "armas");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][5], 2);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][5], 0.400000, 1.000000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][5], 234.000000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][5], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][5], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][5], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][5], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][5], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][5], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][5], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][5], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][5], 1);



MENU_VIP[playerid][6] = CreatePlayerTextDraw(playerid, 156.000000, 184.000000, "jetpack");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][6], 2);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][6], 0.400000, 1.000000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][6], 234.000000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][6], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][6], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][6], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][6], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][6], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][6], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][6], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][6], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][6], 1);



MENU_VIP[playerid][7] = CreatePlayerTextDraw(playerid, 156.000000, 208.000000, "guardar_pos");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][7], 2);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][7], 0.400000, 1.000000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][7], 268.000000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][7], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][7], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][7], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][7], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][7], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][7], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][7], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][7], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][7], 1);



MENU_VIP[playerid][8] = CreatePlayerTextDraw(playerid, 156.000000, 232.000000, "ir_pos");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][8], 2);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][8], 0.400000, 1.000000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][8], 234.000000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][8], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][8], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][8], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][8], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][8], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][8], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][8], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][8], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][8], 1);



MENU_VIP[playerid][9] = CreatePlayerTextDraw(playerid, 156.000000, 255.000000, "vida_chaleco");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][9], 2);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][9], 0.400000, 1.000000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][9], 273.000000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][9], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][9], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][9], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][9], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][9], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][9], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][9], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][9], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][9], 1);



MENU_VIP[playerid][10] = CreatePlayerTextDraw(playerid, 156.000000, 278.000000, "comandos_vip");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][10], 2);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][10], 0.400000, 1.000000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][10], 275.500000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][10], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][10], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][10], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][10], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][10], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][10], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][10], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][10], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][10], 1);



MENU_VIP[playerid][11] = CreatePlayerTextDraw(playerid, 278.000000, 155.000000, "menu");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][11], 3);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][11], 0.416666, 1.200000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][11], 306.500000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][11], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][11], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][11], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][11], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][11], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][11], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][11], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][11], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][11], 0);



MENU_VIP[playerid][12] = CreatePlayerTextDraw(playerid, 319.000000, 155.000000, "vip");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][12], 3);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][12], 0.395833, 1.200000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][12], 306.500000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][12], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][12], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][12], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][12], -65281);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][12], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][12], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][12], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][12], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][12], 0);



MENU_VIP[playerid][13] = CreatePlayerTextDraw(playerid, 451.000000, 290.000000, "cerrar");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][13], 3);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][13], 0.416666, 1.200000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][13], 498.000000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][13], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][13], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][13], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][13], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][13], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][13], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][13], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][13], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][13], 1);



return 1;

}



public OnPlayerDisconnect(playerid, reason)

{

PlayerTextDrawHide(playerid, MENU_VIP[playerid][0]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][1]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][2]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][3]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][4]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][5]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][6]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][7]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][8]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][9]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][10]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][11]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][12]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][13]);

return 1;

}



CMD:menu(playerid)

{

? ? PlayerTextDrawSetPreviewModel(playerid, MENU_VIP[playerid][2], Selecionar_Skin[playerid]);

? ? SetPlayerSkin(playerid, Selecionar_Skin[playerid]);

? ? PlayerTextDrawShow(playerid, MENU_VIP[playerid][0]);

? ? PlayerTextDrawShow(playerid, MENU_VIP[playerid][1]);

? ? PlayerTextDrawShow(playerid, MENU_VIP[playerid][2]);

? ? PlayerTextDrawShow(playerid, MENU_VIP[playerid][3]);

? ? PlayerTextDrawShow(playerid, MENU_VIP[playerid][4]);

? ? PlayerTextDrawShow(playerid, MENU_VIP[playerid][5]);

? ? PlayerTextDrawShow(playerid, MENU_VIP[playerid][6]);

? ? PlayerTextDrawShow(playerid, MENU_VIP[playerid][7]);

? ? PlayerTextDrawShow(playerid, MENU_VIP[playerid][8]);

? ? PlayerTextDrawShow(playerid, MENU_VIP[playerid][9]);

? ? PlayerTextDrawShow(playerid, MENU_VIP[playerid][10]);

? ? PlayerTextDrawShow(playerid, MENU_VIP[playerid][11]);

? ? PlayerTextDrawShow(playerid, MENU_VIP[playerid][12]);

? ? PlayerTextDrawShow(playerid, MENU_VIP[playerid][13]);

? ? SelectTextDraw(playerid, 0xFF6C00FF);

? ? return 1;

}



public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)

{

? ? if(playertextid == MENU_VIP[playerid][4])

? ? {

? ? ? PlayerPlaySound(playerid, 1131, 0.0, 0.0, 0.0);

? if(Selecionar_Skin[playerid] == 310) Selecionar_Skin[playerid] = 0;

? {

? ? ? Selecionar_Skin[playerid] ;

? ? ? PlayerTextDrawSetPreviewModel(playerid, MENU_VIP[playerid][2], Selecionar_Skin[playerid]);

? ? ? PlayerTextDrawShow(playerid, MENU_VIP[playerid][2]);

? ? ? SetPlayerSkin(playerid, Selecionar_Skin[playerid]);

? }

? ? }

? ? else if(playertextid == MENU_VIP[playerid][3])

? ? {

? ? ? PlayerPlaySound(playerid, 1131, 0.0, 0.0, 0.0);

? if(Selecionar_Skin[playerid] == 1) Selecionar_Skin[playerid] = 311;

? {

? ? ? Selecionar_Skin[playerid] --;

? ? ? PlayerTextDrawSetPreviewModel(playerid, MENU_VIP[playerid][2], Selecionar_Skin[playerid]);

? ? ? PlayerTextDrawShow(playerid, MENU_VIP[playerid][2]);

? ? ? SetPlayerSkin(playerid, Selecionar_Skin[playerid]);

? }

? ? }

? ? else if(playertextid == MENU_VIP[playerid][5])

? ? {

? ? ? ? GivePlayerWeapon(playerid, 26, 5000);

? ? ? ? GivePlayerWeapon(playerid, 24, 5000);

? ? ? ? GivePlayerWeapon(playerid, 30, 5000);

? ? ? ? GivePlayerWeapon(playerid, 34, 5000);

? ? ? ? SendClientMessage(playerid, -1, "{009B00}[Info] {FFFFFF}se te dio armas..");

? ? }

? ? else if(playertextid == MENU_VIP[playerid][6])

? ? {

? ? ? ? CancelSelectTextDraw(playerid);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][0]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][1]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][2]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][3]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][4]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][5]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][6]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][7]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][8]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][9]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][10]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][11]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][12]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][13]);

? ? SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);

? ? SendClientMessage(playerid, -1, "{009B00}[Info] {FFFFFF}has creado un jetpack..");

? ? }

? ? else if(playertextid == MENU_VIP[playerid][7])

? ? {

? ? ? ? new Float:vx, Float:vy, Float:vz, vpos[MAX_PLAYER_NAME], vstr[60];

? ? ? ? GetPlayerPos(playerid, vx, vy, vz);

? ? ? ? GetPlayerName(playerid, vpos, 24);



? ? ? ? format(vstr, sizeof(vstr), "POS_GUARDADA/Pos/%s.ini", vpos);



? ? ? ? if(!DOF2_FileExists(vstr))

? ? ? ? DOF2_CreateFile(vstr);

? ? ? ? DOF2_SetFloat(vstr, "X", vx);

? ? ? ? DOF2_SetFloat(vstr, "Y", vy);

? ? ? ? DOF2_SetFloat(vstr, "Z", vz);

? ? ? ? DOF2_SaveFile();

? ? ? ? SendClientMessage(playerid, -1, "{009B00}[Info] {FFFFFF}la posici?n actual se ha guardado..");

? ? }

? ? else if(playertextid == MENU_VIP[playerid][8])

? ? {

? ? ? ? new vpos[MAX_PLAYER_NAME], vstr[60];

? ? ? ? GetPlayerName(playerid, vpos, 24);

? ? ? ? format(vstr, sizeof(vstr), "POS_GUARDADA/Pos/%s.ini", vpos);

? ? ? ? if(!DOF2_FileExists(vstr))

? ? ? ? {

? ? ? ? ? ? SendClientMessage(playerid, -1, "{009B00}[Info] {FFFFFF}primero debes guardar una posici?n..");

? ? ? ? }

? ? ? ? else

? ? ? ? {

? ? ? ? ? ? new Float:vxi = DOF2_GetFloat(vstr, "X");

? ? ? ? ? ? new Float:vyi = DOF2_GetFloat(vstr, "Y");

? ? ? ? ? ? new Float:vzi = DOF2_GetFloat(vstr, "Z");



? ? ? ? ? ? SetPlayerPos(playerid, vxi, vyi, vzi);

? ? ? ? ? ? SendClientMessage(playerid, -1, "{009B00}[Info] {FFFFFF}has sido teletransportado..");

? ? ? ? }

? ? }

? ? else if(playertextid == MENU_VIP[playerid][9])

? ? {

? ? ? ? SetPlayerHealth(playerid, 100);

? ? ? ? SetPlayerArmour(playerid, 100);

? ? }

? ? else if(playertextid == MENU_VIP[playerid][13])

? ? {

? ? ? ? CancelSelectTextDraw(playerid);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][0]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][1]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][2]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][3]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][4]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][5]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][6]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][7]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][8]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][9]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][10]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][11]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][12]);

? ? PlayerTextDrawHide(playerid, MENU_VIP[playerid][13]);

? ? }

? ? return 0;
}


  SHA-256 Password Hashing
Posted by: JaKe Elite - 2021-02-05, 10:42 AM - Forum: Pawn Scripting - Replies (3)

Hi!



I would like to know if SHA-256 Password hashing is available for SAMP 0.3.7 R1? I tried looking into the a_samp.inc but the native function wasn't there although it says in the wiki that it is available on 0.3.7 R1.



Is there any way I can reverse or transfer to a different password hashing method replacing SHA-256 without affecting the accounts??



I am planning on downgrading my server due to personal reasons / server needs.


  How to create a SA-MP Mobile server
Posted by: Bobby552 - 2021-02-05, 09:04 AM - Forum: General Discussions - Replies (3)

I want to know how to create a SA-MP Mobile which you can also play from PC. I have an VPS what do I need to setup a SA-MP Mobile connection. Thanks