| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 7,686
» Latest member: redaj6889
» Forum threads: 2,350
» Forum posts: 12,293
Full Statistics
|
| Online Users |
There are currently 282 online users. » 0 Member(s) | 278 Guest(s) Bing, Google, Baidu, DuckDuckGo
|
|
|
| [DA-RP: Dark Ages: Medieval Roleplay] Winter Update! |
|
Posted by: Wolfgang - 2021-03-10, 04:49 PM - Forum: Videos and Screenshots
- Replies (1)
|
 |
"Audio Streaming"
Quote:? A novel audio system was implemented to enrichen the ambientance and server's atmosphere
? In-game audio streams were severely limited because they couldn't support more than one audio playing simultaneously and there was no 3D spatialization based on player position.
? In this new system the player opens a webpage which automatically connects to the server through a socket; this possibilitates multiple overlapping audio streams with 3D responsiveness (i.e if a player gets closer to a sound source the audio gets increasingly louder).
? For those curious about the technicalities: it was made using the howler.JS API on the frontend and a websocket server on node.js, which is responsible to track and coordinate all sounds broadcasted in-game to each client.
"Look At"
[Video: https://www.youtube.com/watch?v=NV5NOvypqz0]
Quote:? Since the minimap is hidden and there are no player blips it makes it harder to locate points of interest; although this is softened with the new audio system, a "look at" framework was implemented to let characters know the general direction of a certain source of sound.
"Hunting"
Quote:? This system has left the experimental stage and was developed further; there was progress in adding classes of animals (aerial &?terrestrial).
? A per-animal loot system was implemented (different animals have a base loot preset with item type & drop probability).
? Projectiles can be used to hunt animals (once sheets are fully implemented hunting will follow WOD mechanics automatically).
|
|
|
|
| INI Help |
|
Posted by: Fiame - 2021-03-10, 04:23 PM - Forum: Pawn Scripting
- No Replies
|
 |
Hello. Can You guys help me? I am tring to make command like top10. In that command it should be: Name: (player name) Kills: (player kills),
If someone can send me basic code i am going to be very gratefull. Thank you!
|
|
|
|
| SetObjectMaterial() weird |
|
Posted by: gokuta - 2021-03-09, 10:31 AM - Forum: Pawn Scripting
- Replies (8)
|
 |
okay, I use this:?
Code: new objectid = CreateObject(3174, 1345.0, -1400.0, 14.0, 0.0, 0.0, 0.0, 150.0);
SetObjectMaterial(objectid, 0, -1, "none", "none", 0xFFFFFFFF);
This line does almost nothing, it only removes vertex lightning. That's all. The problem is... draw distance suffers!!! I mean my object disappears quickly and abruptly at distance 150.0. First of all... no nice transitions, it disappears fast?and looks horrible.?Second of all... my personal draw distance settings are disregarded now.
Is it some undocumented?SetObjectMaterial flaw that cannot be fixed? How do I use?SetObjectMaterial without fucking up draw distance of my objects?
|
|
|
|
| Hooks Problem |
|
Posted by: Kodokushi - 2021-03-08, 09:55 PM - Forum: Pawn Scripting
- Replies (2)
|
 |
Hi
I'm having a problem where a callback is not called in the modules (I'm using y_hooks). Using hooks with native callbacks this doesn't happen.
Code: // GAMEMODE
forward OnPlayerChangeJob(playerid, pJob);
public OnPlayerChangeJob(playerid, pJob) {
}
OnPlayerChangeJob(playerid, pJob);
// MODULES
hook OnPlayerChangeJob(playerid, pJob) {
? ? SendClientMessage(playerid, -1, "CALLED!");
? ? return true;
}
|
|
|
|
MySQL Question |
|
Posted by: kalEd - 2021-03-08, 02:34 PM - Forum: Pawn Scripting
- Replies (4)
|
 |
What is the most efficient and optimized method to save data in the database?
For example this?:
Code: new gQuery[ 256?]; //at the beginning of the gamemode
//in a function=>
gQuery[ 0 ] = EOS;
mysql_format( handle, gQuery, sizeof gQuery, "INSERT INTO `logs` (`Player`, `IP`) VALUES ('%e', '%s')", getName( playerid ), getPlayerIp( playerid ) );
mysql_tquery( handle, gQuery, "", "" );
or this?:
Code: new Query[ 90 ];
mysql_format( handle, Query, sizeof Query, "INSERT INTO `logs` (`Player`, `IP`) VALUES ('%e', '%s')", getName( playerid ), getPlayerIp( playerid ) );
mysql_tquery( handle, Query, "", "" );
What exactly does gQuery[0] = EOS; mean? What's the difference?
|
|
|
|
Script performance testing |
|
Posted by: kalEd - 2021-03-08, 10:02 AM - Forum: Support
- Replies (5)
|
 |
How can I detect how fast a function is running using gettickcount??If anyone can give me an example, or if you know another method.
|
|
|
|
| samp-server-info-obtainer |
|
Posted by: KyroKun - 2021-03-07, 11:32 PM - Forum: Libraries
- Replies (3)
|
 |
https://github.com/kyro95/samp-server-info-obtainer
??? samp-server-obtainer ? A simple library made in typescript for obtaining your samp server info
Example:
Code: import sampServer from "./path";
async function doTest() {
const test = await sampServer.retriveInfo({
ip: "",
port: 7777
}, "i");
console.log(test);
}
doTest();
// Prints out an object which contains the samp server info submitted.
|
|
|
|
|