Quantcast
Channel: SA-MP Forums
Viewing all 18226 articles
Browse latest View live

y_scriptinit i have errore

$
0
0
I inserted NEX Anticheat in gamemode and now I get errors in y_scriptinit, can you please help? I need Anitcheat for my server.

Here's your errors:

Code:

C:\Users\Sanel\Desktop\MCRP\pawno\include\YSI\y_scriptinit.inc(131) : warning 209: function "ac_OnGameModeInit" should return a value
C:\Users\Sanel\Desktop\MCRP\pawno\include\YSI\y_scriptinit.inc(196) : warning 209: function "ac_OnGameModeExit" should return a value
Pawn compiler 3.2.3664                          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Script y_scriptinit

Code:

        public OnGameModeInit()
        {
                if (YSI_FILTERSCRIPT)
                {
                        state _script_init_fix_state : true;
                        if (YSI_g_sScriptInitGM)
                        {
                                CallLocalFunction("ScriptInit_OnGameModeInit", "");
                        }
                }
                else
                {
                        state _script_init_fix_state : false;
                        CallLocalFunction("ScriptInit_OnScriptInit", "");
                        //CallRemoteFunction("ScriptInit_OnAnyScriptInit", "");
                        CallLocalFunction("ScriptInit_OnGameModeInit", "");
                        //CallLocalFunction("ScriptInit_OnScriptLate", "");
                        CallLocalFunction("Text_SpecialInit", "");
                }
        131: }

Code:

        public OnGameModeExit()
        {
                if (YSI_FILTERSCRIPT)
                {
                        if (YSI_g_sScriptExitGM)
                        {
                                CallLocalFunction("ScriptInit_OnGameModeExit", "");
                        }
                }
                else
                {
                        CallLocalFunction("ScriptInit_OnScriptExit", "");
                        //CallRemoteFunction("ScriptInit_OnAnyScriptExit", "");
                        CallLocalFunction("ScriptInit_OnGameModeExit", "");
                        //CallLocalFunction("ScriptInit_OnScriptExitLate", "");
                }
        196: }

Please help!

LAUNCHER RP

$
0
0
hello ı want to make roleplay server Launcher which can protect cheats ****** and cheat engine anybody can help me please ?

Can't create pickup beyond certain co-ord fix?

$
0
0
Hi there,

does anyone know of a fix or work around for this:

pawn Code:
dschoolenter = CreateDynamicPickup(1318,23,1976.2631,-5135.9805,9.0020,0);

Quote:

Pickups that have a X or Y lower than -4096.0 or bigger than 4096.0 won't show up and won't trigger OnPlayerPickUpPickup either.

[Projeto] Centro Pawno

$
0
0
Olá, precisa de atendimento especializado na areá de game modes e filter scripts pawno?
Entre já em nosso grupo de WhatsApp, fazermos serviços por um baixo preço.
Contemos programadores com alta performance.

https://chat.whatsapp.com/H9AiS04D0j90BTJjOn6uA6

Centro Pawno não contém afiliação com SA-MP.
Centro Pawno todos os direitos reservados.

TextDraw and movement

