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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,244
» Latest member: tcharlesmeurer
» Forum threads: 2,377
» Forum posts: 12,288

Full Statistics

Online Users
There are currently 379 online users.
» 0 Member(s) | 377 Guest(s)
Bing, Google

Latest Threads
Servidor RPG profissões
Forum: Advertisements
Last Post: tcharlesmeurer
1 hour ago
» Replies: 0
» Views: 1
Servidor novo RPG profiss...
Forum: Chat
Last Post: tcharlesmeurer
1 hour ago
» Replies: 0
» Views: 1
EVO Anti-Cheat
Forum: Libraries
Last Post: Eduardo_AC
1 hour ago
» Replies: 2
» Views: 16
Developer for Hire – Syst...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-07-04, 08:35 AM
» Replies: 0
» Views: 35
Liberty City map
Forum: Pawn Scripting
Last Post: ziyadprogamer
2025-06-28, 04:55 PM
» Replies: 2
» Views: 2,166
GameText styles in open.m...
Forum: Pawn Scripting
Last Post: Miki
2025-06-28, 01:25 PM
» Replies: 1
» Views: 54
Script[gamemodes/gamemode...
Forum: Pawn Scripting
Last Post: Miki
2025-06-27, 05:08 PM
» Replies: 1
» Views: 433
Want to edit my profile n...
Forum: Chat
Last Post: Hera.
2025-06-26, 08:41 PM
» Replies: 1
» Views: 581
Farsi
Forum: Other
Last Post: acc.gangbeni
2025-06-25, 08:21 AM
» Replies: 2
» Views: 3,074
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
2025-06-22, 06:47 PM
» Replies: 0
» Views: 65

 
  SA-MP Anti Sobeit
Posted by: Hata - 2021-07-20, 06:13 PM - Forum: Filterscripts - Replies (3)

This anti sobeit is quotation from russian forum.?I tested with Johnny Project and didn't come across any errors but the result of anti sobeit is never certain.?These codes scan the d3d9.dll and?may detect it as sobeit for enb modes.?



Codes;



Code:
#include <a_samp>



forward OnClientCheckResponse(playerid, actionid, memaddr, retndata);

native SendClientCheck(playerid, actionid, memaddr, memOffset, bytesCount);

enum(<<= 1)

{

? ? ? ? NULL = 0,

SOBEIT = 0x5E8606

};

public OnPlayerSpawn(playerid)

{

? ? ? ? SendClientCheck(playerid, 72, 0, 0, 2);

? ? ? ? SetTimerEx("sobeitcontrol", 100, true, "i", playerid);

? ? ? ? return 1;

}



public OnClientCheckResponse(playerid, actionid, memaddr, retndata)

{

? ? ? ? if (retndata != 192 && actionid != 72)

? ? ? ? {

? ? ? ? ? ? Kick(playerid);

? ? ? ? }



? ? ? ? return 1;

}

public sobeitcontrol(playerid)

{

? ? new actionid = 0x5, memaddr = SOBEIT, retndata = 0x4;

? ? SendClientCheck(playerid, actionid, memaddr, NULL, retndata);

? ? return 1;

}


  Car jack/stealing detector.
Posted by: Ambarita - 2021-07-20, 12:10 AM - Forum: Pawn Scripting - Replies (4)

So I want to make an admin warning message if a player car jack/steal a vehicle that is being occupied by someone.



Is there a function to check if the vehicle is occupied? or maybe a function that would help me make this code.



If not, any idea that would help me?


Smile How can I position the camera in front of the vehicle?
Posted by: Next - 2021-07-18, 11:55 PM - Forum: Pawn Scripting - Replies (2)

I'm trying to make a system where I need to position the camera in front of the vehicle so that it "points" to the vehicle without setting the coordinates in an array, having a "radius" using a GetVehicleModelInfo function.







I managed to do a function where I can get the front of the vehicle using some calculations. But I can't point the camera at the vehicle at the right angle.







PHP Code:
GetVehicleFront(vehicleid, &Float:x, &Float:y)

{

? ? new 
Float:aFloat:fSize[3];

? ? 
GetVehiclePos(vehicleidxya);

? ? 
GetVehicleZAngle(vehicleida);

? ? 
GetVehicleModelInfo(GetVehicleModel(vehicleid), VEHICLE_MODEL_INFO_SIZEfSize[0], fSize[1], fSize[2]);



? ? 
= (/* radius using fSize? (about 7.5) */ floatsin(-adegrees));

? ? 
= (/* radius using fSize? (about 7.5) */ floatcos(-adegrees));

? ? return 
1;









btw, is this function correct??


  Help!Restrict player chat
Posted by: Jian_han - 2021-07-18, 05:16 AM - Forum: Pawn Scripting - Replies (2)

such as

Players are forbidden to send a message containing fu?k

Not sent fuck, but included ?f?ck?. I will thank you very much,



I am noob,pls?Please give me a complete document?

I very need it!!!!?

thank you


  CCRP Five M Concept Script FULL
Posted by: Nick MFRP - 2021-07-17, 06:51 AM - Forum: Gamemodes - No Replies

Download Now? ??

??????????????



CCRP? ? ? ? ???=? ? ???http://www.mediafire.com/file/imkxzar1ba9q08i/CCRP.1.zip/file





Latest PWN? =? ? ? ??http://www.mediafire.com/file/q5j2tdhwzbbydp7/roleplay2.pwn/file


Question Keybinds
Posted by: GeorgeXCarl - 2021-07-17, 04:17 AM - Forum: Pawn Scripting - Replies (1)

is there any way i can detect other keybinds for?example



Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)

{

? ? ?if((newkeys & KEY_P) || (newkeys & KEY_Z))

? ? ?{

? ? ? ? ? // which is detecting the key "P" or key "Z"

? ? ?}

? ? ?return 1;

}


  warning 239: literal array/string passed to a non-const parameter
Posted by: Ambarita - 2021-07-15, 11:55 PM - Forum: Pawn Scripting - Replies (2)

SendRconCommand("exit");



This is inside a mysql connection code where if failed to connect then rcon exit.



I don't want to disable the warning, how can i fix this properly?


  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