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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,024
» Latest member: Armeat2005
» Forum threads: 2,350
» Forum posts: 12,236

Full Statistics

Online Users
There are currently 214 online users.
» 1 Member(s) | 211 Guest(s)
Bing, Google, shiftdapentas

Latest Threads
Will there be a higher pl...
Forum: General Discussions
Last Post: Armeat2005
3 hours ago
» Replies: 0
» Views: 4
DOF2.1 (DOF2 Updated)
Forum: Libraries
Last Post: GracieStith
7 hours ago
» Replies: 1
» Views: 849
Kontak Layanan CIMB Niaga...
Forum: Support
Last Post: bosquee9053
Yesterday, 03:44 PM
» Replies: 0
» Views: 18
CS Bank DBS Customer Cent...
Forum: Chat
Last Post: bosquee9053
Yesterday, 03:37 PM
» Replies: 0
» Views: 19
Sponsors and Donations
Forum: Questions and Suggestions
Last Post: NoxxeR
Yesterday, 05:48 AM
» Replies: 0
» Views: 29
I know Kalcor left the bu...
Forum: Questions and Suggestions
Last Post: NoxxeR
Yesterday, 05:40 AM
» Replies: 2
» Views: 68
Best practices for conver...
Forum: Tech
Last Post: Mido
2025-04-19, 09:53 PM
» Replies: 1
» Views: 81
A simple suggestion as a ...
Forum: Questions and Suggestions
Last Post: Mido
2025-04-19, 09:47 PM
» Replies: 1
» Views: 39
Steps to unlock Apple ID ...
Forum: Tech
Last Post: fubolink
2025-04-17, 03:50 PM
» Replies: 0
» Views: 39
What got you into SA-MP a...
Forum: Chat
Last Post: alecnia
2025-04-17, 01:17 AM
» Replies: 1
» Views: 151

 
Information [Work in progress] TextDraw Editor (online)
Posted by: Leonardo - 2022-06-12, 09:00 AM - Forum: Releases - Replies (3)

TextDraw Editor



A TextDraw Editor built in Vanilla JS



Work in progress!! For more information, visit the github repository.



Preview



[Image: 2fQfySy.jpg]



Source code



https://github.com/Leonardo541/TextDrawEditor



Demo at



https://leonardo541.github.io/TextDrawEditor/


  How to get rid and replace the SERVER: Unknown command message?
Posted by: Haitam - 2022-06-07, 07:16 PM - Forum: Programming - Replies (1)

Hello, I am trying to learn PAWN scripting, how can I get rid of the SERVER: Unknown command message? And please tell me a good way to learn basics and start scripting! Thanks.


  So whats up now is the beta is out?
Posted by: NoxxeR - 2022-06-06, 06:54 PM - Forum: Chat - No Replies

Whats up with the new Open Multiplayer client? Will it be released to the public? The server beta has been released.



Everybody will enjoy life if you guys release the Client, some of us havent played in a long time GTA SA, we need a good client soon.


  GTA Maps in open.mp?
Posted by: Xyranaut - 2022-06-04, 05:41 AM - Forum: Questions and Suggestions - Replies (1)

According to the latest SA:MP update, access to the GTA VC Map has been granted within SA:MP. I recently came across a video featuring the merging of maps from GTA 3, VC, SA, 4 and 5 into GTA SA. In the video, the creator provided links for this merged map setup.

I'm contemplating the possibility of integrating these map files seamlessly with the 'installation of open.mp'. This way, anyone using open.mp would automatically gain access to these maps, eliminating the need for manual installation by individuals.

It would be quite fascinating to envision the incorporation of all these maps, effectively utilizing them in a multiplayer environment by simply adding the map mod extension alongside open.mp.


  AttachDynamicObjectToObject
Posted by: Davee52 - 2022-05-30, 03:24 PM - Forum: Pawn Scripting - Replies (1)

Hi. I tried to use AttachDynamicObjectToObject, but failed, the object doesn't attach. Any ideas?

Code:
new id,p;

