Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 6,971
» Latest member: kartik_87
» Forum threads: 2,335
» Forum posts: 12,206
Full Statistics
|
Online Users |
There are currently 356 online users. » 0 Member(s) | 353 Guest(s) Google, Bing, Yandex
|
Latest Threads |
what is this?
Forum: Chat
Last Post: Axzyl
Yesterday, 09:28 PM
» Replies: 0
» Views: 10
|
I have questions
Forum: General Discussions
Last Post: Whords
Yesterday, 06:28 AM
» Replies: 0
» Views: 16
|
help with hotdog vendor s...
Forum: Programming
Last Post: Axzyl
2025-03-24, 09:33 AM
» Replies: 3
» Views: 105
|
Runtime error when connec...
Forum: Support
Last Post: stellab
2025-03-24, 06:59 AM
» Replies: 1
» Views: 137
|
Unable to run qawno
Forum: Support
Last Post: stellab
2025-03-24, 06:57 AM
» Replies: 2
» Views: 92
|
Error while compiler
Forum: Pawn Scripting
Last Post: stellab
2025-03-23, 09:24 PM
» Replies: 3
» Views: 1,141
|
Making a scratch RP serve...
Forum: Pawn Scripting
Last Post: stellab
2025-03-23, 09:11 PM
» Replies: 0
» Views: 36
|
Questions and Suggestions...
Forum: Questions and Suggestions
Last Post: lavonnerhill
2025-03-22, 03:46 AM
» Replies: 0
» Views: 39
|
SWAT VS TERRORIST [TDM] [...
Forum: Advertisements
Last Post: MoD
2025-03-20, 02:41 PM
» Replies: 0
» Views: 63
|
Undead Project Zombie Sur...
Forum: Advertisements
Last Post: Undead
2025-03-20, 07:33 AM
» Replies: 0
» Views: 54
|
|
|
what is this? |
Posted by: Axzyl - Yesterday, 09:28 PM - Forum: Chat
- No Replies
|
 |
(40) : warning 213: tag mismatch: expected tag none ("_"), but found "Float"
(40) : warning 213: tag mismatch: expected tag none ("_"), but found "Float"
(41) : warning 213: tag mismatch: expected tag none ("_"), but found "Float"
(41) : warning 213: tag mismatch: expected tag none ("_"), but found "Float"
(49) : warning 213: tag mismatch: expected tag none ("_"), but found "Float"
(59) : warning 239: literal array/string passed to a non-const parameter
(121) : warning 203: symbol is never used: "banish"
(121) : warning 203: symbol is never used: "ghosthunt"
(121) : warning 203: symbol is never used: "radar"
///////////////////////////////////////////////////////////////////////////////////////////////////////////
#include <a_samp>
#include <a_players>
#include <a_vehicles>
#include <a_npc>
#include <a_objects>
#define GHOST_VEHICLE_ID 487
#define GHOST_HUNTER_SKIN 20
#define GHOST_VAN_MODEL 487
#define GHOST_HUNTER_TEAM 1
new g_Hunters[MAX_PLAYERS];
stock SpawnGhostVan(playerid) {
new Float:x, Float:y, Float:z, Float:angle;
GetPlayerPos(playerid, x, y, z);
angle = GetPlayerFacingAngle(playerid);
vehicleid = AddStaticVehicle(GHOST_VEHICLE_ID, x + 5.0, y + 5.0, z, angle, 0, 0);
SetVehicleInvulnerable(vehicleid, 1);
SetVehicleColor(vehicleid, 0, 0);
return vehicleid;
}
CMD:ghosthunt(playerid, params[]) {
if (g_Hunters[playerid] == 1) {
SendClientMessage(playerid, 0xFF0000FF, "You are already a Ghost Hunter!");
return 1;
}
g_Hunters[playerid] = 1;
SetPlayerSkin(playerid, GHOST_HUNTER_SKIN);
SendClientMessage(playerid, 0x00FF00FF, "You are now a Ghost Hunter! Use your Ghost Van to track and defeat paranormal creatures!");
SpawnGhostVan(playerid);
return 1;
}
stock SpawnGhost() {
new Float:x, Float:y, Float:z;
x = random_float(-2500.0, 2500.0);
y = random_float(-2500.0, 2500.0);
z = 1000.0;
AddPlayerClass(26, x, y, z, 180.0, 0, 0, 0, 0, 0, 0);
return 1;
}
stock random_float(min, max) {
return min + (random(max - min) / 1000.0);
}
stock random_int(min, max) {
return random(max - min) + min;
}
public RandomGhostEvent();
public OnGameModeInit() {
SetTimer("RandomGhostEvent", 60000, true);
return 1;
}
public RandomGhostEvent() {
if (random_int(0, 10) > 5) {
SpawnGhost();
}
return 1;
}
CMD:radar(playerid, params[]) {
if (g_Hunters[playerid] == 0) {
SendClientMessage(playerid, 0xFF0000FF, "You need to be a Ghost Hunter to use the radar!");
return 1;
}
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
for (new i = 0; i < MAX_PLAYERS; i++) {
if (IsPlayerConnected(i) && g_Hunters[i] == 0) {
new Float gx, Float gy, Float gz;
GetPlayerPos(i, gx, gy, gz);
if (GetDistanceBetweenCoords(x, y, z, gx, gy, gz) < 50.0) {
SendClientMessage(playerid, 0x00FF00FF, "Ghost detected nearby! Use your van to track it down!");
}
}
}
return 1;
}
CMD:banish(playerid, params[]) {
if (g_Hunters[playerid] == 0) {
SendClientMessage(playerid, 0xFF0000FF, "You need to be a Ghost Hunter to use the banish ability!");
return 1;
}
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
for (new i = 0; i < MAX_PLAYERS; i++) {
if (IsPlayerConnected(i) && g_Hunters[i] == 0) {
new Float gx, Float gy, Float gz;
GetPlayerPos(i, gx, gy, gz);
if (GetDistanceBetweenCoords(x, y, z, gx, gy, gz) < 50.0) {
SendClientMessage(playerid, 0x00FF00FF, "Ghost successfully banished!");
return 1;
}
}
}
SendClientMessage(playerid, 0xFF0000FF, "No ghost nearby to banish!");
return 1;
}
public OnPlayerEnterCheckpoint(playerid) {
if (g_Hunters[playerid] == 1) {
SendClientMessage(playerid, 0x0000FFFF, "You're near a haunted spot. Use your radar to find ghosts!");
}
return 1;
}
|
|
|
help with hotdog vendor samp |
Posted by: Axzyl - 2025-03-24, 09:02 AM - Forum: Programming
- Replies (3)
|
 |
#include <a_samp>
#define VEHICLE_MODEL_ID 588
#define SELLER_SKIN 40
#define HOTDOG_COST 100
#define HOTDOG_HP 100
#define SELLER_REWARD 3000
#define MAX_VENDORS 5 // You can set this to the maximum number of vendor vehicles you want to allow
#define KEY_2 0x2000 // Define 2 key
#define KEY_LALT 0x40000 // Define Left Alt key
#define COLOR_GREEN 0x00FF00FF
#define COLOR_YELLOW 0xFFFF00FF
#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_RED 0xFF0000FF
new g_VehicleIDs[MAX_VENDORS];
new g_Sellers[MAX_VENDORS] = {INVALID_PLAYER_ID, INVALID_PLAYER_ID, INVALID_PLAYER_ID, INVALID_PLAYER_ID, INVALID_PLAYER_ID};
new g_VendorSelling[MAX_VENDORS] = {false, false, false, false, false};
// Coordinates for vehicle spawn
new Float:spawnX = 404.0;
new Float:spawnY = 2135.5701;
new Float:spawnZ = 1442.1515;
new Float:spawnAngle = 269.9492;
public OnGameModeInit()
{
// Spawn multiple vehicles at specified coordinates
for (new i = 0; i < MAX_VENDORS; i++)
{
g_VehicleIDs[i] = AddStaticVehicle(VEHICLE_MODEL_ID, spawnX + (i * 3), spawnY, spawnZ, spawnAngle, 1, 1); // Slight offset to avoid overlap
}
SetTimer("CheckVehiclePositions", 300000, true); // Check every 5 minutes for vehicles' positions
return 1;
}
// Pressing "2" to toggle selling hotdogs
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
// Check if player presses "2"
if (newkeys & KEY_2)
{
// Check if the player is inside a vendor vehicle (ID 588)
new vehicleid = GetPlayerVehicleID(playerid);
if (vehicleid != INVALID_VEHICLE_ID && GetVehicleModel(vehicleid) == VEHICLE_MODEL_ID)
{
// Loop through all vendor vehicles to find the player's assigned vehicle
for (new i = 0; i < MAX_VENDORS; i++)
{
if (g_VehicleIDs[i] == vehicleid) // The player is inside a valid vendor vehicle
{
// Check if the player is already a vendor
if (g_Sellers[i] == INVALID_PLAYER_ID)
{
g_Sellers[i] = playerid; // Assign the player as the vendor for this vehicle
g_VendorSelling[i] = true; // Start selling for this vehicle
SendClientMessage(playerid, COLOR_GREEN, "You are now the Hotdog Vendor!");
SendClientMessageToAll(COLOR_YELLOW, "A new Hotdog vendor has started selling!");
}
break;
}
}
}
}
// If player presses Left Alt (KEY_LALT) to buy hotdog
if (newkeys & KEY_LALT)
{
// Loop through all vendor vehicles
for (new i = 0; i < MAX_VENDORS; i++)
{
if (g_VendorSelling[i] && !IsPlayerInVehicle(playerid)) // Ensure player is not in vehicle and vendor is selling
{
if (GetPlayerMoney(playerid) >= HOTDOG_COST)
{
// Increase health
new currentHealth = GetPlayerHealth(playerid);
SetPlayerHealth(playerid, currentHealth + HOTDOG_HP);
// Subtract money
GivePlayerMoney(playerid, -HOTDOG_COST);
SendClientMessage(playerid, COLOR_WHITE, "You bought a Hotdog and gained 100 HP!");
// Give seller reward
if (g_Sellers[i] != INVALID_PLAYER_ID)
{
GivePlayerMoney(g_Sellers[i], SELLER_REWARD);
SendClientMessage(g_Sellers[i], COLOR_YELLOW, "You earned $3000 from a Hotdog sale!");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "You don't have enough money for a Hotdog!");
}
}
}
}
return 1;
}
// When a player exits a vehicle, they stop being the vendor
public OnPlayerExitVehicle(playerid, vehicleid)
{
for (new i = 0; i < MAX_VENDORS; i++)
{
if (vehicleid == g_VehicleIDs[i] && playerid == g_Sellers[i]) // If the player leaves the vendor vehicle
{
SendClientMessage(playerid, COLOR_RED, "You have left the vehicle and stopped selling hotdogs.");
g_Sellers[i] = INVALID_PLAYER_ID; // Clear the vendor role
g_VendorSelling[i] = false; // Stop selling hotdogs for this vehicle
}
}
return 1;
}
// Check if any vehicle is moved, respawn if needed
forward CheckVehiclePositions();
public CheckVehiclePositions()
{
for (new i = 0; i < MAX_VENDORS; i++)
{
// Check if the vendor vehicle exists at the spawn location
new Float:vehX, Float:vehY, Float:vehZ;
GetVehiclePos(g_VehicleIDs[i], vehX, vehY, vehZ);
// If the vendor vehicle is not at the spawn location
if (floatabs(vehX - (spawnX + (i * 3))) > 10.0 || floatabs(vehY - spawnY) > 10.0 || floatabs(vehZ - spawnZ) > 10.0) // 10 units tolerance
{
// Try to spawn a new vehicle if it doesn't exist at the spawn point
new vehicleid = INVALID_VEHICLE_ID;
// Loop through all possible vehicle IDs (vehicle IDs are indexed from 1)
for (new vehicleIndex = 1; vehicleIndex <= MAX_VEHICLES; vehicleIndex++)
{
vehicleid = vehicleIndex; // Check each vehicle ID
if (vehicleid != INVALID_VEHICLE_ID)
{
new Float:checkX, Float:checkY, Float:checkZ;
GetVehiclePos(vehicleid, checkX, checkY, checkZ);
// If vehicle is within a 10-unit radius of the spawn location
if (floatabs(checkX - (spawnX + (i * 3))) <= 10.0 && floatabs(checkY - spawnY) <= 10.0 && floatabs(checkZ - spawnZ) <= 10.0)
{
// Vehicle is close enough, no need to respawn
vehicleid = INVALID_VEHICLE_ID;
break;
}
}
}
// If no vehicle found at spawn point, spawn a new one
if (vehicleid == INVALID_VEHICLE_ID)
{
g_VehicleIDs[i] = AddStaticVehicle(VEHICLE_MODEL_ID, spawnX + (i * 3), spawnY, spawnZ, spawnAngle, 1, 1);
SendClientMessageToAll(COLOR_YELLOW, "A vendor vehicle has been reset to its original location!");
}
}
}
return 1;
}
so this: SetTimer("CheckVehiclePositions", 300000, true); // Check every 5 minutes for vehicles' positions and this: if (g_VendorSelling[i] && !IsPlayerInVehicle(playerid)) // Ensure player is not in vehicle and vendor is selling and this: new currentHealth = GetPlayerHealth(playerid); has warning messages saying for the first one: (36) warning 239: literal array/string passed to a non-const parameter second one: (75) warning 202: number of arguments does not match definition and third one: (81) warning 202: number of arguments does not match definition. please help ;3
|
|
|
Making a scratch RP server. Suggestions? |
Posted by: stellab - 2025-03-23, 09:11 PM - Forum: Pawn Scripting
- No Replies
|
 |
