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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,025
» Latest member: hoang018a
» Forum threads: 2,350
» Forum posts: 12,237

Full Statistics

Online Users
There are currently 185 online users.
» 0 Member(s) | 182 Guest(s)
Bing, Google, Applebot

Latest Threads
I know Kalcor left the bu...
Forum: Questions and Suggestions
Last Post: shiftdapentas
11 hours ago
» Replies: 3
» Views: 85
Will there be a higher pl...
Forum: General Discussions
Last Post: Armeat2005
Yesterday, 08:40 AM
» Replies: 0
» Views: 22
DOF2.1 (DOF2 Updated)
Forum: Libraries
Last Post: GracieStith
Yesterday, 04:51 AM
» Replies: 1
» Views: 860
Kontak Layanan CIMB Niaga...
Forum: Support
Last Post: bosquee9053
2025-04-20, 03:44 PM
» Replies: 0
» Views: 22
CS Bank DBS Customer Cent...
Forum: Chat
Last Post: bosquee9053
2025-04-20, 03:37 PM
» Replies: 0
» Views: 26
Sponsors and Donations
Forum: Questions and Suggestions
Last Post: NoxxeR
2025-04-20, 05:48 AM
» Replies: 0
» Views: 37
Best practices for conver...
Forum: Tech
Last Post: Mido
2025-04-19, 09:53 PM
» Replies: 1
» Views: 89
A simple suggestion as a ...
Forum: Questions and Suggestions
Last Post: Mido
2025-04-19, 09:47 PM
» Replies: 1
» Views: 45
Steps to unlock Apple ID ...
Forum: Tech
Last Post: fubolink
2025-04-17, 03:50 PM
» Replies: 0
» Views: 41
What got you into SA-MP a...
Forum: Chat
Last Post: alecnia
2025-04-17, 01:17 AM
» Replies: 1
» Views: 158

 
  how to get the last digit of a player's IP
Posted by: mems - 2021-07-15, 09:38 PM - Forum: Pawn Scripting - Replies (16)

hello,



title simply says it all but i'm going to elaborate a bit. i'm trying to make an anti proxy system and so far it works. however i want to whitelist ips like 192.168.1.1 until 192.168.1.255. however, it seems like i dont know how, even though i tried so many times with different approaches such as strfind, strlen, strdel but these didnt help me out either probably because the way i did it didn't work. well here's the code:



Code:
forward httpResponse(playerid, response_code, data[]);

public httpResponse(playerid, response_code, data[])

{

    new name[MAX_PLAYERS], string[192], ipstring[64];

    new ip[16];

    GetPlayerName(playerid, name, sizeof(name));

    GetPlayerIp(playerid, ip, sizeof(ip));

    format(ipstring, sizeof(string), "192.168.1.%d", strlen(ip) - 13);

    if(strcmp(ip, "127.0.0.1", true) == 0 || strcmp(ip, ipstring, true) == 0)

    {

        printf("%s(%d) IP(%s) is a LAN type, therefore able to enter the server.", name, playerid, ip);

        return 1;

    }

    // If the site sends an OK message

    if(response_code == 200)

    {

        // If a player is using VPN

        if(data[0] == 'Y')

        {

            format(string, sizeof(string), "ANTI VPN: %s(%d) has been kicked from the server due to VPN usage.", name, playerid);

            SendClientMessageToAll(COLOR_RED, string);

            printf("%s(%d) IP(%s) is not legit, therefore not able to enter the server.", name, playerid, ip);

            //SetTimerEx("DelayKick", 100, false, "i", playerid);

        }

        // If not

        if(data[0] == 'N')

        {

            printf("%s(%d) IP(%s) is legit, therefore able to enter the server.", name, playerid, ip);

            // OnPlayerConnect welcome messages should handle this

        }

        // Failsafe. Should not trigger

        if(data[0] == 'X')

        {

            printf("From the site: Wrong IP format!");

        }

    } else {

        printf("The request failed! The response code was: %d", response_code);

    }

    return 1;

}



much appreciated if anyone could help, ive been trying to fix this issue for like hours.



edit: i could do it the worst way which is:
Code:
if(strcmp(ip, "192.168.1.1", true) == 0)
then 192.168.1.2 and so on but it sucks


Sad Weapon recoil
Posted by: Radical - 2021-07-15, 11:53 AM - Forum: Pawn Scripting - Replies (1)

It's possible to add recoil to weapons with sa-mp functions?


  The open.mp should be released
