Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 379 online users. » 0 Member(s) | 377 Guest(s) Bing, Google
|
|
|
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?
|
|
|
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:a, Float:fSize[3];
? ? GetVehiclePos(vehicleid, x, y, a);
? ? GetVehicleZAngle(vehicleid, a);
? ? GetVehicleModelInfo(GetVehicleModel(vehicleid), VEHICLE_MODEL_INFO_SIZE, fSize[0], fSize[1], fSize[2]);
? ? x = (/* radius using fSize? (about 7.5) */ * floatsin(-a, degrees));
? ? y = (/* radius using fSize? (about 7.5) */ * floatcos(-a, degrees));
? ? 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
|
|
|
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;
}
|
|
|
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
|
|
|
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
|
|
|
|