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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,692
» Latest member: thomasjoe
» Forum threads: 2,353
» Forum posts: 12,300

Full Statistics

Online Users
There are currently 311 online users.
» 0 Member(s) | 307 Guest(s)
Google, Bing, Baidu, DuckDuckGo

Latest Threads
รวมเพื่อนใหม่ในย่านสมุทรป...
Forum: Chat
Last Post: thomasjoe
3 hours ago
» Replies: 0
» Views: 12
LS City Hall
Forum: Maps
Last Post: cosminupgaming
Yesterday, 04:22 PM
» Replies: 3
» Views: 2,640
Crime Base
Forum: Maps
Last Post: cosminupgaming
Yesterday, 04:19 PM
» Replies: 2
» Views: 1,240
GTA SA-MP Scripting: Issu...
Forum: General Discussions
Last Post: williamrhein
Yesterday, 10:16 AM
» Replies: 0
» Views: 25
is it worth creating a se...
Forum: General Discussions
Last Post: cosminupgaming
2025-11-11, 05:30 PM
» Replies: 13
» Views: 18,286
Looking for an English De...
Forum: General Discussions
Last Post: cosminupgaming
2025-11-11, 05:21 PM
» Replies: 2
» Views: 2,798
Awakeninga an old server.
Forum: Support
Last Post: drwnrbbt
2025-11-11, 02:26 PM
» Replies: 0
» Views: 28
Starting a RP Server
Forum: General Discussions
Last Post: JakeFalcone
2025-11-11, 01:58 AM
» Replies: 0
» Views: 40
Wanting to Start a RP Ser...
Forum: Chat
Last Post: JakeFalcone
2025-11-11, 01:56 AM
» Replies: 0
» Views: 45
Adding new vehicles and s...
Forum: Support
Last Post: HELLHOUND
2025-11-10, 10:49 PM
» Replies: 3
» Views: 915

 
  Help with safe box system
Posted by: JR_Junior - 2021-06-16, 09:49 PM - Forum: Pawn Scripting - Replies (8)

I'm trying to create a closed and open door safe box?system.

I would like to be able to create a safe box anywhere and automatically have the door positioned correctly.

Does anyone know the correct calculation for this?


PHP Code:
new safe =?CreateDynamicObject(19618414.470702537.359139.45900,? 0.000000.0000090.00000);
new 
door =?CreateDynamicObject(19619414.704012536.938489.45800,? 0.000000.0000090.00000); 

