Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 884 online users. » 0 Member(s) | 882 Guest(s) Bing, Google
|
Latest Threads |
Adding new vehicles and s...
Forum: Programming
Last Post: __.A.__
11 hours ago
» Replies: 0
» Views: 36
|
Zona América del Sur Free...
Forum: Advertisements
Last Post: kevinberriosflores
Yesterday, 02:16 PM
» Replies: 1
» Views: 63
|
Busco copia de gamemode S...
Forum: Spanish/Espa?ol
Last Post: briancristaldo2021
2025-09-11, 11:14 AM
» Replies: 0
» Views: 51
|
[Tutorial] Registrando o ...
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2025-09-09, 08:36 PM
» Replies: 0
» Views: 191
|
San Andreas Police Pursui...
Forum: Advertisements
Last Post: BriBri
2025-09-08, 10:09 PM
» Replies: 1
» Views: 275
|
Problem with plugins load...
Forum: Support
Last Post: MrKacu13
2025-09-08, 07:15 PM
» Replies: 9
» Views: 330
|
Compilation error
Forum: Pawn Scripting
Last Post: MrKacu13
2025-09-07, 07:18 AM
» Replies: 6
» Views: 330
|
Need help, problem when i...
Forum: Programming
Last Post: nonickowned
2025-09-06, 06:21 PM
» Replies: 0
» Views: 138
|
Transfer server from SAMP...
Forum: Support
Last Post: MrKacu13
2025-09-06, 04:03 PM
» Replies: 1
» Views: 229
|
Not relevant anymore
Forum: Questions and Suggestions
Last Post: peti
2025-09-05, 02:00 PM
» Replies: 0
» Views: 187
|
|
|
My suggestions [Update: 2022-07-06] |
Posted by: Radical - 2022-07-02, 11:07 PM - Forum: Questions and Suggestions
- Replies (1)
|
 |