stock CreateATM(Float:PX,Float:PY,Float:PZ,Float:PRX, Float:PRY, Float:PRZ){

id= CreateDynamicObject(19526, PX,PY,PZ, PRX,PRY,PRZ, -1, -1, -1, 10.00, 10.00);

SetDynamicObjectMaterial(id, 0, 2942, "kmb_atmx", "kmb_atm", 0x00000000);

SetDynamicObjectMaterial(id, 2, 14708, "labig1int2", "ab_mottleGrey", 0x00000000);

SetDynamicObjectMaterial(id, 3, 2942, "kmb_atmx", "kmb_atm_sign", 0x00000000);

SetDynamicObjectMaterial(id, 5, 1252, "barrelexpos", "atm", 0x00000000);

p = CreateDynamicObject(19483, PX.2123, PY.12836, PZ.1343, 0.000000, -48.300056, -90.000053, -1, -1, -1, 10.00, 10.00);

SetDynamicObjectMaterialText(p, 0, "{ffffff}CASH", 130, "Ariel", 20, 1, 0x00000000, 0x00000000, 1);

AttachDynamicObjectToObject(p,id,0.2123,0.12836,1.1343,0.000000, -48.300056, -90.000053,1);

}



P.S: It does work correctly when I convert it to default Create Object and AttachObjectToObject.. But i'm using streamer plugin


  samp voice frequency
Posted by: hiwyn - 2022-05-18, 02:53 PM - Forum: Pawn Scripting - Replies (2)

I tried but fail to put radio frequencies on samp voice...

2 problems:

1- you can hear and talk to everyone in any frequency, i mean you are in 3000, you can talk to people on 5000
2- server crashes a while after people use this

What i'm doing wrong?

global

Code:
#define MAX_RADIOS 9999
forward ConnectRadioVoice(playerid);
forward DisconnectRadioVoice(playerid);
new SV_GSTREAM:StreamFreq[MAX_RADIOS] = SV_NULL;
new players_in_radiofrequency[MAX_RADIOS];

OnPlayerActivationKeyPress
Code:
// radio voice
if(radio_frequency[playerid] == 0) {
    SvAttachSpeakerToStream(StreamFreq[radio_frequency[playerid]], playerid);
}
// voice local
else {
    SvAttachSpeakerToStream(lstream[playerid], playerid);
}

OnPlayerActivationKeyRelease
Code:
// Detach the player from the local stream if the 'B' key is released
    if (keyid == 0x42 && lstream[playerid]) {
        SvDetachSpeakerFromStream(lstream[playerid], playerid);
    }
    // Detach the player from the local stream if the 'B' key is released
    if (keyid == 0x42 && StreamFreq[radio_frequency[playerid]]) {
        SvDetachSpeakerFromStream(StreamFreq[radio_frequency[playerid]], playerid);
    }

functions from command
Code:
public ConnectRadioVoice(playerid) {
    new rfid = radio_frequency[playerid];
    if(StreamFreq[rfid] == SV_NULL)
    {
        new string[128];
        format(string, sizeof(string), "Radio %i", rfid);
        StreamFreq[rfid] = SvCreateGStream(0xFF00FFFF, string);
        SvAttachListenerToStream(StreamFreq[rfid], playerid);
    }
    else
    {
        SvAttachListenerToStream(StreamFreq[rfid], playerid);
    }
    players_in_radiofrequency[rfid] = 1;
    return 1;
}
public DisconnectRadioVoice(playerid) {
    new rfid = radio_frequency[playerid];
    players_in_radiofrequency[rfid] -= 1;
    if(players_in_radiofrequency[rfid] <= 0) {
      StreamFreq[rfid] = SV_NULL;
    }
    return 1;
}

command
Code:
CMD:radio(playerid, params[]) {
    new frequency_id;
    if(sscanf(params,"i", frequency_id)) return SendClientMessage(playerid, -1, "Use: /testid [id]");
    if(frequency_id > MAX_RADIOS || frequency_id < 1) return SendClientMessage(playerid, -1, "O numero deve ser entre 1 e MAX_RADIOS");
    radio_frequency[playerid] = frequency_id;
    if(frequency_id == 0) DisconnectRadioVoice(playerid);
    else ConnectRadioVoice(playerid);
    return 1;
}


  insert line as much as the amount.
Posted by: Axitz - 2022-05-11, 12:28 PM - Forum: Pawn Scripting - Replies (1)

hi,



for now, this line is inserting only 1 by 1 since i used People; but I want to multiply it by the amount.



so when i put like /test 10

it will create 10 lines.



example code as below.





Code:
COMMAND:test(playerid, params[])

{

new? iAmount;

if( sscanf ( params, "d", iAmount)) return SendClientMessage(playerid,-1, "[amount]");

new PlayerName[MAX_PLAYER_NAME];

GetPlayerName(playerid, PlayerName, sizeof(PlayerName));

People;

Pool=LOTTERY_PRICE;

dini_IntSet("lottery.ini", "money", Pool);

GivePlayerMoney(playerid, -LOTTERY_PRICE);

new string[128];

format(string, sizeof(string), "%d", People);

dini_Set("lottery.ini", string, PlayerName);

return 1;

}


  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