Posted by: NoxxeR - 2021-07-15, 10:03 AM - Forum: Questions and Suggestions - Replies (15)

Even though some people think open.mp will not be good, this thread for example: https://www.burgershot.gg/showthread.php?tid=464



I think the open.mp team should release a version, here is the reason:



Sa-mp is more stable than MTA, i've played mta years ago, and it crashes more than sa-mp.



Open-mp has backward compatibility, thats something awesome and good.



Sa-mp has more servers than MTA:SA and this should be released.



-



Hows the progress on open.mp? When will a release be expected? This game is so awesome, and its not getting old by days.





// NoxxeR


  Failed To Start Server
Posted by: RainG - 2021-07-15, 05:05 AM - Forum: Support - Replies (3)

Code:
SA-MP Dedicated Server

----------------------

v0.3.7-R2, (C)2005-2015 SA-MP Team



[12:55:14] filterscripts = ""? (string)

[15/07/2021 12:55:14]

[15/07/2021 12:55:14] Server Plugins

[15/07/2021 12:55:14] --------------

[15/07/2021 12:55:14]? Loading plugin: crashdetect

[15/07/2021 12:55:14]? crashdetect v4.8.3 is OK.

[15/07/2021 12:55:14]? Loaded.

[15/07/2021 12:55:14]? Loading plugin: socket

[15/07/2021 12:55:14]? Failed.

[15/07/2021 12:55:14]? Loading plugin: mysql

[15/07/2021 12:55:14]



? > MySQL plugin R5 successfully loaded.



[15/07/2021 12:55:14]? Loaded.

[15/07/2021 12:55:14]? Loading plugin: sscanf

[15/07/2021 12:55:14]



[15/07/2021 12:55:14]? ===============================



[15/07/2021 12:55:14]? ? ? sscanf plugin loaded.? ?



[15/07/2021 12:55:14]? ? ? ? ? Version:? 2.8.3? ? ? ?



[15/07/2021 12:55:14]? (c) 2018 Alex "Y_Less" Cole?



[15/07/2021 12:55:14]? ===============================



[15/07/2021 12:55:14]? Loaded.

[15/07/2021 12:55:14]? Loading plugin: streamer

[15/07/2021 12:55:14]



*** Streamer Plugin v2.9.5 by Incognito loaded ***



[15/07/2021 12:55:14]? Loaded.

[15/07/2021 12:55:14]? Loading plugin: Whirlpool

[15/07/2021 12:55:14]?

[15/07/2021 12:55:14]? ==================

[15/07/2021 12:55:14]?

[15/07/2021 12:55:14]? Whirlpool loaded

[15/07/2021 12:55:14]?

[15/07/2021 12:55:14]? ==================

[15/07/2021 12:55:14]?

[15/07/2021 12:55:14]? Loaded.

[15/07/2021 12:55:14]? Loaded 5 plugins.



[15/07/2021 12:55:14]

[15/07/2021 12:55:14] Filterscripts

[15/07/2021 12:55:14] ---------------

[15/07/2021 12:55:14]? Loaded 0 filterscripts.



[15/07/2021 12:55:14] AMX (45873712) loaded

[15/07/2021 12:55:14] [debug] Run time error 19: "File or function is not found"

[15/07/2021 12:55:14] [debug]? socket_sendto_remote_client

[15/07/2021 12:55:14] [debug]? socket_close_remote_client

[15/07/2021 12:55:14] [debug]? socket_create

[15/07/2021 12:55:14] [debug]? is_socket_valid

[15/07/2021 12:55:14] [debug]? socket_set_max_connections

[15/07/2021 12:55:14] [debug]? socket_listen

[15/07/2021 12:55:14] [debug]? socket_destroy

[15/07/2021 12:55:14] Script[gamemodes/MHRP.amx]: Run time error 19: "File or function is not found"

[15/07/2021 12:55:14] Number of vehicle models: 0



Code:
echo Executing Server Config...

lanmode 0

rcon_password yhRe53Y5hrS

maxplayers 200

port 7777

hostname Money Heist Roleplay

gamemode0 MHRP

filterscripts

plugins crashdetect socket mysql sscanf streamer Whirlpool

announce 0

query 1

weburl mh-roleplay.com

mapname San Andreas

language English

maxnpc 0

onfoot_rate 50

incar_rate 50

weapon_rate 50

stream_distance 200.0

stream_rate 2000