$
0
0
There is a question related to TextDraw. I want to move Textdraw smoothly, but i don`t understang how? Maybe there are some plugins(includes) or some chips with Textdraw?

[Ajuda] Erro com progress

$
0
0
To criando um sistema de fome usando progressbar mas to tendo os seguintes erros:
Code:

D:\BlackMesa Role Play\gamemodes\BlackMesa.pwn(94) : error 017: undefined symbol "INVALID_BAR_ID"
D:\BlackMesa Role Play\gamemodes\BlackMesa.pwn(405) : error 017: undefined symbol "CreateProgressBar"
D:\BlackMesa Role Play\gamemodes\BlackMesa.pwn(416) : error 017: undefined symbol "DestroyProgressBar"
D:\BlackMesa Role Play\gamemodes\BlackMesa.pwn(573) : error 017: undefined symbol "SetProgressBarValue"
D:\BlackMesa Role Play\gamemodes\BlackMesa.pwn(574) : error 017: undefined symbol "UpdateProgressBar"
Pawn compiler 3.2.3664                          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

E sim, eu ja coloquei o
Code:

#include <progress>

[Ajuda] Sniper x Corredores

$
0
0
Olá glr , estou quase terminando um projeto minigame , queria tirar uma dúvida . pra mim criar o sniper x corredores em salas , eu teria que duplica o sistema ? :confused:

CJ's skin at spawn

$
0
0
The "SetPlayerSkin" function does not work if I set it to "OnPlayerSpawn", the player receives the CJ skin (ID: 0).

Code:

public OnPlayerSpawn(playerid) {
        SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
}


Loop and Else

$
0
0
Code:

       
#define MAX_POINTS 15

for(new i = 0; i < MAX_POINTS; i ++)
        {
                if(PointInfo[i][pExists])
                {
                        if(i >= 0 && PointInfo[i][pType] == 5 && PointInfo[i][pPerk] == 1 && PointInfo[i][pCapturedGang] >= 0 && (PlayerInfo[playerid][pGang] >= 0 && PlayerInfo[playerid][pGang] == PointInfo[i][pCapturedGang]))
                        {
                                GivePlayerCash(playerid, -PlayerInfo[playerid][pRefuelAmount]);
                                SendClientMessageEx(playerid, COLOR_AQUA, "*** You've refilled your vehicle's gas tank for $%i.", PlayerInfo[playerid][pRefuelAmount]);

                                PlayerInfo[playerid][pRefuel] = INVALID_VEHICLE_ID;
                                PlayerInfo[playerid][pRefuelAmount] = 0;

                                SendClientMessageEx(playerid, COLOR_YELLOW, "** Point perk: You do not pay the %i percent convenience fee as your gang own this fuel station.", gTax);
                        }
                        else if(!(i >= 0 && PointInfo[i][pType] == 5 && PointInfo[i][pPerk] == 1 && PointInfo[i][pCapturedGang] >= 0 && (PlayerInfo[playerid][pGang] >= 0 && PlayerInfo[playerid][pGang] == PointInfo[i][pCapturedGang])))
                        {
                            SendClientMessage(playerid, -1,"Tax paid.");
                        }
                }
        }

Every time the loop start, it check all points if exists and check if the gang own the point so it send one message that is stated above + it sends 14 times the others from the } else { and below... how can i fix it.
Thanks in advance.

foreach Iter_Remove (client exceeded 'ackslimit')

$
0
0
When use ResetPlayerPubg function print:
pawn Code:
[warning] client exceeded 'ackslimit' 192.168.1.116:62863 (6230) Limit: 3000/sec

I'm sure the problem of Iter_Remove(PubgPlayer, playerid); because if //comment this and test it, not send 'ackslimit' print!
my codes:
pawn Code:
function ResetPlayerPubg(playerid)
{
    TextDrawHideForPlayer(playerid, announcementTextDraw);
    TextDrawHideForPlayer(playerid, countDownTextDraw);
    TextDrawHideForPlayer(playerid, AliveTextDraw);
    TextDrawHideForPlayer(playerid, LeftAreaTextDraw[1]);
    TextDrawHideForPlayer(playerid, LeftAreaTextDraw[0]);
    TextDrawStopBoxFadeForPlayer(playerid, bloodFaderTextDraw);
    TextDrawHideForPlayer(playerid, bloodFaderTextDraw);
    PlayerPlaySound(playerid, 1188, 0, 0, 0);
    SetPlayerWantedLevel(playerid, SavedpWanted[playerid]);
    SetPlayerTeam(playerid, NO_TEAM);
    foreach(new i : Player)
    {
       if(i != playerid)
       {
           ShowPlayerNameTagForPlayer(i, playerid, true), ShowPlayerNameTagForPlayer(playerid, i, true);
       }
    }
    if(IsPlayerSpawned(playerid))
    {
    ResetPlayerWeapons(playerid);
    for(new slot; slot < 13; slot++)
    {
       GivePlayerWeapon(playerid, PlayerSavedWeapon[playerid][slot], PlayerSavedAmmo[playerid][slot]);
    }
    SetPlayerPos(playerid, GetPVarFloat(playerid,"Pubg_X_LAST"), GetPVarFloat(playerid,"Pubg_Y_LAST"), GetPVarFloat(playerid,"Pubg_Z_LAST"));
    }
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    if(Iter_Contains(PubgPlayer, playerid))
    {
     //  Iter_Remove(PubgPlayer, playerid);
    }
    return 1;
}

[Map] Pars.Ultra Lux Garage

Get Closest Cop

$
0
0
I found this function somewhere to retrieve closest player:

pawn Code:
stock GetClosestPlayerEx(playerid, classid, &Float: distance = FLOAT_INFINITY)
{
    new iCurrent = INVALID_PLAYER_ID, Float: fX, Float: fY,  Float: fZ, Float: fTmp, world = GetPlayerVirtualWorld(playerid);

    if(GetPlayerPos(playerid, fX, fY, fZ))
    {
        foreach(new i : Player)
        {
            if(i != playerid)
            {
                if(GetPlayerState(i) != PLAYER_STATE_SPECTATING && GetPlayerVirtualWorld(i) == world && ReturnPlayerClass(i) == classid)
                {
                    if(0.0 < ( fTmp = GetPlayerDistanceFromPoint(i, fX, fY, fZ)) < distance)
                    {
                        distance = fTmp;
                        iCurrent = i;
                    }
                }
            }
        }
    }
    return iCurrent;
}

And i added it in a timer to reduce wanted level is no cop in a radius of 500 meters is near, but doesn't work. Wanted level reduces even if a cop is near me.

pawn Code:
task ReduceWantedLevel[60000]() //1 minute
{
    foreach(new i: Player)
    {
        if(Player[i][IsLoggedIn] && Player[i][Spawned] && ReturnWantedLevel(i) > 0)
        {
            new Float: fDistance = FLOAT_INFINITY;

            GetClosestPlayerEx(i, CLASS_LAW, fDistance);

            if(fDistance >= 500.0) RemovePlayerWantedLevel(i, 1);
        }
    }
}

What's wrong?

Help

$
0
0
PHP Code:

function OnPlayerCheatplayer_idcheat_id )
{
    new
        
playerName[MAX_PLAYER_NAME] = "*not connected*";

    if ( 
IsPlayerConnectedplayer_id ) ) {
        
GetPlayerNameplayer_idplayerNamesizeofplayerName ) );
    }

    if ( 
strmatchg_szCheatNamescheat_id ], "Aimbot (6)" ) )
    {
        return 
1// ignore aimbot (6)
    
}

    
//AdvancedBan( player_id, "Server", g_szCheatNames[ cheat_id ], ReturnPlayerIP( player_id ) );
    
formatszNormalStringsizeofszNormalString ), ""COL_PINK"[ANTI-CHEAT]{FFFFFF} %s(%d) has been detected using %s."playerNameplayer_idg_szCheatNamescheat_id ] );
    
SendClientMessageToAdminsCOLOR_PINKszNormalString );
    print( 
szNormalString );
    return 
1;


this piece of code isnt working but is compiling wihtout any errors.
i have tried replacing the "function OnPlayerCheat" with "hook OnPlayerConnect" and it worked but the thing is that i want it to work if either a player is connecting or is in game currently

Check if PlayerTextDraw Text ==

$
0
0
Guys help!!!

I'm trying to use textdraws in my server for the first time... I'm mostly working on my own but I figured out a lot.


How do I check the text(string) of a player textdraw? I need it so that people can't login without filling all the info(password,age etc.).

Can anyone help me please??? :-\

[Off] Análisis de Eset Internet Security

$
0
0
Hola a todos, tal vez esta no sea una pregunta adecuada para el foro, por favor, perdóname.
Quiero saber que Eset Internet Security se compara con Bitdefender y Kaspersky Internet Security, ¿Qué ventajas tiene? Por alrededor de 55 euros la licencia para tres dispositivos, Eset es la suite de seguridad para Internet más cara… Que yo sepaTiene protección de webcam, pero aparte de eso, ¿por qué es tan caro?

Jail time

Pos In Water

$
0
0
How to check if X, Y, Z in water?

[Ajuda] Animação Repetindo

$
0
0
Queria Saber Como Fazer a Animação Ser Ativada So 1 Vez Pq Quando Eu To Testando Ela Fica Se Repetindo Um Monte De Vez!

PHP Code:

ApplyAnimation(playerid"VENDING""VEND_Drink_P"4.1111111); 

[Hosted Tab]Las Venturas Cops & Robbers (LVCNR) [www.LasVenturas.Net]

$
0
0


Server IP: 51.254.143.231:7777
Website: www.LasVenturas.Net

The server, LVCNR, is competing with the fastest growing communities of SA:MP. Thanks to your support, we have been able to make a good player base along with an increase in the average of players per day in no time. Server gets a lot of regular updates and provides all resources for the community to touch new highs in the sky!

LVCNR, started in 2010 , continues to bring to you the best Cops & Robbers gameplay experience. The community serves on high speed magnificent servers with exceptional hardware resources & is aired on SA-MP Hosted Tab.

Server Features
  • Group Robbery
  • Clothes System
  • Vehicle Objects System
  • Dynamic House System
  • House Furniture System
  • Custom House interiors
  • Gangs & Zones Annexation System
  • Fishing System (Lake & Sea)
  • Cop Ranks System
  • Dynamic Business System
  • Pay-Day System, with Taxes, Bank Interests & VIP Bonus
  • Class specific base-camps (Rob-able)
  • Several jobs
  • Stable Server Economy
  • Pray System
  • Lottery & Coupon System
  • Player Assets (with death) drop & pickup System - The GTA Style!
  • Dynamic GPS System
  • New robbery locations
  • Bloodshed effect while shot (Similar to Counter-strike)
  • Several In-Server Games (Minigames)
  • Vehicle system
  • Various events organized by admins
  • Automatic Money Bag system
  • Vehicle Crane System
  • Several Missions
    • Bus Driver Missions
    • Construction Site Missions Fork-Lifts
    • Sweeper Missions
    • Delivery Missions
    • Trash Collection Missions, etc.
  • And many more.

Server Trailers & Media
https://bit.do/eU553
https://bit.do/eU56d


LVCNR NEW Android App
The first CnR server to have an android app hosted on G-Play Store!
A new version has been released as an update over the previous one. Download today!

Android App Features:
  • Real-time online players list
  • Online players' real-time statistics
  • Player Rankings & Leader-board
  • Real-Time Ban List
  • And Much More!

Preview:


Download:


Advanced Player Dashboard (UCP)
ucp.lasventuras.net


Website & Media

www.LasVenturas.net
WWW.LVCNR.XYZ

Social: https://fb.lasventuras.net/
YTube: https://yt.lasventuras.net/

LVCNR Wiki
LVCNR Wiki Hub

IRC
Server - IRC.TL (6667); Channel - #lv-cnr
WebIRC: Click Here

Discord
LVCNR Discord Server: Click Here

The Comeback
So, after a sabbatical of almost 4 years, I am very pleased to announce the come-back of our very own astounding and the Original Las Venturas Cops & Robbers community!
The LVCNR community was shut back in 2011, leaving behind an inlet for various other servers to creep in and claim themselves as our protrudes. I am highly indebted to all those people who have been a part in re-establishing the lost community, back on SA-MP. And, here we are, actually presenting before you the same old LVCNR reincarnated into a new form, on the same old official web-domain! The community serves on high speed magnificent servers with exceptional hardware resources & is aired on SA-MP Hosted Tab.

The old LVCNR Connection
Link: The Flashback

There are several interesting elements and surprises that have been added in the game, which would cherish your old memories!

Server Statistics

Graph Source: SACNR Monitor

[Ajuda] comandos para uma GM

$
0
0
Galera, eu não manjo nada de script e essas coisas, mas eu quero ter um server privado para eu scriptar roleplay.
Caso alguma alma de bom coração possa me ajudar ai estão os comandos que eu quero.

/skin [ID da Skin] (setar minha própria skin)
/telacinza (um comando q deixa a tela por inteira cinza e apenas mostra o chat)
/v id cor1 cor2(para criar veículos)
/me
/do
/criarator [ID DA SKIN] (para criar um NPC parado)
/deletarator [ID DO ATOR] (para deletar atores)
/arma [ID da arma] (para criar armas)
/criarobjeto [ID do Objeto] (Para criar objetos)
/editarobjeto (para editar objetos)
/deleterobjeto (para deletar objetos)
/limpartudo (para deletar objetos, carros e atores de uma vez só)
/limparchat (para limpar o chat)
Viewing all 18226 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>