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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 6,513
» Latest member: Young Harmoni
» Forum threads: 2,235
» Forum posts: 12,037

Full Statistics

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

Latest Threads
High-Precision Laser Weld...
Forum: General Discussions
Last Post: Young Harmoni
1 hour ago
» Replies: 0
» Views: 4
Interesting
Forum: Chat
Last Post: Gerty23461
4 hours ago
» Replies: 1
» Views: 7
I humor myself
Forum: Programming
Last Post: nami16504
Yesterday, 04:28 PM
» Replies: 5
» Views: 8,055
Command does not work in-...
Forum: Pawn Scripting
Last Post: PANZEHIR_
2024-11-23, 06:36 PM
» Replies: 0
» Views: 43
White Screen
Forum: Support
Last Post: Phat202146_real
2024-11-21, 02:50 PM
» Replies: 0
» Views: 44
I get error 021 using y_h...
Forum: Pawn Scripting
Last Post: daniscript18
2024-11-18, 11:34 PM
» Replies: 0
» Views: 61
Il reste des français sur...
Forum: French/Fran?ais
Last Post: tysanio
2024-11-18, 05:39 AM
» Replies: 2
» Views: 474
Object creation issues
Forum: Programming
Last Post: K1271
2024-11-15, 11:51 PM
» Replies: 0
» Views: 56
Is the SAMP Hosting the s...
Forum: General Discussions
Last Post: OperaGX
2024-11-14, 09:33 PM
» Replies: 0
» Views: 77
Run time error 19: "File ...
Forum: Pawn Scripting
Last Post: Rexey
2024-11-14, 03:50 AM
» Replies: 0
» Views: 65

 
Thumbs Up Life of San Andreas
Posted by: N1ko - 2020-09-26, 09:49 PM - Forum: Gamemodes - Replies (3)

Here I give you a script what maybe one or the other needs it was from a large server at that time but which has no future today and it is already going around on the internet, the founder of the server at the time gave it up later because he doesn't see any future in it and since almost everyone has it anyway, I looked for the link and post it here for you ;)

maybe one or the other can do something with it, everything should be in the package and that so big is because everything is there and the database is full.





Download: https://mega.nz/file/zJhhAK5J#iB-x_tMzsa...e1rkoUm7V8


  Forum SAMP and SAMP Wiki Closed?
Posted by: Celsius - 2020-09-26, 06:03 PM - Forum: Chat - Replies (28)

We can't reach samp forums and samp wiki. Has samp forums and samp wiki closed?


Heart Indonesia
Posted by: syahily29 - 2020-09-26, 01:55 PM - Forum: Other - Replies (5)

Hello Yang Dari Indonesia

Salam Kenal


  Possible to replace this code into Y_INI ?
Posted by: mems - 2020-09-26, 12:38 PM - Forum: Pawn Scripting - Replies (6)

hello,



i couldn't connect to forum.sa-mp.com for a question i wanted to post, and i searched on why it's removed or something, until i found out that this forum is similar to forum.sa-mp.com, if not the same. anyways, to the question. is it possible to replace the following code into Y_INI ? cbug, time/name related.



PHP Code:
//=============================| CBUG System |================================//

? ? if(matching[playerid] ==&& GetPlayerWeapon(playerid) == 24)

