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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,234
» Latest member: welwlell3
» Forum threads: 2,373
» Forum posts: 12,327

Full Statistics

Online Users
There are currently 191 online users.
» 0 Member(s) | 189 Guest(s)
Bing, Google

Latest Threads
Liberty City map
Forum: Pawn Scripting
Last Post: ziyadprogamer
2025-06-28, 04:55 PM
» Replies: 2
» Views: 2,131
GameText styles in open.m...
Forum: Pawn Scripting
Last Post: Miki
2025-06-28, 01:25 PM
» Replies: 1
» Views: 44
Very Basic SAMP UCP
Forum: Videos and Screenshots
Last Post: bullyalina
2025-06-28, 12:43 PM
» Replies: 49
» Views: 12,967
Script[gamemodes/gamemode...
Forum: Pawn Scripting
Last Post: Miki
2025-06-27, 05:08 PM
» Replies: 1
» Views: 425
Want to edit my profile n...
Forum: Chat
Last Post: Hera.
2025-06-26, 08:41 PM
» Replies: 1
» Views: 551
Farsi
Forum: Other
Last Post: acc.gangbeni
2025-06-25, 08:21 AM
» Replies: 2
» Views: 3,060
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
2025-06-22, 06:47 PM
» Replies: 0
» Views: 54
[Request] Linko Gaming Ro...
Forum: General Discussions
Last Post: JamesC
2025-06-20, 07:34 PM
» Replies: 0
» Views: 67
RevolutionX DM/Stunt/Race...
Forum: Advertisements
Last Post: DerekZ905
2025-06-18, 03:12 PM
» Replies: 0
» Views: 87
samp-cef
Forum: Questions and Suggestions
Last Post: jamespssamp
2025-06-18, 11:36 AM
» Replies: 0
» Views: 71

 
  How Setting Server Console to Hidden login log connection cookie?
Posted by: PutuSuhartawan - 2022-05-11, 11:12 AM - Forum: Pawn Scripting - No Replies

[Image: unknown.png]


And abaout the plugin setting. How to hidden plugin log too?

[21:28:29] : [sv:dbg:network:connect] : player (32) assigned key (a1af9067de8251a2)
[21:28:29] : [sv:dbg:network:receive] : player (32) identified (port:48538)
[21:28:33] : [sv:dbg:network:connect] : connecting player (3) with address (180.249.82.178) ...
[21:28:33] : [sv:dbg:network:connect] : player (3) assigned key (b252f9b4e9be3c94)
[21:28:33] : [sv:dbg:network:receive] : player (3) identified (port:41177)
[21:28:40] : [sv:dbg:network:connect] : disconnecting player (36) ...
[21:28:41] : [sv:dbg:network:connect] : disconnecting player (25) ...
[21:28:49] : [sv:dbg:network:connect] : disconnecting player (21) ...
[21:28:51] : [sv:dbg:network:connect] : connecting player (36) with address (114.5.215.231) ...
[21:28:51] : [sv:dbg:network:connect] : player (36) assigned key (e7d70572fdfac585)
[21:28:51] : [sv:dbg:network:receive] : player (36) identified (port:64510)
[21:28:53] : [sv:dbg:network:connect] : disconnecting player (14) ...
[21:28:56] : [sv:dbg:network:connect] : connecting player (14) with address (128.14.65.219) ...
[21:28:56] : [sv:dbg:network:connect] : player (14) assigned key (db410e80fef2bf7d)
[21:29:03] : [sv:dbg:network:connect] : disconnecting player (72) ...
[21:29:03] : [sv:dbg:network:connect] : disconnecting player (3) ...


  Increase chance?
Posted by: Axitz - 2022-05-01, 05:46 PM - Forum: Pawn Scripting - Replies (1)

Hi,



How do I make/get people with a high amount of something have high amount of winning?



Any short simple code, I'd appreciated it.


  I can't log in with voice client emulating
Posted by: hiwyn - 2022-04-27, 03:05 PM - Forum: Support - No Replies

I'm trying to install voice on my PC, but I play on VMBOX, because I can't use Windows...



When I login print the message:

Code:
Could not find sampvoice plugin.

Like I don't have voice installed



But I did the steps:





1- download the samp de 0.3.7 from: https://pawnokit.ru/ru/files

sa-mp-0.3.7-install.exe

01.05.2015 14:37:38

15.52M

3d248cc47f0434c158de30755fcf1506



2- download the voice and extract on gta folder:

https://github.com/CyberMor/sampvoice/releases/tag/v3.1

sv_client_037_r1_english.zip





What might be missing? I really wanted to play with voice


Question Object Rotation/Functions
Posted by: Salik_Davince - 2022-04-24, 08:10 AM - Forum: Pawn Scripting - No Replies

Hi, I know that the project is practically not supported, but I would like to ask how to implement the rotation of an object and position relative to another object, i.e. group objects, I know that 3DTryg includes the following functions, but I am not strong in trigonometry: (yandex translator) -





* GetRotationFor2Point2D(Float:x,Float:y,Float:tx,Float:ty,&Float:rz);

* GetRotationFor2Point3D(Float:x,Float:y,Float:z,Float:tx,Float:ty,Float:tz,&Float:rx,&Float:rz);



* ShiftVectorToRotation(Float:vx,Float:vy,Float:vz,&Float:rx,&Float:rz);

* ShiftRotationToVector(Float:rx,Float:rz,&Float:vx,&Float:vy,&Float:vz);



* ShiftVectorRotation(Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz,&Float:tx,&Float:ty,&Float:tz);



* Item::GetRotationQuat(elementid,Item3D_Type:element_type,&Float:qw,&Float:qx,&Float:qy,&Float:qz);



* //Nero_3D Rotations Functions:

* Tryg3D::GetRotationMatrixEuler(Float:matrix[][],Float:rx,Float:ry,Float:rz,T3D:eulermode:mode=T3D:euler_default);

* Tryg3D::MatrixRotate(Float:matrix[][],Float:oX,Float:oY,Float:oZ,&Float:x,&Float:y,&Float:z);

* Tryg3D::QuatRotate(Float:qw,Float:qx,Float:qy,Float:qz,Float:oX,Float:oY,Float:oZ,&Float:tx,&Float:ty,&Float:tz);

* Tryg3D::GetQuatFromEuler(Float:rx,Float:ry,Float:rz,&Float:qw,&Float:qx,&Float:qy,&Float:qz,T3D:eulermode:mode=T3D:euler_default);

* Tryg3D::EulerRotate(Float:rX,Float:rY,Float:rZ,Float:oX,Float:oY,Float:oZ,&Float:tx,&Float:ty,&Float:tz,T3D:eulermode:mode=T3D:euler_default);





==============================

You can even show and cite functions without using 3DTryg, but

==============================



And the second question in conclusion is how to set the angle of the player towards the object and set the angle (rotation) of the object towards the player, thank you for your help.!


  [debug] Long callback execution detected (hang or performance issue)
Posted by: hiwyn - 2022-04-23, 02:18 PM - Forum: Support - No Replies

nvm, delete it pls
it was a problem in my script and it wont help anybody else here


  Why the accents are not working?
Posted by: hiwyn - 2022-04-23, 01:51 PM - Forum: Support - Replies (1)

Why the accents are not working?



I mean, if i do:

SendClientMessage(i, COLOR_LIGHTRED, "O servidor ser?



Ingame it looks like:

[Image: Screenshot-from-2022-04-23-10-49-10.png]



And all other accents like ?, ?, ? looks like this /\



---





I'm compiling it on linux with this: https://github.com/pawn-lang/compiler/releases

And with this .vscode/tasks.json:



Code:
{

? // See https://go.microsoft.com/fwlink/?LinkId=733558

? // for the documentation about the tasks.json format

? "version": "2.0.0",

? "tasks": [

? ? {

? ? ? "label": "build",

? ? ? "type": "shell",

? ? ? "command": "/usr/bin/pawncc",

? ? ? "args": [

? ? ? ? "${file}",

? ? ? ? "\"-;\"",

? ? ? ? "\"-(\"",

? ? ? ? "-i\"/home/hiwyn/Documents/sampserver/include/\""

? ? ? ],

? ? ? "group": {

? ? ? ? "kind": "build",

? ? ? ? "isDefault": true

? ? ? },

? ? ? "isBackground": false,

? ? ? "presentation": {

? ? ? ? "reveal": "silent",

? ? ? ? "clear": false,

? ? ? ? "panel": "dedicated"

? ? ? },

? ? ? "problemMatcher": [

? ? ? ? {

? ? ? ? ? "base": "$pawncc",

? ? ? ? ? "fileLocation": "relative"

? ? ? ? }

? ? ? ]

? ? }

? ]

}



What else should i do?


  My server is not showing on internet tab
Posted by: hiwyn - 2022-04-23, 01:36 PM - Forum: Support - Replies (1)

Just change on server.cfg

Code:
lanmode 0

Isn't enough?



what should i do to it starts to show?



hosted tab is mouth paid, right?

btw where is the official site to buy it?



but internet tab is free, right?


  make vscode compiler rewrite actual file
Posted by: hiwyn - 2022-04-23, 01:25 PM - Forum: Support - Replies (1)

everytime i press F5 to compile a filterscript or a gamemode

it creates the .amx, but creates where i open the vscode



i mean, if i did:

cd sampserver && code .

if i open a file MISSIONS.pwn in sampserver/gamemodes

it will generate the amx in /home/sampserver instead of /home/sampserver/gamemodes



there is a way to instead of generate the amx there it get the file path (.pwn i'm editing) and creates the amx there rewriting the actual?



its boring, every time i edit a lib or a gm or a filterscript i got to move the amx after finish









I'm compiling it on linux with this: https://github.com/pawn-lang/compiler/releases

And with this .vscode/tasks.json:



Code:
{

? // See https://go.microsoft.com/fwlink/?LinkId=733558

? // for the documentation about the tasks.json format

? "version": "2.0.0",

? "tasks": [

? ? {

? ? ? "label": "build",

? ? ? "type": "shell",

? ? ? "command": "/usr/bin/pawncc",

? ? ? "args": [

? ? ? ? "${file}",

? ? ? ? "\"-;\"",

? ? ? ? "\"-(\"",

? ? ? ? "-i\"/home/hiwyn/Documents/sampserver/include/\""

? ? ? ],

? ? ? "group": {

? ? ? ? "kind": "build",

? ? ? ? "isDefault": true

? ? ? },

? ? ? "isBackground": false,

? ? ? "presentation": {

? ? ? ? "reveal": "silent",

? ? ? ? "clear": false,

? ? ? ? "panel": "dedicated"

? ? ? },

? ? ? "problemMatcher": [

? ? ? ? {

? ? ? ? ? "base": "$pawncc",

? ? ? ? ? "fileLocation": "relative"

? ? ? ? }

? ? ? ]

? ? }

? ]

}


  Health not saving in SQLite?
Posted by: CrypticSin - 2022-04-14, 12:14 AM - Forum: Pawn Scripting - Replies (3)

Trying to save player health but doesn't seem to be working i'll like to know what im doing wrong?

Created a table in OnGameModeInit:

PHP Code:
db_query(server_database"CREATE TABLE IF NOT EXISTS `USERS` (`NAME`, `IP`, `REGISTER_DATE`, `PASS`, `SCORE`, `KILLS`, `DEATHS`, `SKIN`, `HEALTH`, `pX`, `pY`, `pZ`, `pA`, `INT`, `WORLD`, `ADMIN`)");; 

Selecting data:
PHP Code:
public OnPlayerLogin(playeridbool:success)
{
    if(
success)
    {
        new 
query[256], field[24], field2[64];
        
format(querysizeof(query), "SELECT * FROM `USERS` WHERE `NAME` = '%s' COLLATE NOCASE"DB_Escape(ReturnName(playerid)));
        
database_result db_query(server_databasequery);
        if(
db_num_rows(database_result))
        {
            
db_get_field_assoc(database_result"ADMIN"fieldsizeof(field));
            
PlayerInfo[playerid][pAdmin] = strval(field);

            
db_get_field_assoc(database_result"SCORE"fieldsizeof(field));
            
SetPlayerScore(playeridstrval(field));

            
db_get_field_assoc(database_result"KILLS"fieldsizeof(field));
            
PlayerInfo[playerid][pKills] = strval(field);

            
db_get_field_assoc(database_result"DEATHS"fieldsizeof(field));
            
PlayerInfo[playerid][pDeaths] = strval(field);

            
db_get_field_assoc(database_result"SKIN"fieldsizeof(field));
            
PlayerInfo[playerid][pSkin] = strval(field);

            
db_get_field_assoc(database_result"REGISTER_DATE"field2sizeof(field2));
            
PlayerInfo[playerid][pRegister] = field2;

            
db_get_field_assoc(database_result"HEALTH"fieldsizeof(field));
            
PlayerInfo[playerid][pHealth] = floatstr(field);

            
db_get_field_assoc(database_result"pX"fieldsizeof(field));
            
PlayerInfo[playerid][pX] = floatstr(field);

            
db_get_field_assoc(database_result"pY"fieldsizeof(field));
            
PlayerInfo[playerid][pY] = floatstr(field);

            
db_get_field_assoc(database_result"pZ"fieldsizeof(field));
            
PlayerInfo[playerid][pZ] = floatstr(field);

            
db_get_field_assoc(database_result"pA"fieldsizeof(field));
            
PlayerInfo[playerid][pA] = floatstr(field);

            
db_get_field_assoc(database_result"INT"fieldsizeof(field));
            
PlayerInfo[playerid][pInt] = strval(field);

            
db_get_field_assoc(database_result"WORLD"fieldsizeof(field));
            
PlayerInfo[playerid][pWorld] = strval(field);
        } 

Inserting Health Data:
PHP Code:
? ??
    new 
query[400];
    
format(querysizeof(query), "INSERT INTO `USERS` (`NAME`, `PASS`, `ADMIN`, `IP`, `REGISTER_DATE`, `SCORE`, `KILLS`, `DEATHS`, `SKIN`, `HEALTH`, `pX`, `pY`, `pZ`, `pA`, `INT`, `WORLD`) VALUES ('%s', '%s', %d, '%s', '%s', %d, %d, %d, %d, %f, %f, %f, %f, %f, %d, %d)"DB_Escape(ReturnName(playerid)), passwordPLAYERipDateGetPlayerScore(playerid), PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], GetPlayerSkin(playerid), PlayerInfo[playerid][pHealth],
    
PlayerInfo[playerid][pX],
    
PlayerInfo[playerid][pY],
    
PlayerInfo[playerid][pZ],
    
PlayerInfo[playerid][pA],
    
PlayerInfo[playerid][pInt],
    
PlayerInfo[playerid][pWorld]);
    
database_result db_query(server_databasequery);
    
db_free_result(database_result); 

Updating Data:

PHP Code:
? ? ? ? ? ??
stock SaveAccount(playerid)
{
    new 
query[400], Float:pos[4];
    if(
PlayerInfo[playerid][pLoggedIn] == true)
    {
        
GetPlayerPos(playeridpos[0], pos[1], pos[2]);
        
GetPlayerFacingAngle(playeridpos[3]);
        
GetPlayerHealth(playeridPlayerInfo[playerid][pHealth]);

        
format(querysizeof(query),
        
"UPDATE `USERS` SET `ADMIN` = %d, `SCORE` = %d, `KILLS` = %d, `DEATHS` = %d, `SKIN` = %d, `HEALTH` = %f, `pX` = %f, `pY` = %f, `pZ` = %f, `pA` = %f, `INT` = %d, `WORLD` = %d, `ADMIN` = %d WHERE `NAME` = '%s' COLLATE NOCASE",
        
PlayerInfo[playerid][pAdmin], GetPlayerScore(playerid), PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], GetPlayerSkin(playerid), PlayerInfo[playerid][pHealth], pos[0], pos[1], pos[2], pos[3], GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid), PlayerInfo[playerid][pAdmin], DB_Escape(ReturnName(playerid)));
        
database_result db_query(server_databasequery);
        
db_free_result(database_result);
    }
    return 
1;


Code runs without errors but im still unsure on why its not saving and loading the players health..


Photo texture studio error.
Posted by: TheKosT - 2022-04-02, 02:21 PM - Forum: Support - Replies (1)

Hello friends how are you?



I come to you because after a long time I have decided to dedicate myself to MAPPER again.



I tried to open the texture STUDIO and firstly it gave me an error with the addons, well, I downloaded a gta default to use it and I solved it but I got an error.



Now nothing is loaded from the server, the filescripts are not loaded or anything, could you help me? I would like to map again and with this error I cannot.





Code:
SA-MP Dedicated Server

----------------------

v0.3.7-R2, (C)2005-2015 SA-MP Team



[10:48:47]

[10:48:47] Server Plugins

[10:48:47] --------------

[10:48:47]? Loading plugin: crashdetect

[10:48:47]? Failed.

[10:48:47]? Loading plugin: sscanf

[10:48:47]? Failed.

[10:48:47]? Loading plugin: streamer

[10:48:47]



*** Streamer Plugin v2.9.4 by Incognito loaded ***



[10:48:47]? Loaded.

[10:48:47]? Loading plugin: filemanager

[10:48:47] ******************

[10:48:47] ** FILE MANAGER **

[10:48:47] **? ? Loaded? ? **

[10:48:47] ** Version 1.5 **

[10:48:47] ******************

[10:48:47]? Loaded.

[10:48:47]? Loaded 2 plugins.



[10:48:47]

[10:48:47] Filterscripts

[10:48:47] ---------------

[10:48:47]? Loading filterscript 'tstudio.amx'...

[10:48:47]? Loading filterscript 'fsdebug.amx'...

[10:48:47]

? *********************

? * SA:MP DEBUG 0.2? *

[10:48:47]? * By Simon Campbell *

? *********************

[10:48:47]? * Version: 0.5d? ? ? *

? *********************

[10:48:47]? * -- LOADED? ? ? ? *

? *********************



[10:48:47]? Loaded 2 filterscripts.



[10:48:47]

/*-----------------------------------*\

[10:48:47] |*=====[TS Base GameMode Loaded]=====*|

[10:48:47] \*-----------------------------------*/



[10:48:47] Number of vehicle models: 0

[10:48:55] [connection] 127.0.0.1:51010 requests connection cookie.

[10:48:56] [connection] incoming connection: 127.0.0.1:51010 id: 0

[10:48:56] [join] James_Kalashnikov has joined the server (0:127.0.0.1)

[10:53:48] RCON (In-Game): Player #0 (James_Kalashnikov) has logged in.

[10:54:39] RCON (In-Game): Player [James_Kalashnikov] sent command: reloadfs

[10:55:00] RCON (In-Game): Player [James_Kalashnikov] sent command: reloadfs

[10:55:13] RCON (In-Game): Player [James_Kalashnikov] sent command: loadfs

[10:55:17] RCON (In-Game): Player [James_Kalashnikov] sent command: unloadfs

[11:08:49] [part] James_Kalashnikov has left the server (0:1)





[Image: RbWMi2n.jpg]

https://i.imgur.com/RbWMi2n.jpg