logtimeformat [%d/%m/%Y %H:%M:%S]

rcon 0


  The new sa-mp modification
Posted by: NoxxeR - 2021-07-13, 09:07 PM - Forum: General Discussions - Replies (4)

Hi everyone!



Since partyserver went down on sa-mp, people been playing other games, but what happend to sa-mp forums? They were gone as well.

Lots of people miss the old partyserver. Now this modification existed and is backwards compatible with sa-mp.



Then Open.mp came along, but I cant find the partyserver on this application either.

Will open.mp replace the old sa-mp client? Or what will happen? I just wanna understand since lots of players miss the old server.



It's the real noxxer, so I miss how we trolled back then in partyserver, we have had good times in the servers since 2008, trolling and having fun with the game.



I just need to understand what happend to partyserver and to this new sa-mp client?


  Sistema de ban textdraw
Posted by: Nikolay_Staggs - 2021-07-12, 05:41 AM - Forum: Filterscripts - No Replies

Es un simple sistema de Baneo



file:///C:/Users/pc/Documents/GTA%20San%20Andreas%20User%20Files/SAMP/screens/sa-mp-029.png

file:///C:/Users/pc/Documents/GTA%20San%20Andreas%20User%20Files/SAMP/screens/sa-mp-030.png

file:///C:/Users/pc/Documents/GTA%20San%20Andreas%20User%20Files/SAMP/screens/sa-mp-035.png

file:///C:/Users/pc/Documents/GTA%20San%20Andreas%20User%20Files/SAMP/screens/sa-mp-036.png

file:///C:/Users/pc/Documents/GTA%20San%20Andreas%20User%20Files/SAMP/screens/sa-mp-037.png



Code:



/* Cr?ditos Nikolay Staggs se puede modificar*/



#include <a_samp>

#include <dof2>

#include <zcmd>

#include <sscanf2>



#define BanPlayer "Bans/Player/%s.ini"



#define ban 1

main()

{

print("\n----------------------------------");

print(" Blank Gamemode by your name here");

print("----------------------------------\n");

}



new PlayerBaner[MAX_PLAYERS];

new PlayerBanerDays[MAX_PLAYERS];

new PlayerBanerRazon[MAX_PLAYERS][65];



new PlayerText:TextDraw_BAN_Player[MAX_PLAYERS][6];



CMD:ban(playerid, params[])

{

new razon[150], id, Days, Name[24], str[50];

if(sscanf(params, "iis[150]", id, Days, razon)) return SendClientMessage(playerid, -1, "USE: /ban [id] [dias] [razon]");

GetPlayerName(id, Name, sizeof(Name));

format(str, sizeof(str), BanPlayer, Name);



DOF2_CreateFile(str);

DOF2_SetInt(str, "Dias", gettime() (60*60*24*Days));

DOF2_SetInt(str, "Ban", ban);

DOF2_SetString(str, "Razon", razon);

DOF2_SaveFile();

PlayerBaner[id] = 1;



format(str, sizeof(str), "Fuiste baneado %i %s Razon %s", Days, Days == 1 ? ("dia") : ("dias"), razon);

SendClientMessage(id, -1, str);

return 1;

}



public OnFilterScriptInit()

{

print("\n--------------------------------------");

print(" Blank Filterscript by your name here");

print("--------------------------------------\n");

return 1;

}



public OnFilterScriptExit()

{

? ? DOF2_Exit();

return 1;

}



public OnPlayerConnect(playerid)

{

? ? CargarTextDraw(playerid);



new str[100], Name[24];

GetPlayerName(playerid, Name, sizeof(Name));

format(str, sizeof(str), BanPlayer, Name);

if(IsPlayer(playerid))

{

PlayerBanerDays[playerid] = DOF2_GetInt(str, "Dias");

if(gettime() >= PlayerBanerDays[playerid])

{

SendClientMessage(playerid, -1, "..................");

PlayerBaner[playerid] = 0;

DOF2_RemoveFile(str);

}

else

{

PlayerBaner[playerid] = DOF2_GetInt(str, "Ban");



if(PlayerBaner[playerid])

{

PlayerBanerDays[playerid] = DOF2_GetInt(str, "Dias");

strmid(PlayerBanerRazon[playerid],DOF2_GetString(str,"Razon"),0,strlen(DOF2_GetString(str,"Razon")),255);

new strs[128];

format(strs, sizeof strs, "te_ha_baneado~y~_razon~w~:~r~_%s_~w~%s", PlayerBanerRazon[playerid], ConvertTime(PlayerBanerDays[playerid] - gettime()));

PlayerTextDrawSetString(playerid, TextDraw_BAN_Player[playerid][5], strs);

PlayerTextDrawShow(playerid, TextDraw_BAN_Player[playerid][0]);

PlayerTextDrawShow(playerid, TextDraw_BAN_Player[playerid][1]);

PlayerTextDrawShow(playerid, TextDraw_BAN_Player[playerid][2]);

PlayerTextDrawShow(playerid, TextDraw_BAN_Player[playerid][3]);

PlayerTextDrawShow(playerid, TextDraw_BAN_Player[playerid][4]);

PlayerTextDrawShow(playerid, TextDraw_BAN_Player[playerid][5]);

SetTimerEx("TimerBan", 1000, true, "i", playerid);

}

}

}

return 1;

}





