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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,675
» Latest member: fevjuw
» Forum threads: 2,366
» Forum posts: 12,309

Full Statistics

Online Users
There are currently 916 online users.
» 1 Member(s) | 912 Guest(s)
Google, Bing, Baidu, L4wl13t

Latest Threads
Call center tokopedia
Forum: General Discussions
Last Post: L4wl13t
Less than 1 minute ago
» Replies: 0
» Views: 0
Whatsapp tokopedia seller...
Forum: General Discussions
Last Post: L4wl13t
1 minute ago
» Replies: 0
» Views: 1
Layanan wa tokopedia sell...
Forum: General Discussions
Last Post: L4wl13t
2 minutes ago
» Replies: 0
» Views: 1
Berapa nomor layanan what...
Forum: General Discussions
Last Post: L4wl13t
4 minutes ago
» Replies: 0
» Views: 1
Bagaimana cara hubungi to...
Forum: General Discussions
Last Post: L4wl13t
5 minutes ago
» Replies: 0
» Views: 1
Whatsapp dari tokopedia
Forum: General Discussions
Last Post: L4wl13t
6 minutes ago
» Replies: 0
» Views: 1
Berapa nomor WA tokopedia...
Forum: General Discussions
Last Post: L4wl13t
7 minutes ago
» Replies: 0
» Views: 1
Layanan whatsapp tokopedi...
Forum: General Discussions
Last Post: L4wl13t
9 minutes ago
» Replies: 0
» Views: 1
Nomor whatsapp tokopedia ...
Forum: General Discussions
Last Post: L4wl13t
10 minutes ago
» Replies: 0
» Views: 1
Layanan tokopedia apakah ...
Forum: General Discussions
Last Post: L4wl13t
11 minutes ago
» Replies: 0
» Views: 1

 
  ITD TDE Menu bar is dark
Posted by: ntdrankiz - 2021-07-24, 01:31 PM - Forum: Pawn Scripting - Replies (1)

I have tried all the software and it still fails



[Image: iYYSh8b.png]



[Image: wUXdcI2.png]


  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?