Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 219 online users. » 1 Member(s) | 216 Guest(s) Google, Bing, Rintos
|
Latest Threads |
Desolation Roleplay
Forum: Gamemodes
Last Post: Nikore
2 hours ago
» Replies: 2
» Views: 4,513
|
Battlefields - TDM (Team ...
Forum: Gamemodes
Last Post: Nikore
4 hours ago
» Replies: 3
» Views: 2,779
|
I know Kalcor left the bu...
Forum: Questions and Suggestions
Last Post: shiftdapentas
Yesterday, 02:33 PM
» Replies: 3
» Views: 85
|
Will there be a higher pl...
Forum: General Discussions
Last Post: Armeat2005
Yesterday, 08:40 AM
» Replies: 0
» Views: 23
|
DOF2.1 (DOF2 Updated)
Forum: Libraries
Last Post: GracieStith
Yesterday, 04:51 AM
» Replies: 1
» Views: 863
|
Kontak Layanan CIMB Niaga...
Forum: Support
Last Post: bosquee9053
2025-04-20, 03:44 PM
» Replies: 0
» Views: 23
|
CS Bank DBS Customer Cent...
Forum: Chat
Last Post: bosquee9053
2025-04-20, 03:37 PM
» Replies: 0
» Views: 29
|
Sponsors and Donations
Forum: Questions and Suggestions
Last Post: NoxxeR
2025-04-20, 05:48 AM
» Replies: 0
» Views: 38
|
Best practices for conver...
Forum: Tech
Last Post: Mido
2025-04-19, 09:53 PM
» Replies: 1
» Views: 95
|
A simple suggestion as a ...
Forum: Questions and Suggestions
Last Post: Mido
2025-04-19, 09:47 PM
» Replies: 1
» Views: 46
|
|
|
Car Respawn |
Posted by: dondo - 2021-06-12, 01:07 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
Heyo,
qick question:?does anyone know how i can destroy a car after it explode??So that it wont respawn. ??
greetz,
dondo!
|
|
|
[Solved] Send a message on multiple lines [text length more than 144] |
Posted by: Radical - 2021-06-08, 01:05 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
I'm looking for that function, if the text length is more than 144 letters, Send it in two messages.
Thanks
SOLUTION:
(2021-06-09, 08:48 AM)Pinch Wrote: https://www.burgershot.gg/showthread.php?tid=748
I maked this function but it does not work as I wanted.?
This separates the word between strings 144
burgershot >>
burg ..
.. ershot
Code: SendClientMessageToAllEx(color, const text[]) {
? ? new
? ? ? ? message[144];
? ?
? ? strcat(message, text);
? ? new
? ? ? ? lentgh = strlen(message);
? ? if (lentgh >= 143) {
? ? ? ? new
? ? ? ? ? ? message_2[144];
? ? ? ? format(message_2, sizeof message_2, ".. %s", message[139]);
? ? ? ? strdel(message, 139, lentgh);
? ? ? ? strcat(message, " ..");
? ? ? ? SendClientMessageToAll(color, message);
? ? ? ? SendClientMessageToAll(color, message_2);
? ? } else
? ? ? ? SendClientMessageToAll(color, message);
? ? return 1;
}
|
|
|
[SUGGESTION] IPv6 support? |
Posted by: Jyottabyte - 2021-06-06, 10:39 AM - Forum: General Discussions
- Replies (1)
|
 |
I tried to add a random IPv6 address to 0.3.7?SA-MP client but it does not recognize the IP because ":" is detected as the port symbol, which is not the case in IPv6 addresses. I did not try with a hostname, but looks like IPv6 support isn't baked in.
Suggestion to consider adding IPv6 support to Open MP client.
|
|
|
In-Game teleport creation tool |
Posted by: BrycieBoi - 2021-06-06, 10:17 AM - Forum: Releases
- No Replies
|
 |
Hi, new member here.
Wrote a simple in-game teleport creation tool. Currently /savetele is not limited to admins, but this can be added easily.
How to use:
/savetele <name> : Saves a teleport location to scriptfiles/Custom Teles.
/teles : Displays a list dialog of all saved teleports. Selecting one will teleport the player to it's location (with vehicle if applicable).
/tele <name> : Teleports player to saved teleport with <name> (shortcut version of '/teles').
Dependencies:
Dini
zcmd
sscanf2
Installation:
1) Compile CustomTeleports.pwn and add CustomTeleports to filterscripts in server.cfg
2) Create a directory named 'Custom Teles' inside the scriptfiles directory
Download
Feel free to make any changes you like.
|
|
|
'inject' Modes to gta_sa/SA-MP?? |
Posted by: redex - 2021-06-06, 06:26 AM - Forum: Programming
- Replies (2)
|
 |