Basically what the title says. I'd like some suggestions to what I could add into my server, I've got a few things already.
I know SAMP RP servers have died off, but my love for SAMP and roleplaying on the platform has not. So I'm here to bring something fresh, something new. No edits, no code copies, all from the basic .pwn file.
At the moment I have the following:
I will not release any script context as it could potentially lead to somebody finding a way to copy the script and claiming it as their own.
Login & Register [no master account]
Player death system
EMS Faction + EMS Ranks + Ambulances + Faction locked + hospital interior
Police Faction + Police ranks, no vehicles yet, no interior yet
Businesses (3 types so far)
Vehicle Damages, Repairs, and Functions
Quarry Side-Job (only side job for now.)
Level System
Paychecks
Player stats dialog
Clothing selection
Ammunition boxes - working on compatibility with guns in slots.
Black market [Not fully finished]
Marijuana growing/planting/harvesting
Pay n sprays all over San Andreas blocked off for realism purposes
Little bit of custom mapping, it isn't the greatest.
WHAT'S NEW SINCE THE POST?
[new] Injury system
[new] Custom vehicle repair
WHAT IS BEING WORKED ON?
Housing
More additions to EMS & PD
Different drug types & effects
Any unique ideas?
|
|
|
Questions and Suggestions for open.mp |
Posted by: lavonnerhill - 2025-03-22, 03:46 AM - Forum: Questions and Suggestions
- No Replies
|
 |