public OnPlayerSpawn(playerid)

{

return 1;

}



forward TimerBan(playerid);

public TimerBan(playerid)

{

? ? Kick(playerid);

return 1;

}



stock GetName(playerid)

{

new Name[MAX_PLAYER_NAME];

GetPlayerName(playerid, Name, MAX_PLAYER_NAME);

return Name;

}



stock IsPlayer(playerid)

{

new str[40],

Name[21];



GetPlayerName(playerid, Name, 21);



format(str, 40, BanPlayer, Name);



if(DOF2_FileExists(str)) return 1;

return 0;

}



stock ConvertTime(SEGUNDOS)

{

new MINUTOS_, HORAS_, DIAS_, String[200];



if(SEGUNDOS > 59)

{

MINUTOS_ = SEGUNDOS / 60;

SEGUNDOS = SEGUNDOS - MINUTOS_ * 60;

}

if(MINUTOS_ > 59)

{

HORAS_ = MINUTOS_ / 60;

MINUTOS_ = MINUTOS_ - HORAS_ * 60;

}

if(HORAS_ > 23)

{

DIAS_ = HORAS_ / 24;

HORAS_ = HORAS_ - DIAS_ * 24;

}



format(String, sizeof(String), "~y~Dias~w~:_%2d", DIAS_);

if(DIAS_ < 1) format(String, sizeof(String), "~y~Horas~w~:_%2d", HORAS_);

if(DIAS_ < 1 && HORAS_ < 1) format(String, sizeof(String), "~y~Minutos~w~:_%2d", MINUTOS_);

if(DIAS_ < 1 && HORAS_ < 1 && MINUTOS_ < 1) format(String, sizeof(String), "~y~Segundos~w~:_%2d", SEGUNDOS);



return String;

}



CargarTextDraw(playerid)