? ? {

? ? ? ? new 
playerammo GetPlayerAmmo(playerid);

new 
pname[MAX_PLAYER_NAME];

GetPlayerName(playeridpnameMAX_PLAYER_NAME);

? ? ? ? if(
playerammo != ammo[playerid])

? ? ? ? {

? ? ? ? ? ? 
ammo[playerid]=playerammo;

? ? ? ? ? ? if(
ammo[playerid]== 6) return ptickcount[playerid] = GetTickCount();

? ? ? ? ? ? if(
ammo[playerid]== 0)

? ? ? ? ? ? {

? ? ? ? ? ? ? ? 
ammo[playerid] =-1;

? ? ? ? ? ? ? ? 
matching[playerid] =0;

? ? ? ? ? ? ? ? new 
string[32];

? ? ? ? ? ? ? ? new 
time GetTickCount()-ptickcount[playerid];

? ? ? ? ? ? ? ? 
format(stringsizeof(string),"Time: %s seconds (/records)"Comma(time));

? ? ? ? ? ? ? ? 
SendClientMessage(playeridCOLOR_WHITEstring);

? ? ? ? ? ? ? ? 
SetPlayerPos(playeridpx[playerid], py[playerid], pz[playerid]);

? ? ? ? ? ? ? ? for(new 
j=0j<11jGivePlayerWeapon(playeridWeapons[playerid][j], Ammo[playerid][j]);

? ? ? ? ? ? ? ? if(
top1 == -1)

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? 
top1 time;

? ? ? ? ? ? ? ? ? ? 
format(topname1sizeof(topname1), "%s"pname);

? ? ? ? ? ? ? ? ? ? return 
1;

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? else if(
time top1)

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? 
top5 top4;

? ? ? ? ? ? ? ? ? ? 
top4 top3;

? ? ? ? ? ? ? ? ? ? 
top3 top2;

? ? ? ? ? ? ? ? ? ? 
top2 top1;

? ? ? ? ? ? ? ? ? ? 
top1 time;

? ? ? ? ? ? ? ? ? ? 
format(topname5sizeof(topname5), "%s"topname4);

? ? ? ? ? ? ? ? ? ? 
format(topname4sizeof(topname4), "%s"topname3);

? ? ? ? ? ? ? ? ? ? 
format(topname3sizeof(topname3), "%s"topname2);

? ? ? ? ? ? ? ? ? ? 
format(topname2sizeof(topname2), "%s"topname1);

? ? ? ? ? ? ? ? ? ? 
format(topname1sizeof(topname1), "%s"pname);

? ? ? ? ? ? ? ? ? ? return 
1;

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? else if(
top2 == -1)

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? 
top2 time;

? ? ? ? ? ? ? ? ? ? 
format(topname2sizeof(topname2), "%s"pname);

? ? ? ? ? ? ? ? ? ? return 
1;

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? else if(
time top2)

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? 
top5 top4;

? ? ? ? ? ? ? ? ? ? 
top4 top3;

? ? ? ? ? ? ? ? ? ? 
top3 top2;

? ? ? ? ? ? ? ? ? ? 
top2 time;

? ? ? ? ? ? ? ? ? ? 
format(topname5sizeof(topname5), "%s"topname4);

? ? ? ? ? ? ? ? ? ? 
format(topname4sizeof(topname4), "%s"topname3);

? ? ? ? ? ? ? ? ? ? 
format(topname3sizeof(topname3), "%s"topname2);

? ? ? ? ? ? ? ? ? ? 
format(topname2sizeof(topname2), "%s"pname);

? ? ? ? ? ? ? ? ? ? return 
1;

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? else if(
top3 == -1)

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? 
top3 time;

? ? ? ? ? ? ? ? ? ? 
topname3 pname;

? ? ? ? ? ? ? ? ? ? return 
1;

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? else if(
time top3)

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? 
top5 top4;

? ? ? ? ? ? ? ? ? ? 
top4 top3;

? ? ? ? ? ? ? ? ? ? 
top3 time;

? ? ? ? ? ? ? ? ? ? 
format(topname5sizeof(topname5), "%s"topname4);

? ? ? ? ? ? ? ? ? ? 
format(topname4sizeof(topname4), "%s"topname3);

? ? ? ? ? ? ? ? ? ? 
format(topname3sizeof(topname3), "%s"pname);

? ? ? ? ? ? ? ? ? ? return 
1;

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? else if(
top4 == -1)

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? 
top4 time;

? ? ? ? ? ? ? ? ? ? 
format(topname4sizeof(topname4), "%s"pname);

? ? ? ? ? ? ? ? ? ? return 
1;

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? else if(
time top4)

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? 
top5 top4;

? ? ? ? ? ? ? ? ? ? 
top4 =time;

? ? ? ? ? ? ? ? ? ? 
format(topname5sizeof(topname5), "%s"topname4);

? ? ? ? ? ? ? ? ? ? 
format(topname4sizeof(topname4), "%s"pname);

? ? ? ? ? ? ? ? ? ? return 
1;

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? else if(
top5 == -1)

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? 
top5 time;

? ? ? ? ? ? ? ? ? ? 
format(topname5sizeof(topname5), "%s"pname);

? ? ? ? ? ? ? ? ? ? return 
1;

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? else if(
time top5)

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? 
top5 time;

? ? ? ? ? ? ? ? ? ? 
format(topname5sizeof(topname5), "%s"pname);

? ? ? ? ? ? ? ? ? ? return 
1;

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? return 
1;

}

? ? ? ? }

? ? }

//============================================================================//

return 1;







if you'd like any other information, please tell me.


  Misc Aviation Tools and Auto-Pilot for SA-MP!
Posted by: Southclaws - 2020-09-25, 01:58 PM - Forum: Libraries - Replies (4)

Hey all!



I've been out of writing code for a while and out of SA-MP related code for a long while so I started a little side project for fun recently.



A basic pitch-based altitude and roll-based heading autopilot for SA-MP.



Based on real autopilot behaviour with some adjustments made for the simple physics of San Andreas.



It's slowly turning into a library of functions for you to be able to build your own auto-pilot and aircraft control systems but for now it's mostly just a test.pwn with a bunch of spaghetti code inside!



Check out the GitHub link for an overview of how it works:



https://github.com/Southclaws/samp-aviation



And, I've been developing this live on the Discord so if you want to follow along with new additions (such as VOR course following, ILS approach and landing, procedure turns and other real-life aviation stuff implemented into a 15 year old game) be sure to join the discord and watch out for my live streams!


  X_EnEx (Interior Entrance Creator) v1.0
Posted by: XoMoX - 2020-09-17, 11:04 AM - Forum: Libraries - Replies (3)

X_EnEx by XomoX

Introduction


I'll keep this short and simple,

This is like an interior Entrance and Exit like in Crazybob's and other servers



Download:?https://github.com/CnRXoMoX/X_Enex



Creating Entrance and Exit

Code:
// Note: That the angle plays an important role here you need to be in the right angle before using /save



Enex_Create(entX, entY, entZ, entAng, exiX, exiY, exiZ, exiAng, worldid, interiorid);



Functions

Code:
Enex_SetIcon(id, iconid)

Enex_SetName(id, const name[]);

Enex_PlayerIn(playerid);

Enex_EnableFreeze(id, bool:status);

Enex_Disable(id, bool:status); // Note that this disables only the id of the EnEx you want to disable


Star Population Sync
Posted by: Sasino97 - 2020-09-09, 11:49 PM - Forum: Questions and Suggestions - Replies (8)

Population Sync



I am not sure whether this has been suggested before, however after a quick forum search I didn't find anything like this.



It would just be a great thing?to have the default?San Andreas population while playing online!







How would it work?



Every client will just let the GTA:SA default population spawning logic be, and for each ped that is spawned by it, sync it with the server. When two clients?are close to each-other, an algorithm selects the client in charge to sync the population. The peds will also be automatically transferable from a client to another based on latency and other variables.?



Basically, the client with the best conditions?(I will call it master) creates the peds, gets their info (skin, position, speed, animations, weapons, and everything), and sends that info to the server.



The other clients (I will call them?slaves) will simply get this data from the server, and create simple peds that don't follow the logic of their own game, but instead, use the received data. Every single ped will have a unique id on the server.?



In the case of ped driving vehicles, every time the client generates a vehicle for a ped to drive, it will inform the server, which will then keep track of that vehicle until the ped despawns.







TL;DR Basically, like in FiveM.







Server functions and callbacks



Notice: This is just a prototype, and functions might be incorrect?(e.g. I didn't use output/reference?params nor return tags?to simplify reading).



Code:
// enable or disable the feature altogether (if disabled, peds will not be generated by the clients'?games)



TogglePopulation(bool:toggle);







// sets the density multiplier?of population for all players



// 1.0 = default (1x)



SetPopulationDensity(Float:density);







// given a certain client, gets all the peds that are streamed in for it



GetPlayerStreamedPeds(playerid);







// given a certain client, gets all the peds that are being controlled by it



GetPlayerOwnedPeds(playerid);







// will get all peds that are known to the server



GetAllPeds();



// returns whether a ped is valid

IsValidPed(Ped:ped);



// gets a ped's owner (player)

GetPedOwner(Ped:ped);



// gets the ped pool's?size

GetPedPoolSize();







// gets a ped's position



GetPedPosition(Ped:ped);



// gets a ped's facing angle

GetPedFacingAngle(Ped:ped);







// gets a ped's vehicle



GetPedVehicleId(Ped:ped);



// gets the ped's current weapon

GetPedWeapon(Ped:ped);



// returns whether a certain ped is streamed-in (visible) for a certain player

IsPedStreamedIn(Ped:ped, playerid);



// gets a ped's skin model

GetPedSkin(Ped:ped);



// gets a ped's interior

GetPedInterior(Ped:ped);



// gets a ped's health

GetPedHealth(Ped:ped);



// gets a ped's body armor

GetPedArmour(Ped:ped);



// gets a ped's [url=https://www.grandtheftwiki.com/Ped_Type]type[/url]

// eg:?CIVMALE or?COP

// could be used to check whether a ped is a cop for example

GetPedType(Ped:ped);



// gets a ped's [url=https://gtamods.com/wiki/Pedstats.dat]stats[/url]

// eg:?STAT_TOUGH_GUY or?STAT_TAXIDRIVER

GetPedStats(Ped:ped);



// gets a ped's vehicle id

GetPedVehicleId(Ped:ped);



// gets a ped's velocity

GetPedVelocity(Ped:ped);



// gets a ped's weapon skill level

GetPedSkillLevel(Ped:ped, skill);



// gets a ped's current animation index

GetPedAnimationIndex(Ped:ped);







//-------------- callbacks ---------------



// called when a ped was created/spawned

// creatorid is the player that synced the ped for the first time

// in a subsequent step, that ped's ownership?may have been transferred to another player

OnPedSpawn(Ped:ped, creatorid);



// called when a ped has died

// killerType is either "ped" or "player" (or none), and killerid contains the id of one of those two entities

OnPedDeath(Ped:ped, killerType, killerid, reason);



// called when a ped enters a vehicle

OnPedEnterVehicle(Ped:ped, vehicleid);



// called when a ped exits a vehicle

OnPedExitVehicle(Ped:ped, vehicleid);



// called when a ped is streamed in for a player

OnPedStreamIn(Ped:ped, forplayerid);



// called when a ped is streamed out?for a player

OnPedStreamOut(Ped:ped, forplayerid);



// called when a ped gives damage to another ped or player

OnPedGiveDamage(Ped:ped, damagedType, damagedId, Float: amount, weaponid, bodypart);



// called when a ped gives damage to another ped or player

OnPedTakeDamage(Ped:ped, issuerType, issuerid, Float: amount, weaponid, bodypart);





That's pretty much everything that came to my mind at this moment. Of course more functions could be made.



What do you guys think of this suggestion? Think about how radically differents servers will be with population in them :)


Question Banned from Open.MP's Discord Server
Posted by: Zorono - 2020-09-03, 11:05 PM - Forum: Chat - Replies (3)

It'd be great if you unbanned me from Open.MP's Discord Server as I asked for unbanning more than 4 times through Discord's Direct-Messages but?I am getting rejected...



My Username#discriminator:?[BR]John_Magdy#8791

Reason i am banned: Sharing a link of Zyronix's leaked SAMP source code the discord server...(I just thought it might help someone!)


  People who have one of the Nvidia's 2000 GPUs, how do you feel about the 3000 series?
Posted by: EOussama - 2020-09-03, 11:14 AM - Forum: Tech - Replies (1)

A year ago I got a 2080ti and now that the prices for the new generation of Nvidia GPUs have dropped it feels suffocating.?

I guess I'll have to skip on the 3000 series hype train and wait for the next generation.


Lightbulb PopupMessageTD
Posted by: Logan - 2020-08-31, 06:45 PM - Forum: Libraries - Replies (4)

Greetings dear Burgershot members.



Intro



I made this simple, yet effective?include a year ago?ago for server I was scripting, it is very useful as an SendClientMessage Textdraw alternative, for "non-relevant" messages like errors etc that pile up player's chatbox unecessary. It is located in bottom center of the screen, and it is very appropriate for notifications.



How to install it/implement it?



It depends if you're using modular/non-modular style of coding on your gamemode.?If you're using modular, just #include it?into your main gamemode file. Else, just paste it somewhere on top of your script where you defined public functions/stocks/etc. From functions in your GM, if you want to use it, there are only TWO important functions, the others are used internally in module:

Code:
SendMessage(playerid, MESSAGE_TYPE = MESSAGE_TYPE_NONE, message[])



SendFormatMessage(playerid, MESSAGE_TYPE = MESSAGE_TYPE_NONE, const message[],? va_args<>)



How it works/what does it do?



Very simple. It breaks strings passed into message string longer than 100 chars. You can find out the rest by looking at the code. It also automatically determines average reading time for passed string, depending on char count and number of words.

Download:



PopupMessageTD?- Pastebin.com link



Hope you like it. Greetings, Logan