hi, i am working on a custom SA-MP launcher for my server, its an anti cheat now i want to do something more, i want to add some modes and stuff, like skins or other modes, now i want to it only load when user is opening gta_sa with my launcher, so i dont want to just put some stuff in game folder , how can i do something like injecting that files ? for example i just downloaded a mode that have 2 files , tff and dff (if i got that right) how can i inject this model files to game? or another example i just downloaded a radar mode, it said i should replace the IMG files to gta3.img , how can i do that ONLY when user opening game with launcher?
i seen this thing in other servers so i guess its possible, by the way i used C# for the launcher
|
|
|
QUESTION about MYSQL |
Posted by: redex - 2021-06-05, 11:35 AM - Forum: Pawn Scripting
- Replies (2)
|
 |
hi , i was wonder which one is better to use for getting player data from database when he logged-in , i have about user in my data base and i have to select user from this amount of users , currently i use something like this :
pInfo[playerid][score] = mysql_get ...
pInfo[playerid][skinid] = mysql_get ...
pInfo[playerid][money] = mysql_get ...
i mean i have 1 query per item! and i think this will make server LAG , should i get all items in a SELECT * query and then put them in variables? does it make any diffrent to avoid lag ? sorry i know my english is AWFUL but i guess i made my point!
|
|
|
Opinion on PVars |
Posted by: Pinch - 2021-06-05, 09:16 AM - Forum: Pawn Scripting
- Replies (3)
|
 |
Hi everyone, I've gotten bored so I started writing a gamemode for fun, I want it to be a RolePlay gamemode with all of the stuff (like the NG-RP) but I want it to be smooth on bigger player base too..
I ran some tests and those were the results
Code: Timing "PawnPlus list"...
Mean = 480.00ns
Mode = 475.00ns
Median = 477.00ns
Range = 5.00ns
Timing "Normal var"...
Mean = 200.00ns
Mode = 199.00ns
Median = 200.00ns
Range = 3.00ns
Timing "Pvar timings"...
Mean = 483.00ns
Mode = 481.00ns
Median = 483.00ns
Range = 4.00ns
The code I used:
Code: new List:pp_list[1000];
enum E_PLAYER_DATA {
E_PLAYER_SOME_VAR,
E_PLAYER_SOME_VAR_2,
E_PLAYER_SOME_VAR_3
};
new PlayerData[1000][E_PLAYER_DATA];
hook OnScriptInit()
{
for(new i = 0; i < 1000; ) {
pp_list[i] = list_new();
list_resize_var(pp_list[i], 3, VAR_NULL);
}
return Y_HOOKS_CONTINUE_RETURN_1;
}
public OnPlayerConnect(playerid)
{
wait_ms(5000);
print("A");
RUN_TIMING("PawnPlus list")
{
list_set(pp_list[playerid], 0, 10000000);
list_set(pp_list[playerid], 1, 10000000);
list_set(pp_list[playerid], 2, 10000000);
}
RUN_TIMING("Normal var")
{
PlayerData[playerid][E_PLAYER_SOME_VAR] = 10000000;
PlayerData[playerid][E_PLAYER_SOME_VAR_2] = 10000000;
PlayerData[playerid][E_PLAYER_SOME_VAR_3] = 10000000;
}
RUN_TIMING("Pvar timings")
{
SetPVarInt(playerid, "key1", 10000000);
SetPVarInt(playerid, "key2", 10000000);
SetPVarInt(playerid, "key3", 10000000);
}
return 1;
}
So, is it worth it?
Should I use PVars/PP lists? Does it even matter that much when the diff is 200ns?
|
|
|
|