{

TextDraw_BAN_Player[playerid][0] = CreatePlayerTextDraw(playerid, 0.299992, -1.449999, "box");

PlayerTextDrawLetterSize(playerid, TextDraw_BAN_Player[playerid][0], 0.000000, 49.700000);

PlayerTextDrawTextSize(playerid, TextDraw_BAN_Player[playerid][0], 661.802734, 0.000000);

PlayerTextDrawAlignment(playerid, TextDraw_BAN_Player[playerid][0], 1);

PlayerTextDrawColor(playerid, TextDraw_BAN_Player[playerid][0], -1);

PlayerTextDrawUseBox(playerid, TextDraw_BAN_Player[playerid][0], 1);

PlayerTextDrawBoxColor(playerid, TextDraw_BAN_Player[playerid][0], 255);

PlayerTextDrawSetShadow(playerid, TextDraw_BAN_Player[playerid][0], 0);

PlayerTextDrawBackgroundColor(playerid, TextDraw_BAN_Player[playerid][0], 255);

PlayerTextDrawFont(playerid, TextDraw_BAN_Player[playerid][0], 1);

PlayerTextDrawSetProportional(playerid, TextDraw_BAN_Player[playerid][0], 0);



TextDraw_BAN_Player[playerid][1] = CreatePlayerTextDraw(playerid, 236.200103, 194.375000, "alerta");

PlayerTextDrawLetterSize(playerid, TextDraw_BAN_Player[playerid][1], 1.635500, 3.341249);

PlayerTextDrawTextSize(playerid, TextDraw_BAN_Player[playerid][1], 59.000000, 0.000000);

PlayerTextDrawAlignment(playerid, TextDraw_BAN_Player[playerid][1], 1);

PlayerTextDrawColor(playerid, TextDraw_BAN_Player[playerid][1], -5963521);

PlayerTextDrawSetShadow(playerid, TextDraw_BAN_Player[playerid][1], 0);

PlayerTextDrawBackgroundColor(playerid, TextDraw_BAN_Player[playerid][1], -5963521);

PlayerTextDrawFont(playerid, TextDraw_BAN_Player[playerid][1], 3);

PlayerTextDrawSetProportional(playerid, TextDraw_BAN_Player[playerid][1], 1);



TextDraw_BAN_Player[playerid][2] = CreatePlayerTextDraw(playerid, 327.100524, 240.775268, "el_equipo_de~y~_Radiation~w~_RP");

PlayerTextDrawLetterSize(playerid, TextDraw_BAN_Player[playerid][2], 0.209500, 0.401250);

PlayerTextDrawTextSize(playerid, TextDraw_BAN_Player[playerid][2], 0.000000, 561.000000);

PlayerTextDrawAlignment(playerid, TextDraw_BAN_Player[playerid][2], 2);

PlayerTextDrawColor(playerid, TextDraw_BAN_Player[playerid][2], -1);

PlayerTextDrawSetShadow(playerid, TextDraw_BAN_Player[playerid][2], 0);

PlayerTextDrawBackgroundColor(playerid, TextDraw_BAN_Player[playerid][2], 255);

PlayerTextDrawFont(playerid, TextDraw_BAN_Player[playerid][2], 2);

PlayerTextDrawSetProportional(playerid, TextDraw_BAN_Player[playerid][2], 1);



TextDraw_BAN_Player[playerid][3] = CreatePlayerTextDraw(playerid, 157.499603, 234.727783, "LD_SPAC:white");

PlayerTextDrawTextSize(playerid, TextDraw_BAN_Player[playerid][3], 341.000000, 1.000000);

PlayerTextDrawAlignment(playerid, TextDraw_BAN_Player[playerid][3], 1);

PlayerTextDrawColor(playerid, TextDraw_BAN_Player[playerid][3], -1);

PlayerTextDrawSetShadow(playerid, TextDraw_BAN_Player[playerid][3], 0);

PlayerTextDrawBackgroundColor(playerid, TextDraw_BAN_Player[playerid][3], 255);

PlayerTextDrawFont(playerid, TextDraw_BAN_Player[playerid][3], 4);

PlayerTextDrawSetProportional(playerid, TextDraw_BAN_Player[playerid][3], 0);



TextDraw_BAN_Player[playerid][4] = CreatePlayerTextDraw(playerid, 157.499603, 260.029327, "LD_SPAC:white");

PlayerTextDrawTextSize(playerid, TextDraw_BAN_Player[playerid][4], 341.000000, 1.000000);

PlayerTextDrawAlignment(playerid, TextDraw_BAN_Player[playerid][4], 1);

PlayerTextDrawColor(playerid, TextDraw_BAN_Player[playerid][4], -1);

PlayerTextDrawSetShadow(playerid, TextDraw_BAN_Player[playerid][4], 0);

PlayerTextDrawBackgroundColor(playerid, TextDraw_BAN_Player[playerid][4], 255);

PlayerTextDrawFont(playerid, TextDraw_BAN_Player[playerid][4], 4);

PlayerTextDrawSetProportional(playerid, TextDraw_BAN_Player[playerid][4], 0);



TextDraw_BAN_Player[playerid][5] = CreatePlayerTextDraw(playerid, 327.100524, 249.975830, "te_abaneado~y~_razon~w~:_por pendejo_Dias:~y~_9999");

PlayerTextDrawLetterSize(playerid, TextDraw_BAN_Player[playerid][5], 0.209500, 0.401250);

PlayerTextDrawTextSize(playerid, TextDraw_BAN_Player[playerid][5], 0.000000, 561.000000);

PlayerTextDrawAlignment(playerid, TextDraw_BAN_Player[playerid][5], 2);

PlayerTextDrawColor(playerid, TextDraw_BAN_Player[playerid][5], -1);

PlayerTextDrawSetShadow(playerid, TextDraw_BAN_Player[playerid][5], 0);

PlayerTextDrawBackgroundColor(playerid, TextDraw_BAN_Player[playerid][5], 255);

PlayerTextDrawFont(playerid, TextDraw_BAN_Player[playerid][5], 2);

PlayerTextDrawSetProportional(playerid, TextDraw_BAN_Player[playerid][5], 1);

return 1;

}


  CGEN_MEMORY problem