The function I intend to use:
PHP Code:
stock CreateSafeBox(Float:px,Float:py,Float:pz,Float:rz)
{
CreateDynamicObject(pxpypz0.00.0rz);//Safe
CreateDynamicObject(pxpypz0.00.0rz);//Door
return 1;


  Gate System
Posted by: Regicide - 2021-06-15, 11:44 PM - Forum: Pawn Scripting - Replies (1)

Okay so, for some reason when more than one gate loads it goes to shit the second gate moves to the position of the first gate, the third gate moves to the second gate position, and so on, why is this happening?

PHP Code:
enum _GateEnum
{
? ? 
GateID,
? ? 
Float:gate_place[4],
? ? 
Float:grX,
? ? 
Float:grY,
? ? 
Float:grZ,
? ?
GateFaction,
? ?
GateModel,
? ?
GateObject,
? ?
GateStatus


PHP Code:
new Gates[MAX_GATES][_GateEnum]; 

PHP Code:
new Iterator:server_gates<MAX_GATES>; 

PHP Code:
load_gates()
{
? ? 
inline LoadGates()
? ? {
? ? ? ? if(!
cache_num_rows())
? ? ? ? {
? ? ? ? ? ? 
printf("[MYSQL]: No Gate data found!");
? ? ? ? ? ? return 
0;
? ? ? ? }
? ? ? ? foreach (new 
Range(0cache_num_rows())) 
? ? ? ? {
? ? ? ? ? ? 
cache_get_value_int(i"id"Gates[i][GateID]);
? ? ? ? ? ? 
cache_get_value_float(i"x"Gates[i][gate_place][0]);
? ? ? ? ? ? 
cache_get_value_float(i"y"Gates[i][gate_place][1]);
? ? ? ? ? ? 
cache_get_value_float(i"z"Gates[i][gate_place][2]);

? ? ? ? ? ? 
cache_get_value_float(i"rx"Gates[i][grX]);
? ? ? ? ? ? 
cache_get_value_float(i"ry"Gates[i][grY]);
? ? ? ? ? ? 
cache_get_value_float(i"rz"Gates[i][grZ]);
? ? ? ? ? ? 
cache_get_value_int(i"faction"Gates[i][GateFaction]);
? ? ? ? ? ? 
cache_get_value_int(i"model"Gates[i][GateModel]);

? ? ? ? ? ? 
Gates[i][GateStatus] = 0;

? ? ? ? ? ? 
Gates[i][GateObject] = CreateObject(Gates[i][GateModel], Gates[i][gate_place][0], Gates[i][gate_place][1], Gates[i][gate_place][2], Gates[i][grX], Gates[i][grY], Gates[i][grZ], 300.0);

? ? ? ? ? ? 
Iter_Add(server_gatesi);
? ? ? ? }
? ? ? ? 
printf("%d gates loaded."i);
? ? ? ? return 
1;
? ? }
? ? 
MySQL_TQueryInline(g_SQLusing inline LoadGates"SELECT * FROM `server_gates`");
? ? return 
1;


PHP Code:
YCMD:gate(playeridparams[], help)
{
? ? foreach(new 
i:server_gates)
? ? {
? ? ? ? if(
IsPlayerInRangeOfPoint(playerid5Gates[i][gate_place][0], Gates[i][gate_place][1], Gates[i][gate_place][2]))
? ? ? ? {
? ? ? ? ? ? if(
user_faction[playerid] == Gates[i][GateFaction])
? ? ? ? ? ? {
? ? ? ? ? ? ? ? if(
Gates[i][GateStatus] == 0)
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? 
MoveObject(Gates[i][GateObject], Gates[i][gate_place][0], Gates[i][gate_place][1], Gates[i][gate_place][2] -7.03.0);
? ? ? ? ? ? ? ? ? ? 
Gates[i][GateStatus] = 1;
? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? else 
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? 
MoveObject(Gates[i][GateObject], Gates[i][gate_place][0], Gates[i][gate_place][1], Gates[i][gate_place][2], 3.0);
? ? ? ? ? ? ? ? ? ? 
Gates[i][GateStatus] = 0;
? ? ? ? ? ? ? ? }? 
? ? ? ? ? ? }
? ? ? ? ? ? else
? ? ? ? ? ? {
? ? ? ? ? ? ? ? 
SendClientMessage(playerid, -1"[SERVER] You don't have access to this gate!");
? ? ? ? ? ? }
? ? ? ? }
? ? ? ? else
? ? ? ? {
? ? ? ? ? ? 
SendClientMessage(playerid, -1"[SERVER]: You're not near any gate!");
? ? ? ? }
? ? }
? ? return 
1;


  Printing
Posted by: Fr0z3n - 2021-06-15, 06:08 PM - Forum: Pawn Scripting - Replies (4)

Hello, is it possible to print something in colors?



It would be so cool :)


  static const help
Posted by: Zow - 2021-06-15, 03:15 PM - Forum: Pawn Scripting - Replies (3)

https://fiddle.sa-mp.dev/CeramicDecisiveKronosaurus



Is it good to use?


  Map editor
Posted by: TheFlash - 2021-06-13, 05:47 AM - Forum: Support - No Replies

Hi there

I was trying to install ingame map editor plenty of times without any success may someone help me installing the ingame version? ill be so thankful for him


  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!


  Open.mp webpage unreachable?
Posted by: Lukas - 2021-06-10, 11:45 AM - Forum: Questions and Suggestions - Replies (1)

Hi, was it taken down? i can't enter it


  discord bot
Posted by: gzsamp - 2021-06-09, 07:52 PM - Forum: General Discussions - Replies (1)

some base or api to create a discord bot? that does not need connection to the gamemode, a dynamic configuration bot


  [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;

}


  Interior furniture in Burglary houses bug?
Posted by: JR_Junior - 2021-06-07, 06:06 PM - Forum: Questions and Suggestions - No Replies

I've been visiting the interiors of burglary houses and most of their furniture doesn't show up sometimes.?



Sometimes they appear, other times they don't and there's a gray warning message in the chat: Warning(s007): Exception 0xC0000005 at 0x593C6F.



Would this be a game bug or just samp? I'm using version 0.3DL.





[Image: Screenshot-41.png]



[Image: Screenshot-39.png]



[Image: Screenshot-40.png]