Hello everyone,
I have a few questions and suggestions regarding the open.mp mod for GTA: San Andreas that I hope the community can help with. I have noticed that the site can be quite slow at times. Is this a common issue and are there any plans to improve the speed of the site. I need some much needed input!
|
|
|
SWAT VS TERRORIST [TDM] [GIVEAWAYS] |
Posted by: MoD - 2025-03-20, 02:41 PM - Forum: Advertisements
- No Replies
|
 |
We’re excited to officially announce the relaunch of SWAT VS TERRORIST [TDM] ! This time, we’re bringing you new content, exciting events, and even more action-packed gameplay!
SERVER IP: 91.121.237.130:7777
💥 What’s waiting for you?
✅ Intense combat and strategic base captures
✅ Unique class system with XP rewards
✅ Factions, VIP perks, and community-driven gameplay
✅ A fresh start, new challenges, and an active team
SERVER INFORMATION:
HostName: SWAT vs TERRORISTS - [TDM] [OFFICIAL]
Address: 91.121.237.130:7777
Players: 25 / 50
Ping: 148
Mode: SvT TDM | Swat vs Terrorists
Language: All
Discord server: https://discord.gg/wmaJ4Tk
|
|
|
Undead Project Zombie Survival |
Posted by: Undead - 2025-03-20, 07:33 AM - Forum: Advertisements
- No Replies
|
 |