Posted by: Neckiysa - 2021-07-11, 01:26 AM - Forum: Pawn Scripting - Replies (2)

So, I just installed YSI and when I want to start my server I get this message like 50 times: "*** YSI Fatal Error: Out of code generation (CGen) space.? The current value of `CGEN_MEMORY` is `10000`, please recompile with a higher value (approximately 13342).". Now, I've read that I need to define CGEN_MEMORY to a bigger number but I don't know where. I've looked in y_ini and y_commands but I can't find it. When I try to define it in my main script I get an error that says I'm redefining it. Can somebody please tell me where I need to define CGEN_MEMORY? Thanks!


  samp-uuid-rs
Posted by: Carlos - 2021-07-10, 02:20 PM - Forum: Plugins - No Replies

samp-uuid-rs



[Image: sampctl-samp--uuid--rs-2f2f2f.svg?style=for-the-badge]



This library provides a UUID v4?generator function.



UUIDs are generally used for identifying information that needs to be unique within a system or network thereof. Their uniqueness and low probability in being repeated makes them useful for being associative keys in databases and identifiers for physical hardware within an organization.



Installation



Simply install to your project:



Code:
sampctl package install carlos-menezes/samp-uuid-rs



Include in your code and begin using the library:



Quote:

#include <uuid>




Usage



Code:
new dest[UUID_LEN];

UUID(dest);

printf("%s", dest); // xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx



Build



To build, run:



Code:
make build



Testing



To test, run:



Code:
make test


  Samp Voice Crashing the server
Posted by: robertjwx - 2021-07-10, 01:01 AM - Forum: Support - Replies (1)

Now with the samp voice plugin, a lot players is asking me to put this plugin to work in my server...
I put it to run in my server (running in a VPS), but it is crashing the server and closing everything...
Is anybody here had some problems like this?


server_log logs:

Code:
[13:43:34] [connection] incoming connection: PLAYER_IP:60365 id: 0
[13:44:22] [connection] incoming connection: PLAYER_IP:52750 id: 0
[13:44:29] [sv:dbg:network:connect] : connecting player (0) with address (PLAYER_IP) ...
[13:44:29] [sv:dbg:network:connect] : player (0) assigned key (f2b960b17e219403)
[13:44:29] [join] PLAYER_NAME has joined the server (0:PLAYER_IP)
[13:44:29] [sv:dbg:network:receive] : player (0) identified (port:60584)
[13:45:13] [sv:dbg:network:connect] : disconnecting player (0) ...
[13:45:13] [part] PLAYER_NAME has left the server (0:0)
[13:45:32] [connection] incoming connection: PLAYER_IP:49347 id: 0
[13:45:36] [sv:dbg:network:connect] : connecting player (0) with address (PLAYER_IP) ...
[13:45:36] [sv:dbg:network:connect] : player (0) assigned key (f2b960b1bd84cfcd)
[13:45:36] [join] PLAYER_NAME has joined the server (0:PLAYER_IP)
[13:45:37] [sv:dbg:network:receive] : player (0) identified (port:53049)
[13:46:07] [debug] Server crashed due to an unknown error
[13:46:07] [debug] Native backtrace:
[13:46:07] [debug] #0 f7344f7f in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () in plugins/crashdetect.so
[13:46:07] [debug] #1 f733d81d in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () in plugins/crashdetect.so
[13:46:07] [debug] #2 f733de48 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () in plugins/crashdetect.so
[13:46:07] [debug] #3 f733f5dc in _ZN11CrashDetect7OnCrashERKN2os7ContextE () in plugins/crashdetect.so
[13:46:07] [debug] #4 f734479f in ?? () in plugins/crashdetect.so
[13:46:07] [debug] #5 f7745cb0 in __kernel_rt_sigreturn () in linux-gate.so.1
[13:46:07] [debug] #6 0809621e in ?? () in ./samp03svr
[13:46:07] [debug] #7 f5c1372a in _ZN4Pawn34OnPlayerActivationKeyReleaseForAllEth () in plugins/sampvoice.so
[13:46:07] [debug] #8 c6f51400 in ?? ()
[13:46:07] [debug] Registers:
[13:46:07] [debug] EAX: 00000042 EBX: 39515816 ECX: 00000001 EDX: 09fe74b0
[13:46:07] [debug] ESI: 0a2eda80 EDI: 00000000 EBP: fff33fe8 ESP: fff33fe4
[13:46:07] [debug] EIP: 0809621e EFLAGS: 00010282
[13:46:07] [debug] Stack:
[13:46:07] [debug] ESP퍍㓓䴴: f5d29000 fff34018 f5c1372a 09fe74b0
[13:46:07] [debug] ESP퍍㓓䶴: f5ba451c 0a2edac0 00000042 f7755eeb
[13:46:07] [debug] ESP퍍㓓临: f775c5f0 f5c136bd f5d29000 fff34068
[13:46:07] [debug] ESP퍍㓓亴: 00000042 f5d29000 f5c19ab7 003d4ed5
[13:46:07] [debug] ESP퍍㓓伴: 0000a2b2 0b3bfba0 c6f51400 0977c1d0
[13:46:07] [debug] ESP퍍㓓䚴: 08159cf3 fff34098 080d1ce2 0979d488
[13:46:07] [debug] ESP퍍㓓䜴: 3bb04ab6 fff340c8 3bb04ab6 00000005
[13:46:07] [debug] ESP퍍㓓䞴: 2be6389d fff34208 080aa13a 0979d488
[13:46:07] [debug] ESP퍍㓓崴: 00000000 f77101d0 00000000 fff3410c
[13:46:07] [debug] ESP퍍㓓嶴: f775c5f0 f762138b 01003994 00010100
[13:46:07] [debug] ESP퍍㓓帴: 65646f6d f7003531 f7678910 f7711000
[13:46:07] [debug] ESP퍍㓓庴: f77121a0 08048b10 fff341b8 f776b000
[13:46:07] [debug] ESP퍍㓓弴: 00000000 00000000 00000000 00000000
[13:46:07] [debug] ESP퍍㓓嚴: 00000000 00000000 00000000 00000000
[13:46:07] [debug] ESP퍍㓓圴: 00000000 00000000 00000000 00000000
[13:46:07] [debug] ESP퍍㓓垴: 00000000 00000000 00000000 00000000
[13:46:07] [debug] ESP퍍㓓洴: 00000000 00000000 f739ea3b f75243dc
[13:46:07] [debug] ESP퍍㓓涴: f7524000 00000000 f7388286 00000001
[13:46:07] [debug] ESP퍍㓓渴: 00000000 f7524000 f776bc0c f776b000
[13:46:07] [debug] ESP퍍㓓溴: ba4d8b69 2dcd2778 00000000 00000000
[13:46:07] [debug] ESP퍍㓓漴: f775c5f0 f7388199 f776b000 00000001
[13:46:07] [debug] ESP퍍㓓暴: 00000001 fff342a4 08150650 08150640
[13:46:07] [debug] ESP퍍㓓朴: fff35e6e 00000000 fff35e7a fff35ead
[13:46:07] [debug] ESP퍍㓓枴: fff35efc fff35f1c fff35f2f fff35f43
[13:46:07] [debug] ESP퍍㓓紴: fff35f8f fff35fd1 fff35fdf 00000000
[13:46:07] [debug] ESP퍍㓓綴: 00000010 178bfbff 00000006 00001000
[13:46:07] [debug] ESP퍍㓓縴: 00000004 00000020 00000005 00000008
[13:46:07] [debug] ESP퍍㓓纴: 00000009 0804b4c0 0000000b 00000000
[13:46:07] [debug] ESP퍍㓓缴: 0000000e 00000000 00000017 00000000
[13:46:07] [debug] ESP퍍㓓皴: 0000000f fff343ab 00000000 00000000
[13:46:07] [debug] ESP퍍㓓眴: 901c7bff 6933cfe7 00363836 00000000
[13:46:07] [debug] ESP퍍㓓瞴: 00000000 00000000 00000000 00000000
[13:46:07] [debug] Loaded modules:
[13:46:07] [debug] 00000000 - 00187dc3 samp03svr
[13:46:07] [debug] f7745000 - f7745e2e linux-gate.so.1
[13:46:07] [debug] f7732000 - f77349c4 /lib/i386-linux-gnu/libdl.so.2
[13:46:07] [debug] f7715000 - f773075b /lib/i386-linux-gnu/libpthread.so.0
[13:46:07] [debug] f759b000 - f771ebbf /usr/lib/i386-linux-gnu/libstdc.so.6
[13:46:07] [debug] f7546000 - f759a120 /lib/i386-linux-gnu/libm.so.6
[13:46:07] [debug] f7528000 - f7544354 /lib/i386-linux-gnu/libgcc_s.so.1
[13:46:07] [debug] f7370000 - f752e73b /lib/i386-linux-gnu/libc.so.6
[13:46:07] [debug] f7747000 - f776b06c /lib/ld-linux.so.2
[13:46:07] [debug] f7325000 - f736d3d4 plugins/crashdetect.so
[13:46:07] [debug] f6f8f000 - f732a009 plugins/mysql.so
[13:46:07] [debug] f6f64000 - f6f8eb45 /root/sampserver/plugins/../log-core.so
[13:46:07] [debug] f6f5b000 - f6f6247c /lib/i386-linux-gnu/librt.so.1
[13:46:07] [debug] f5f46000 - f5f570d0 /lib/i386-linux-gnu/libnss_files.so.2
[13:46:07] [debug] f5f35000 - f5f449b4 plugins/sscanf.so
[13:46:07] [debug] f5d3a000 - f5dff740 plugins/streamer.so
[13:46:07] [debug] f5b8b000 - f5d444d5 plugins/sampvoice.so