Objects & PlayerObjects:
PHP Code: SetObjectSize(objectid, Float: fX, Float: fY, Float: fZ);
SetPlayerObjectSize(objectid, Float: fX, Float: fY, Float: fZ);
GetObjectSize(objectid, &Float: fX, &Float: fY, &Float: fZ);
GetPlayerObjectSize(objectid, &Float: fX, &Float: fY, &Float: fZ);
Textdraws & PlayerTextDraws:
PHP Code: TextDrawFont(Text:text, fontface[]); //Able to use any font in TextDraw
PlayerTextDrawFont(playerid, PlayerText:text,?fontface[]);
TextDrawRotateText(Text:text, Float:rotate);
PlayerTextDrawRotateText(playerid, PlayerText:text, Float:rotate);
- Make it possible to add a new txd and player download it when connect to the server. [../omp server/models/txd]
(Like samp 0.3.DL download skin character files from server) (https://ibb.co/R2qgXLJ)
- Add color gradient textdraws.
Keys:
PHP Code: - Supporting all?Keys.
if (newkeys == 0x41) // 'A' key
File functions:
PHP Code: - Reading a directory in scriptfiles.
readdir(...);
Players:
PHP Code: ReconnectPlayer(playerid, delay=0);
TogglePlayerHUD(playerid, toggle); //Show/Hide game hud
TogglePlayerChat(playerid, toggle); //Show/Hide chats
ForcePlayerTakeScreenShot(playerid);
BurnPlayer(playerid);
TogglePlayerInvulnerable(playerid, toggle);
ReloadPlayerArmedWeapon(playerid);
RemoveWeaponFromPlayer(playerid, weaponid);
PlayerDeathListShow(playerid);
PlayerDeathListHide(playerid);
PlayerDeathListPos(playerid, Float:X, Float:Y);
SetPlayerFpsLimit(playerid, amount); // /fpslimit (30 to 90)
GetPlayerFpsLimit(playerid);
SetPlayerFontSize(playerid, size); //Chat font size /fontsize (-3 to 5)
GetPlayerFontSize(playerid);
SetPlayerPageSize(playerid, size); // /pagesize (10 to 20)
GetPlayerPageSize(playerid);
TogglePlayerHeadMove(playerid, toggle); // /headmove
TogglePlayerDebugLabels(playerid, toggle); // /dl
TogglePlayerTimestamp(playerid, toggle); // /timestamp
TogglePlayerAudioMsg(playerid, toggle); // /audiomsg
QuitPlayer(playerid); // /quit
TogglePlayerFirstPerson(playerid, toggle);
TogglePlayerIronFist(playerid, toggle);
TogglePlayerInfiniteRun(playerid, toggle);
SetPlayerMapMarkPos(playerid,?Float:x, Float:y,?Float:z); //Red mark on map
GetPlayerMapMarkPos(playerid,?&Float:x,?&Float:y,?&Float:z);
GetPlayerBreathBar(playerid, &Float:amount); //Blue bar that appears on breathing underwater (idk what to name this func)
TogglePlayerSeaWaves(playerid, toggle); //Toggle 0 = The sea does not wave and the water?are smooth
Damage:
PHP Code: OnPlayerTakeDamage(...);
OnPlayerGiveDamage(...);
- If returns 0, prevent player from health loss.
- Add new weaponid supports: WEAPON_HYDRA, WEAPON_HUNTER, WEAPON_SEASPAROW, WEAPON_BARRON, WEAPON_RUSTLER.
-?It would be nice to add all weapon-config?functions like SetWeaponDamage() to omp.
- If the player jumps from a height and dies , return last player who damage him. (On OnPlayerDeath)
Player HUD:
PHP Code: - Change game hud?position:
HUD_HealthPos(playerid, Float:X, Float:Y);
HUD_ArmourPos(playerid, Float:X, Float:Y);
HUD_BreathBarPos(playerid, Float:X, Float:Y);
HUD_WantedPos(playerid, Float:X, Float:Y);
HUD_MoneyPos(playerid, Float:X, Float:Y);
HUD_TimePos(playerid, Float:X, Float:Y);
HUD_WeaponPos(playerid, Float:X, Float:Y);
HUD_MiniMapPos(playerid,?Float:X, Float:Y);
- Show/Hide game hud:
HUD_HealthToggle(playerid, toggle);
HUD_ArmourToggle(playerid, toggle);
HUD_BreathBarToggle(playerid, toggle);
HUD_WantedToggle(playerid, toggle);
HUD_MoneyToggle(playerid, toggle);
HUD_TimeToggle(playerid, toggle);
HUD_WeaponToggle(playerid, toggle);
HUD_MiniMapToggle(playerid, toggle);
Audio Stream:
PHP Code: PlayAudioStreamForPlayerEx(playerid, url[], play_from_second = 0,?Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0); //Play audio from a specific second
PauseAudioStreamForPlayer(playerid);
ResumeAudioStreamForPlayer(playerid);
UpdateAudioStreamPosForPlayer(playerid, Float:posX = 0.0,?Float:posY?= 0.0, Float:posZ = 0.0); //If positions is 0.0?consider to player pos
GetPlayerAudioStreamUrl(playerid, &dest[], len = sizeof dest);
GetPlayerAudioStreamCurrentTime(playerid);?//Return in seconds
GetPlayerAudioStreamPos(playerid, &Float:posX, &Float:posY, &Float:posZ);
GetPlayerAudioStreamDistance(playerid, &Float:distance);
IsPlayerAudioStreamPaused(playerid);
GetAudioStreamUrlLength(url[]);?//Return in seconds
Vehicles:
PHP Code: ToggleVehicleInvulnerable(vehicleid, toggle);
SetVehicleSpeed(vehicleid, Float:speed);
Float:GetVehicleSpeed(vehicleid);
ToggleVehicleShoot(vehicleid, toggle); //Disable Hydra/Hunter/Rustler/SeaSparrow shooting
ToggleVehicleLightBars(vehicleid, toggle); //Police vehicles or Ambulance vehicles?
ToggleVehicleBlowFuelTank(vehicleid, toggle); //In gta sa offline you able to blow vehicle?by shooting at fuel tank.
FlipVehicle(vehicleid); //new Float:angle;?GetVehicleZAngle(vehicleid, angle),?SetVehicleZAngle(vehicleid, angle);
Actors:
PHP Code: SetActorArmedWeapon(actorid, weaponid);
GetActorArmedWeapon(actorid);
Validation:PHP Code: IsValidWeaponID(weaponid);
IsValidVehicleModel(modelid);
IsPositionInWater(Float: x, Float: y, Float: z);
IsVehicleOverturned(vehicleid);
IsPlayerAFK(playerid); //or IsPlayerPaused(playerid);
IsPlayerWalking(playerid); //W ALT
IsPlayerRunning(playerid); //W Space
IsPlayerStanding(playerid);
IsPlayerInvulnerable(playerid);
IsVehicleInvulnerable(vehicleid);
Strings:
PHP Code: IsNumeric(string[]);
IsDigit(string[]);
IsSpace(string[]);
IsLower(string[]);
IsUpper(string[]);
StrReplace(oldvalue[], newvalue[], &dest[], len = sizeof dest);
StrCpy(dest[], source[]);
StrCapitalize(string[], &dest[], len = sizeof dest); //First character to upper case
Server:
PHP Code: GetServerIP(); //Server?public IP address
GetServerPing();
Socket:
PHP Code: - Add TCP & UDP connections and functions.
Fixes:
PHP Code: - RemoveBuildingForPlayer(...); // It crashes game if number of removes is above 1000
- Enable tear gas coughing effect/anim. Also return amount of damage in OnPlayerTakeDamage.
- When a vehicle dies then respawned the ID was change. ID should not change.
- Head bleeding with headshot, animation deleted from sa-mp. Return it.
- OnPlayerWeaponShoot(...); //Doesn't work in lagcompmode 0
- When player press TAB key the server textdraws are hide.
Telegram: t.me/adib_yg
Discord: Adib#5980
|
|
|
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]](https://media.discordapp.net/attachments/972133317199663104/972134081884201110/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) ...
|
|
|
|