[Undead Project | Human vs Zombie PvP SA-MP Server]
Choose your side. Fight for survival or spread the infection.
Undead Project is the ultimate PvP battleground where Humans face off against Zombies in an intense, action-packed SA-MP experience.
Features:- ⚔️ Human vs Zombie PvP Combat
- ★ Unique Classes & Abilities
- ★ Custom Maps & Arenas
- ★ XP & Rank System
- ★ Radiation Zones, Safehouses & Loot Crates
- ★ Special Events & Boss Fights
- ★ Active Admins & Friendly Community
Join the apocalypse. Survive or infect.
IP:
coming soon!
Discord:
https://discord.gg/ERqwBcZB
Website:
coming soon!
Undead Project — The war between life and death begins now.
|
|
|
Challenges in Implementing Server-Side Anti-Cheat for Open.MP |
Posted by: joseedaniell - 2025-03-18, 11:41 AM - Forum: Tech
- No Replies
|
 |
Hello
With multiplayer gaming growing rapidly; preventing cheating has become one of the biggest challenges for server administrators. I’ve been exploring different ways to implement an effective anti-cheat system for an Open.MP server and would like to discuss the best approaches with the community.
While client-side anti-cheat solutions can help detect unauthorized modifications; they are often bypassed by experienced hackers. That’s why I’m particularly interested in server-side anti-cheat mechanisms that can detect suspicious behavior without relying on client integrity checks.
One of the methods I’ve been considering is using heuristic-based detection, such as monitoring player movement patterns, weapon accuracy & input consistency. For example, detecting aimbots through unnatural aim adjustments or speed hacks by analyzing player velocity.
However; a major challenge is balancing strict detection rules while avoiding false positives that might unfairly ban legitimate players. Another approach could involve machine learning models that adapt over time to recognize abnormal gameplay behaviors, but implementing this at scale seems complex. Checked Open.MP Server Development Documentationreactjs course online guide and found it informative .
I’d love to hear from others who have tackled this problem—what server-side techniques have you found most effective in preventing cheating on Open.MP? Are there existing libraries or frameworks that integrate well with Open.MP for this purpose? Additionally; how do you handle automatic bans versus manual flagging for admin review? Any insights, best practices / even sample implementations would be greatly appreciated. Let’s work together to make Open.MP a fairer and more secure platform for players!
Thank you!!
|
|
|
Server DeathMatch [DM, FreeRoam, Fun][PL/ENG] |
Posted by: Pevenaider - 2025-03-16, 04:26 PM - Forum: Advertisements
- No Replies
|
 |
Join the SDM Community Today!
Ready to kick boredom to the curb? Our server offers a whole load of fun to keep you entertained! Whether you're a newbie or a pro, we've got something for everyone. We're live on both 0.3.7 and 0.3.DL client versions.
What's waiting for you? Custom skins and objects (0.3DL), a fully functional housing system, privcars, businesses, your own company, bunkers, crazy stunt props, and a variety of mini-games including: - GangWars
- Zombie
- Hide and Seek
- Race
- Hay
- FallOut
- Tank Battles
- Sumo
- Maze Challenge
- Chicken Killer (/SP)
We also have epic arenas:
- OneShot
- DeathMatch
- Minigun Arena
Screenshots:
Our server features an Exp/Level/Reputation system where you can level up, gain reputation, and unlock awesome rewards as you play.
We’ve got VIP accounts, gangs, and a weapon of the day to keep things fresh and exciting!
Don't wait Join Today
|
|
|
|