samp voice code:
Code:
// samp voice 1
#include <sampvoice>

// / fim includes

// samp voice 2
new SV_GSTREAM:gstream = SV_NULL;
new SV_LSTREAM:lstream[MAX_PLAYERS] = { SV_NULL, ... };

public SV_VOID:OnPlayerActivationKeyPress(SV_UINT:playerid, SV_UINT:keyid)
{
? ? // Attach player to local stream as speaker if 'B' key is pressed
? ? if (keyid == 0x42 && lstream[playerid]) SvAttachSpeakerToStream(lstream[playerid], playerid);
? ? // Attach the player to the global stream as a speaker if the 'Z' key is pressed
? ? if (keyid == 0x5A && gstream) SvAttachSpeakerToStream(gstream, playerid);
}

public SV_VOID:OnPlayerActivationKeyRelease(SV_UINT:playerid, SV_UINT:keyid)
{
? ? // 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 global stream if the 'Z' key is released
? ? if (keyid == 0x5A && gstream) SvDetachSpeakerFromStream(gstream, playerid);
}

public OnPlayerConnect(playerid) {
Code:
// samp voice 3
    // Checking for plugin availability
    if (SvGetVersion(playerid) == SV_NULL)
    {
        SendClientMessage(playerid, -1, "Could not find plugin sampvoice.");
    }
    // Checking for a microphone
    else if (SvHasMicro(playerid) == SV_FALSE)
    {
        SendClientMessage(playerid, -1, "The microphone could not be found.");
    }
    // Create a local stream with an audibility distance of 40.0, an unlimited number of listeners
    // and the name 'Local' (the name 'Local' will be displayed in red in the players' speakerlist)
    else if ((lstream[playerid] = SvCreateDLStreamAtPlayer(40.0, SV_INFINITY, playerid, 0xff0000ff, "Local")))
    {
        SendClientMessage(playerid, -1, "Press Z to talk to global chat and B to talk to local chat.");

        // Attach the player to the global stream as a listener
        if (gstream) SvAttachListenerToStream(gstream, playerid);

        // Assign microphone activation keys to the player
        SvAddKey(playerid, 0x42);
        SvAddKey(playerid, 0x5A);
    }


public OnPlayerDisconnect(playerid, reason) {
Code:
? ? // samp voice 4
? ? // Removing the player's local stream after disconnecting
? ? if (lstream[playerid])
? ? {
? ? ? ? SvDeleteStream(lstream[playerid]);
? ? ? ? lstream[playerid] = SV_NULL;
? ? }

public OnGameModeInit() {

Code:
? ? // samp voice 5

? ? gstream = SvCreateGStream(0xffff0000, "Global");

public OnGameModeExit() {
Code:
? ? // samp voice 6

? ? if (gstream) SvDeleteStream(gstream);

from: https://github.com/CyberMor/sampvoice


  HELP! How to Get Status If The Vehicle go Flipped while destroyed?
Posted by: PutuSuhartawan - 2021-07-08, 11:03 AM - Forum: Pawn Scripting - Replies (4)

I saw a gamemode that supports anti-vehicle explode during a flip which is usually a scene of gasoline spilling and a fire burning. But here the purpose that will be discussed is the opposite. How can the vehicle flip itself back to its normal condition if the vehicle has really flipped and is about to explode?