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

2 different mysql versions

$
0
0
I wanna know if is possible to use 2 different mysql include versions. Currently im using R41-4, and i wanted to use R33 too. How?

:: xSF » xTreme Stunt Freeroam (0.3.7) ::

$
0
0

xSF has been given a new Life!

Server IP: samp.xsfserver.com:7777
Website: https://xSFserver.com


Introduction
  • xSF is SA-MP server based off stunt/race and freeroam, we also offer alot a range of other things, including DM and CnR, we try our best to offer our players the best gaming experience in SA-MP, Our script and maps are getting updated often, so who says San Andreas gets old? Join our awesome community, get started by registering on our forums!

Features
  • Range of stunts, amazing maps created by our players.
  • Cops and Robbers minigame (/cnr)
  • Private vehicle ownership.
  • UCP to check your user stats on our website.
  • Advanced housing system, access all house features via /housemenu.
  • Advanced racing system.
  • Advanced dueling system, with player spectating.
  • Events including derby events on a daily basis!
  • Advanced Anti-Cheat system. Over 50 cheaters banned a day!
  • Advanced challenges with epic rewards!
  • Advanced IRC system, everything on the server is displayed over IRC
  • Events including derby events on a daily basis!
  • Range of awesome deathmatches, including TDM.
  • Achievement system with special prizes!
  • Bunch of awesome minigames, including Demolition Derby and Fallout!
  • Advanced Group system with many features.
  • Advanced MySQL system, all your data including personal settings are saved in our database!
  • Friendly user interface, you can access everything via the /help command.
  • Toy system - attach a range of permanent objects to your character!
  • Banking system. All your score and money are server-sided and accounted for!
  • Special bonus commands and features for VIP and Premium Members

..and much more!

Info
Website: https://xsfserver.com
Forums: https://xsfserver.com/forums
UCP: https://xsfserver.com/ucp
Server IP: samp.xsfserver.com:7777


Alternatively you can connect using this link

The server is never empty, so you'll always have someone to play with! Join the awesome community today!

__________________________________________________ ____________________________________________

Screenshots

Basic Commands:


Teleports:


All your stats are accounted for:


Player Settings:


Daily Server Statistics:


Loads of players to play with:





[Ajuda] CMD desligando server

$
0
0
Bom eu criei meu cmd de setbope ai quando eu uso ele /setbope id level ai eu digito eu do enter é ele seta ai logo em seguida desliga o servidor
PHP Code:

CMD:setbope(playerid,params[])
{
    new 
idlevel,string[128];
    if(
Player[playerid][pLogged] == false)return SCM(playeridCOLOR_RED,""TAG_ERRO" Você não está Logado para usar este comando!");
    if(
Player[playerid][Admin] >= || Player[playerid][BOPE] >= 5)
    {
        new 
cargotext[60];
        if(
Player[playerid][BOPE] == 5) { cargotext "Líder"; }
        if(
Player[playerid][BOPE] == 4) { cargotext "Major"; }
        if(
Player[playerid][BOPE] == 3) { cargotext "Sargento"; }
        if(
Player[playerid][BOPE] == 2) { cargotext "Cabo"; }
        if(
Player[playerid][BOPE] == 1) { cargotext "Recruta"; }
        if(
Player[playerid][Admin] == 7) { cargotext "Fundador"; }
        if(
Player[playerid][Admin] == 6) { cargotext "Lider Geral"; }
        if(
Player[playerid][Admin] == 5) { cargotext "Game Master"; }
        if(
Player[playerid][Admin] == 4) { cargotext "Sub Game Master"; }

        if(
sscanf(params,"ud",id,level)) return SCM(playeridCOLOR_GREY""TAG_USOCORRETO" /setbope <id> <level>");
        if(
level 5) return SCM(playeridCOLOR_RED""TAG_ERRO" Máximo de Level a ser setado é 5.");
        if(!(
IsPlayerConnected(id))) return SCM(playeridCOLOR_RED""TAG_ERRO" Este jogador não está Logado.");
        
format(stringsizeof(string), ""TAG_SERVER" O %s %s te setou de Level %d da BOPE ."cargotextGetName(playerid), level);
        
SCM(idCOLOR_GREYstring);
        
format(string,sizeof(string),""TAG_INFO" Você setou %s de Level %d da BOPE."GetName(id),level);
        
SCM(playeridCOLOR_GREYstring);
        
Player[id][BOPE]=level;
        
Player[id][Faccoes]=13;
        
format(string128,""TAG_SERVER" O %s %s setou %s de Level %d da BOPE."cargotextGetName(playerid), GetName(id), level);
        
MensagemAdmin(string);
        
format(string128,""TAG_INFO" O %s %s setou %s de Level %d da BOPE."cargotextGetName(playerid), GetName(id), level);
        
MensagemBope(string);
        
format(stringsizeof(string), "LOG: O %s %s setou %s de Level %d da BOPE.",cargotextGetName(playerid), GetName(id), level);
        
DarBope(string);
        
printf("[SET BOPE]: -BOPE-: O %s %s setou %s de Level %d da BOPE."cargotextGetName(playerid), GetName(id), level);
    }
    else
    {
        
SCM(playeridCOLOR_RED""TAG_ERRO" Você não tem permissão para usar este comando!");
    }
    return 
1;


SA-MP Maps

$
0
0




Recently I created a special website for those who are interested in SA-MP, and I started creating modern houses and commercial buildings (including interior).
I've also created an online store where you can get the maps, or request custom maps.

You can find us on https://samp-maps.com. More maps to come pretty soon!

[Ajuda] Ajuda com Fome/Sede

$
0
0
O problema é o seguinte, a barra de sede/fome está subindo muito rápido mesmo eu colocando um valor absurdo no
SetTimeEx.... Enfim, sou relativamente novo no pawno e preciso de ajuda kkk

Bom, vou colocar aqui o code completo, além de ser útil pra alguns pode ser mais fácil pra me ajudarem

Code:

#include <progress>
#include <a_samp>
#include <zcmd>
#include <cpstream>
//============================================================================//
#define FomeTempo 1
#define SedeTempo 1
//============================================================================//
#define Positivo    0xFFFF00FF
#define Negativo    0xAA3333AA
#define checknome  CPS_GetPlayerCheckpoint(playerid)
#define cardapio                                                                        6661
//============================================================================//
new checkareavip;
new checkcluckinbell;
new checkbar;
new checkburger;
new checkrestaurante;
new checkrosquinha;
new checkbar2;
new checkpizzaria;
new Text:FomeT;
new Text:SedeT;


//============================================================================//
new Bar:FomeA;
new Bar:SedeB;
//============================================================================//
forward Fome(playerid);
forward Sede(playerid);
//============================================================================//
public OnPlayerEnterCheckpoint(playerid)
{
if(checknome == checkareavip || checknome == checkcluckinbell || checknome == checkbar || checknome == checkburger || checknome == checkbar2 || checknome == checkrosquinha || checknome == checkrestaurante || checknome == checkpizzaria){
return mostrarcardapio(playerid);
}
return 1;
}
//============================================================================//

public OnFilterScriptInit()
{
//====================Localização dos checkpoints===============================//
        checkpizzaria = CPS_AddCheckpoint(375.7330,-119.7702,1001.4995, 1.0, 50);
        checkbar2 = CPS_AddCheckpoint(495.6680,-75.6510,998.7578, 1.0, 50);
    checkrosquinha = CPS_AddCheckpoint(379.2641,-190.3609,1000.6328, 1.0, 50);
        checkrestaurante = CPS_AddCheckpoint(450.3708,-83.8357,999.5547, 1.0, 50);
        checkareavip = CPS_AddCheckpoint(-787.9170,500.7348,1371.7422, 1.0, 50);
        checkcluckinbell = CPS_AddCheckpoint(369.6572,-6.2929,1001.8589, 1.0, 50);
        checkbar = CPS_AddCheckpoint(-224.8297,1401.8036,27.7656, 1.0, 50);
        checkburger = CPS_AddCheckpoint(376.5179,-68.2242,1001.5151, 1.0, 50);

//============================================================================//
    FomeT = TextDrawCreate(562.111083, 278.257659, "Fome");
    TextDrawBackgroundColor(FomeT, 255);
    TextDrawFont(FomeT, 2);
    TextDrawLetterSize(FomeT, 0.310000, 1.100000);
    TextDrawColor(FomeT, 16711935);
    TextDrawSetOutline(FomeT, 1);
    TextDrawSetProportional(FomeT, 1);
//============================================================================//
    SedeT = TextDrawCreate(562.222290, 307.626708, "Sede");
    TextDrawBackgroundColor(SedeT, 255);
    TextDrawFont(SedeT, 2);
    TextDrawLetterSize(SedeT, 0.320000, 1.100000);
    TextDrawColor(SedeT, 16711935);
    TextDrawSetOutline(SedeT, 1);
    TextDrawSetProportional(SedeT, 1);
//============================================================================//
    FomeA = CreateProgressBar(553.00, 300.00, 55.50, 3.20, -16776961, 100.0);
    SetProgressBarMaxValue(FomeA, 100);
    SedeB = CreateProgressBar(553.00, 331.00, 55.50, 3.20, 16711935, 100.0);
    SetProgressBarMaxValue(SedeB, 100);
//============================================================================//
    return 1;
}
//============================================================================//
public OnFilterScriptExit()
{
//============================================================================//
    HideProgressBarForAll(FomeA);
    HideProgressBarForAll(SedeB);
//============================================================================//
    TextDrawDestroy(FomeT);
    TextDrawDestroy(SedeT);
//============================================================================//
    return 1;
}
//============================================================================//
public OnPlayerConnect(playerid)
{
//============================================================================//
    //Função
//============================================================================//
    return 1;
}
//============================================================================//
public OnPlayerSpawn(playerid)
{
//============================================================================//
    SetPVarInt(playerid,"Fome",0);
    ShowProgressBarForPlayer(playerid, FomeA);
    SetPVarInt(playerid,"Sede",0);
    ShowProgressBarForPlayer(playerid, SedeB);
//============================================================================//
    TextDrawShowForPlayer(playerid, FomeT);
    TextDrawShowForPlayer(playerid, SedeT);
//============================================================================//
    SetTimerEx("Fome",FomeTempo*1800000 , 1, "i", playerid);
    SetTimerEx("Sede",SedeTempo*1500000 , 1, "i", playerid);
//============================================================================//
    return 1;
}
//============================================================================//
public OnPlayerDeath(playerid, killerid, reason)
{
//============================================================================//
    SetProgressBarValue(FomeA,-15);
    UpdateProgressBar(FomeA,playerid);
    SetPVarInt(playerid,"Fome",-15);
    SetProgressBarValue(SedeB,-15);
    UpdateProgressBar(SedeB,playerid);
    SetPVarInt(playerid,"Sede",-15);
//============================================================================//
    return 1;
}
//============================================================================//
public Fome(playerid)
{
//============================================================================//
    SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")+5);
    SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
    UpdateProgressBar(FomeA,playerid);
    if(GetPVarInt(playerid,"Fome") >= 75)
    {
        new Float:Vida;
        GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida-15.0);
        SendClientMessage(playerid,-1,"{AA3333}| INFO | Vá até um restaurante comer ou você irá morrer de fome!");
    }
        if(GetPVarInt(playerid,"Fome") >= 80)
    {
        new Float:Vida;
        GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida-20.0);
        SendClientMessage(playerid,-1,"{AA3333}| INFO | Vá até um restaurante comer ou você irá morrer de fome!");
    }
        if(GetPVarInt(playerid,"Fome") >= 85)
    {
        new Float:Vida;
        GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida-25.0);
        SendClientMessage(playerid,-1,"{AA3333}| INFO | Vá até um restaurante comer ou você irá morrer de fome!");
    }
        if(GetPVarInt(playerid,"Fome") >= 90)
    {
        new Float:Vida;
        GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida-20.0);
        SendClientMessage(playerid,-1,"{AA3333}| INFO | Vá até um restaurante comer ou você irá morrer de fome!");
    }
        if(GetPVarInt(playerid,"Fome") >= 100)
    {
        new Float:Vida;
        GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida-20.0);
        SendClientMessage(playerid,-1,"{AA3333}| INFO | Vá até um restaurante comer ou você irá morrer de fome!");
    }
//============================================================================//
    return 1;
}
//============================================================================//
public Sede(playerid)
{
//============================================================================//
    SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")+5);
    SetProgressBarValue(SedeB, GetPVarInt(playerid,"Sede"));
    UpdateProgressBar(SedeB,playerid);
    if(GetPVarInt(playerid,"Sede") >= 75)
    {
        new Float:Vida;
        GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida-15.0);
        SendClientMessage(playerid,-1,"{AA3333}| INFO | Vá até um restaurante beber ou você irá morrer de sede!");
    }
        if(GetPVarInt(playerid,"Sede") >= 80)
    {
        new Float:Vida;
        GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida-20.0);
        SendClientMessage(playerid,-1,"{AA3333}| INFO | Vá até um restaurante beber ou você irá morrer de sede!");
    }
        if(GetPVarInt(playerid,"Sede") >= 85)
    {
        new Float:Vida;
        GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida-25.0);
        SendClientMessage(playerid,-1,"{AA3333}| INFO | Vá até um restaurante beber ou você irá morrer de sede!");
    }
        if(GetPVarInt(playerid,"Sede") >= 90)
    {
        new Float:Vida;
        GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida-20.0);
        SendClientMessage(playerid,-1,"{AA3333}| INFO | Vá até um restaurante beber ou você irá morrer de sede!");
    }
        if(GetPVarInt(playerid,"Sede") >= 100)
    {
        new Float:Vida;
        GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida-20.0);
        SendClientMessage(playerid,-1,"{AA3333}| INFO | Vá até um restaurante beber ou você irá morrer de sede!");
    }
//============================================================================//
    return 1;
}
//============================================================================// 
//============================================================================//
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == cardapio)
    {   
        if(response)
        {
            switch(listitem)
            {
                case 0:
                {
                                mostrarcardapio(playerid);
                }
                case 1:
                {
                                new Float:Vida;
                                SendClientMessage(playerid,0xFFFF00AA,"| INFO | Você está comendo um X-Bacon!");
                                GivePlayerMoney(playerid, -10);
                                SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")-25);
                                SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
                                GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida+20.0);
                                UpdateProgressBar(FomeA,playerid);
                                ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
                                mostrarcardapio(playerid);
                }
                                case 2:
                {
                                new Float:Vida;
                                SendClientMessage(playerid,0xFFFF00AA,"| INFO | Você está comendo um X-Tudo!");
                                GivePlayerMoney(playerid, -26);
                                SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")-25);
                                SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
                                GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida+20.0);
                                UpdateProgressBar(FomeA,playerid);
                                ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
                                mostrarcardapio(playerid);
                }
                                case 3:
                {
                                new Float:Vida;
                                SendClientMessage(playerid,0xFFFF00AA,"| INFO | Você está comendo um X-Salada!");
                                GivePlayerMoney(playerid, -12);
                                GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida+20.0);
                                SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")-25);
                                SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
                                UpdateProgressBar(FomeA,playerid);
                                ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
                                mostrarcardapio(playerid);
                }
                                case 4:
                {
                                new Float:Vida;
                                SendClientMessage(playerid,0xFFFF00AA,"| INFO | Você está comendo uma Pizza de brocólis!");
                                GivePlayerMoney(playerid, -35);
                                SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")-25);
                                SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
                                UpdateProgressBar(FomeA,playerid);
                                ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
                                mostrarcardapio(playerid);
                                GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida+20.0);
                }
                                case 5:
                {
                                new Float:Vida;
                                SendClientMessage(playerid,0xFFFF00AA,"| INFO | Você está comendo uma Pizza de bauru!");
                                GivePlayerMoney(playerid, -32);
                                SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")-25);
                                SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
                                GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida+20.0);
                                UpdateProgressBar(FomeA,playerid);
                                ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
                                mostrarcardapio(playerid);
                }
                                case 6:
                {
                                new Float:Vida;
                                SendClientMessage(playerid,0xFFFF00AA,"| INFO | Você está comendo uma Pizza 4 queijos!");
                                GivePlayerMoney(playerid, -44);
                                SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome")-25);
                                SetProgressBarValue(FomeA, GetPVarInt(playerid,"Fome"));
                                GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida+20.0);
                                UpdateProgressBar(FomeA,playerid);
                                ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
                                mostrarcardapio(playerid);
                }
                                case 7:
                {
                                mostrarcardapio(playerid);
                }
                                case 8:
                {
                                new Float:Vida;
                                SendClientMessage(playerid,0xFFFF00AA,"| INFO | Você está bebendo uma Cola-Cola!");
                                GivePlayerMoney(playerid, -6);
                                SetPVarInt(playerid,"Fome",GetPVarInt(playerid,"Fome"));
                                SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")-25);
                                GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida+20.0);
                                SetProgressBarValue(SedeB, GetPVarInt(playerid,"Sede"));
                                UpdateProgressBar(SedeB,playerid);
                                ApplyAnimation(playerid,"BAR","dnk_stndM_loop ",3.0, 0, 0, 0, 0, 0);
                                mostrarcardapio(playerid);
                }
                                case 9:
                {
                                new Float:Vida;
                                SendClientMessage(playerid,0xFFFF00AA,"| INFO | Você está bebendo uma Fanta!");
                                GivePlayerMoney(playerid, -6);
                                GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida+20.0);
                                SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")-25);
                                SetProgressBarValue(SedeB, GetPVarInt(playerid,"Sede"));
                                UpdateProgressBar(SedeB,playerid);
                                ApplyAnimation(playerid,"BAR","dnk_stndM_loop ",3.0, 0, 0, 0, 0, 0);
                                mostrarcardapio(playerid);
                }
                                case 10:
                {
                                new Float:Vida;
                                SendClientMessage(playerid,0xFFFF00AA,"| INFO | Você está bebendo uma Sprite!");
                                GivePlayerMoney(playerid, -4);
                                SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")-25);
                                GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida+20.0);
                                SetProgressBarValue(SedeB, GetPVarInt(playerid,"Sede"));
                                UpdateProgressBar(SedeB,playerid);
                                ApplyAnimation(playerid,"BAR","dnk_stndM_loop ",3.0, 0, 0, 0, 0, 0);
                                mostrarcardapio(playerid);
                }
                                case 11:
                {
                                new Float:Vida;
                                SendClientMessage(playerid,0xFFFF00AA,"| INFO | Você está bebendo um Guaraná Jesus!");
                                GivePlayerMoney(playerid, -9);
                                SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")-25);
                                GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida+20.0);
                                SetProgressBarValue(SedeB, GetPVarInt(playerid,"Sede"));
                                UpdateProgressBar(SedeB,playerid);
                                ApplyAnimation(playerid,"BAR","dnk_stndM_loop ",3.0, 0, 0, 0, 0, 0);
                                mostrarcardapio(playerid);
                }
                                case 12:
                {
                                new Float:Vida;
                                SendClientMessage(playerid,0xFFFF00AA,"| INFO | Você está bebendo uma Pepsi!");
                                GivePlayerMoney(playerid, -5);
                                SetPVarInt(playerid,"Sede",GetPVarInt(playerid,"Sede")-25);
                                SetProgressBarValue(SedeB, GetPVarInt(playerid,"Sede"));
                                GetPlayerHealth(playerid,Vida),SetPlayerHealth(playerid,Vida+20.0);
                                UpdateProgressBar(SedeB,playerid);
                                ApplyAnimation(playerid,"BAR","dnk_stndM_loop ",3.0, 0, 0, 0, 0, 0);
                                mostrarcardapio(playerid);
                }
            }
    }
    }
    return 0;
}
//============================================================================// 
stock mostrarcardapio(playerid)
{
    new string[1700];
    strcat(string, "{FF0000} {FF0000} Comidas\n"); // 0
    strcat(string, "{FF0000}-{FFFFFF} X-Bacon {0088FF} R$10,00\n"); //  1
    strcat(string, "{FF0000}-{FFFFFF} X-Tudo {0088FF} R$26,00\n"); // 2
    strcat(string, "{FF0000}-{FFFFFF} X-Salada {0088FF}R$12,00 \n"); // 3
    strcat(string, "{FF0000}-{FFFFFF} Pizza de brócolis        {0088FF}R$35,00 \n"); // 4
    strcat(string, "{FF0000}-{FFFFFF} Pizza de bauru {0088FF}R$32,00\n"); // 5
    strcat(string, "{FF0000}-{FFFFFF} Pizza 4 queijos {0088FF}R$44,00 \n"); // 6
    strcat(string, "{FF0000}-{FF0000} Bebidas\n");// 7
    strcat(string, "{FF0000}-{FFFFFF} Coca-Cola {0088FF}R$6,00$ \n");// 8
    strcat(string, "{FF0000}-{FFFFFF} Fanta {0088FF}R$6,00  \n");// 9
    strcat(string, "{FF0000}-{FFFFFF} Sprite {0088FF}R$4,00 \n");// 10
    strcat(string, "{FF0000}-{FFFFFF} Guaraná Jesus{0088FF} R$9,00 \n");// 11
    strcat(string, "{FF0000}-{FFFFFF} Pepsi {0088FF}R$5,00\n");// 12
    ShowPlayerDialog(playerid, cardapio, DIALOG_STYLE_LIST, "Cardápio", string, "Comprar", "Sair");
    return 1;
}

Strange streaming problem / vehicles streaming in and out + LAG

$
0
0
So recently I changed my samp server hosting and decided to buy a dedicated server. It's a powerful dedicated server, equipped enough to handle 1000 players connected at the same time.

Before this, my server was running on a shared hosting, everything fine until they encountered some connection problems and I had no choice but to change it and buy a private dedicated server.

In the past I was moved on another dedicated server at that shared hosting company and I was encountering the same problem I encounter now on my own dedicated server. After long network tests and performance tests, the hosting provider couldn't tell me what the problem really was, he gave up and copied the old configuration from the dedicated server I was moved to the new one, and the problem suddenly stopped appearing.

Now my server lags like that time I was moved on a new dedicated server at that shared company, in addition to this I noticed a really strange phenomen that's happening: i see vehicles on my radar streaming in and out for no reason and player markers that shouldn't appear. The server is freezing only for me for couple seconds then it's going back to normal but with a fast forward effect.

Look at this video to get an idea of what's happening: click for video.

Have anyone encountered something like this before? The problem is 100% not from my gamemode, as I was told from my old hosting provider it's something related to the dedicated server configuration.

P.S: I'm already using the latest version of streamer.

[Ajuda] ANTI-CRASH

$
0
0
este anti crash é funcional?

PHP Code:

    if (!(-35000.0 <= bulletData[PR_origin][0] <= 35000.0) || !(-35000.0 <= bulletData[PR_origin][1] <= 35000.0) || !(-35000.0 <= bulletData[PR_origin][2] <= 35000.0))
    {
        
format(stringcheater,sizeof(stringcheater),"[ANTI-CRASH] %s (%d) é suspeito de bullet crash (Origem)."GetPlayerNameEx(playerid),playerid);
        
printf(stringcheater);

        
stringcheater[0] = EOS;
        return 
false;
    }

    if (!(-
35000.0 <= bulletData[PR_hitPos][0] <= 35000.0) || !(-35000.0 <= bulletData[PR_hitPos][1] <= 35000.0) || !(-35000.0 <= bulletData[PR_hitPos][2] <= 35000.0))
    {
        
format(stringcheater,sizeof(stringcheater),"[ANTI-CRASH] %s (%d) é suspeito de bullet crash (Hit)"GetPlayerNameEx(playerid),playerid);
        
printf(stringcheater);
        
stringcheater[0] = EOS;
        return 
false;
    } 

RemoveBuildingForPlayer

$
0
0
Is there any option to restore objects after using RemoveBuildingForPlayer? without reconnecting? and without using a streamer?

[FilterScript] V.I.P system

$
0
0
VIP SYSTEM BY ZIGGAMERX


CHANGELOG
Complete script on 20/10/2018

Commands
Code:

/nos - adds nitros to vehicle
/vheal - heals yourslef
/vcar - spawns vip car
/vgod - turns on god mode
/vsay - announcemnets as vip
/vcc - changes car color
# for vip chat
/varmour - restores armour
/vbike - spawns V.I.P bike
/vheli - Spawns V.I.P helicopter
/vweaps- vip special weapons
/getvip - sets yourself as vip
/vips - list of online vips.

How many V.I.P Levels?
There are currently 2.

Credits

Code:

//----------------------------------------------------------------------------//
//V.I.P System by ZigGamerX.
//s_samp - Kalcor
//zcmd - Zeex
//Foreach - Thanks whoever made this.
//Sscanf2 - Thanks whoever made this.
//ZigGamerX Aka me - Script
//Jithu - Helping
//----------------------------------------------------------------------------//

Download links
https://pastebin.com/wZAgqY9U

PS:
This is my first script, sorry if i did something wrong.

Bugs
No bugs found right now.

Report if you found any.

[Ajuda] Objeto fica invisivel

$
0
0
to fazendo um Banco e to tentando usar o seguinte objeto:





que é uma divisória, porém como vcs veem, no interior ele aparece, porém quando crio no mapa, ele fica invisível apenas a colisão dele fica lá, alguém consegue me ajudar ?

[Pedido] Visualizar comandos efetuados pelos admins

$
0
0
Olá pessoal, eu estou fazendo um servidor de Scavenge & Survive, porém, estou tendo dificuldade para fazer um visualizador de comandos, devido a alguns problemas com staff é melhor ter um né, vai que alguém está abusando ou algo do tipo.

Se alguém puder ajudar agradeço

[Ajuda] ERRO CHATO.

$
0
0
Bom, olha eu aqui novamente, hoje esses errinhos estão chatos kkk, bom está dando esses erros

Erros:
PHP Code:

error 035argument type mismatch (argument 1)
error 035argument type mismatch (argument 2

Comando:
PHP Code:

CMD:tela3(playeridparams[])
{
    if(
CallRemoteFunction("GetPlayerAdminLevel","i",playerid) < 1)
        return 
SCM(playerid,COLOUR_ERRO,Avisos[8]);

    new 
segundosPosString;
    
     if(
sscanf(params"ds[80]"segundosPosString))
    {
        
SCM(playeridCOLOUR_INFORMACAO,"{FFFFFF}|X| »{725CE6} Exibindo padrões para o /TELA3");
        
SCM(playeridCOLOUR_ERRO"[USO]: /tela3 <segundos> <mensagem>");
        
ShowTela3ForPlayer(playerid);
        return 
1;
    }

    if(
StringTXTBugado(PosString)) //Linha do erro
        
return SCM(playeridCOLOUR_ERRO"|ERRO| » Seu texto está com erros e foi bloqueado para evitar crash's");
        
    if(!
IsNumeric(segundos)) //Linha do Erro
    
{
        
segundos 10;
        
PosString 0;
    }
    
    if(
CallRemoteFunction("GetPlayerAdminLevel","i",playerid) < && segundos 30)
        return 
SCM(playeridCOLOUR_ERRO,"|ERRO| » Em segundos use de 1 até 30");
        
    if(
segundos 1)
        return 
SCM(playeridCOLOUR_ERRO,"|ERRO| » Em segundos use de 1 até 30");

    
CallRemoteFunction("CMDMessageToAdmins","is"playerid"TELA3");
    
    
Tela3Set(segundosPosString1); // Linha do Erro
    
if(PosString == 0SCM(playeridCOLOUR_AVISO"|AVISO| » Segundos não foram digitados! Exibindo com a duração padrão de 10 segundos...");
    return 
1;


Ajuda com o DINI

$
0
0
Olá, queria saber como seto um pInfo, no meu caso é quando o player pega uma profissão, quero que seta o "pEmprego" para 1, Alguém me ajuda?

Agradeço.

[Plugin] PGConnector - Manipulação do SGBD PostgreSQL para SA-MP

$
0
0
PGConnector - Manipulação do SGBD PostgreSQL para SA-MP

Boa noite pessoal. Após muito tempo inativo da comunidade SA-MP resolvi desenvolver essa Plugin. Eu sei que existem outras que fazem a mesma função que essa porém desenvolvi a mesma para fins de conhecimentos na linguagem C++. Fico no aguardo de sugestões e possível bugs.

A plugin tem suporte a querys assíncronas e sincronas e atualmente tem suporte aos sistemas operacionais Windows e Linux. A mesma suporta administrar até 50 conexões simultâneas (no futuro pretendo criar um arquivo de configuração para administrar estes tipos de parâmetros). Ainda tem alguns pontos nela que podem ser melhorados como a manipulação da memória e até o desempenho. Em uma versão futura irei disponibilizar melhorias nesses quesitos porém por hora a mesma está utilizável.

A plugin está disponível no GitHub e o tutorial de como instalar a mesma está disponível la também. Espero ela seja útil para quem tem interesse em usar esse SGBD e que possa ser usada como objeto de estudo por todos assim como serviu para mim. Em caso de dúvidas/sugestões/erros é só deixar um comentário.


Projeto/Documentação no Github
Downloads
Plugin Windows - 4Shared
Plugin Linux - 4Shared
Pawn INC - 4Shared

[GameMode] Mafia Latinoamericana | 0.3.7

$
0
0
Spanish Version[/B]Bueno, amigos hoy vengo con esta liberacion de una Gamemode con sistemas excelentes, programada por mi, la razon de esta liberacion es simple me pidieron actualizar esta gamemode a cambio de dejaban creditos, lo cual no cumplieron y pues vengo a liberarla




English Version

Well, friends today I come with this release of a Gamemode with excellent systems, programmed by me, the reason for this release is simple I was asked to update this gamemode in exchange for leaving credits, which did not comply and then I come to release it
[/B]


Link: https://mega.nz/#!r9oSSYbC!se6NjYg3Y...wH1blFGGOt2-40

Attached Images
File Type: jpg ML Bodegas.jpg (134.5 KB)
File Type: jpg ML Casas.jpg (134.0 KB)
File Type: jpg ML.jpg (126.8 KB)
File Type: jpg Sin título.jpg (147.9 KB)

How can I redefined Streamer function

$
0
0
Error:
Code:

_ALS_UpdateDynamic3DTextLabelTe" is truncated to 31 characters...
CE_UpdateDynamic3DTextLabelText not work also if call function directly

Code:


#if defined _streamer_included       

        stock STREAMER_TAG_3D_TEXT_LABEL CE_CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0)       
        {       
                CE_Convert(text);       
                new  STREAMER_TAG_3D_TEXT_LABEL ce_3dtextid = CreateDynamic3DTextLabel(text, color, x, y, z, drawdistance, attachedplayer, attachedvehicle, testlos, worldid, interiorid, playerid, distance);       
                return ce_3dtextid;       
        }

        stock CE_UpdateDynamic3DTextLabelText(STREAMER_TAG_3D_TEXT_LABEL id, color, const text[])       
        {       
                CE_Convert(text);       
                UpdateDynamic3DTextLabelText(id, color, text);               
        }

#endif

stock Text3D:CE_Create3DTextLabel(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld = -1, testLOS = 0) {       
        CE_Convert(text);
        new Text3D:ce_3dtextid = Create3DTextLabel(text, color, X, Y, Z, DrawDistance, virtualworld, testLOS);       
        return ce_3dtextid;
}

stock CE_Update3DTextLabelText(Text3D:id, color, text[]) {
        CE_Convert(text);
        Update3DTextLabelText(id, color, text);
}

        #if defined _streamer_included
                #if defined _ALS_CreateDynamic3DTextLabel
                        #undef CreateDynamic3DTextLabel
                #else       
                        #define _ALS_CreateDynamic3DTextLabel
                #endif

                #define CreateDynamic3DTextLabel CE_CreateDynamic3DTextLabel       
                #define UpdateDynamic3DTextLabelText CE_UpdateDynamic3DTextLabelText
        #endif


This is my current Include file, Already remove them.

Code:

native CE_Convert(const string[]);
native CE_CountTag(const string[]);
native CE_Convert_TAPLIST(const string[]);

new ce_dialog_btn1[32];

stock CE_SendClientMessage(playerid, color, const text[], {Float, _}:...)
{
        static
            args,
            str[144];

        if ((args = numargs()) == 3)
        {
                CE_Convert(text);
                SendClientMessage(playerid, color, text);
        }
        else
        {
                while (--args >= 3)
                {
                        #emit LCTRL 5
                        #emit LOAD.alt args
                        #emit SHL.C.alt 2
                        #emit ADD.C 12
                        #emit ADD
                        #emit LOAD.I
                        #emit PUSH.pri
                }
                #emit PUSH.S text
                #emit PUSH.C 144
                #emit PUSH.C str
                #emit PUSH.S 8
                #emit SYSREQ.C format
                #emit LCTRL 5
                #emit SCTRL 4

                CE_Convert(str);
                SendClientMessage(playerid, color, str);

                #emit RETN
        }
        return 1;
}

stock CE_SendClientMessageToAll(color, const text[], {Float, _}:...)
{
        static
            args,
            str[144];

        if ((args = numargs()) == 2)
        {
                CE_Convert(text);       
            SendClientMessageToAll(color, text);
        }
        else
        {
                while (--args >= 2)
                {
                        #emit LCTRL 5
                        #emit LOAD.alt args
                        #emit SHL.C.alt 2
                        #emit ADD.C 12
                        #emit ADD
                        #emit LOAD.I
                        #emit PUSH.pri
                }
                #emit PUSH.S text
                #emit PUSH.C 144
                #emit PUSH.C str
                #emit LOAD.S.pri 8
                #emit ADD.C 4
                #emit PUSH.pri
                #emit SYSREQ.C format
                #emit LCTRL 5
                #emit SCTRL 4

                CE_Convert(str);       
                SendClientMessageToAll(color, str);

                #emit RETN
        }
        return 1;
}

stock CE_ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]) {       
        CE_Convert(caption);

        if(strlen(button1) > 1) {
                format(ce_dialog_btn1, sizeof ce_dialog_btn1, button1);
        }

        if(style == 4 || style == 5) { // DIALOG_STYLE_TABLIST & DIALOG_STYLE_TABLIST_HEADERS
                CE_Convert_TAPLIST(info);       
        }
        else {
                CE_Convert(info);       
        }
        // Need to save that button1 text because after CE_Convert will increase length by 1 then make button1 not work !!

        return ShowPlayerDialog(playerid, dialogid, style, caption, info, ce_dialog_btn1, button2);
}       

#if defined CE_AUTO       

        #if defined _ALS_ShowPlayerDialog       
                #undef ShowPlayerDialog       
        #else       
                #define _ALS_ShowPlayerDialog       
        #endif       

        #define ShowPlayerDialog CE_ShowPlayerDialog       

        #if defined _ALS_SendClientMessage       
                #undef SendClientMessage       
        #else       
                #define _ALS_SendClientMessage       
        #endif       
        #define SendClientMessage CE_SendClientMessage


        #if defined _ALS_SendClientMessageToAll
                #undef SendClientMessageToAll
        #else       
                #define _ALS_SendClientMessageToAll
        #endif       
        #define SendClientMessageToAll CE_SendClientMessageToAll
 #endif

[Plugin] Long Function Names

$
0
0
Purpose
Normally, Pawn function names cannot exceed 31 characters. This is a limitation of both the compiler and the execution engine, which discards AMX programs with longer function names. This plugin removes this limitation of the AMX engine and allows scripts with longer names (of native functions, public functions, and public variables) to execute normally, without modifications to the names themselves. Other scripts will be unaffected by this plugin.

Other plugins may use this plugin to register natives or call public functions with long names. No special API is required to make this work, since the majority of the AMX API can work with any length. However, you should always use amx_NameLength to retrieve the maximum length used by the script.

You will need a compiler supporting longer function names. Check out my fork which increases the length to 63.

Example
pawn Code:
#include <a_samp>

forward VeryLongPublicFunctionNameExceeding31Characters();
public VeryLongPublicFunctionNameExceeding31Characters()
{
    print("hello!");
}

public OnFilterScriptInit()
{
    CallLocalFunction("VeryLongPublicFunctionNameExceeding31Characters", "");
}

strlen INPUTTEXT

$
0
0
I know its wrong,


if(strlen(inputtext),name,true)


but how to write it correcty? just wanna check if inputtext = same value of name

Ajuda com um comando

$
0
0
Criei esse comando, porém quando eu digito ele, só aparece o nome do jogador, quando era para aparecer "O Admin "Nick do Jogador" está trabalhando" espero que me ajudem. sz

Code:

if (strcmp("/trabalharadm", cmdtext, true, 10) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 1)
        {
            if (PlayerInfo[playerid][pAdmTrab] = 0)
            {
                new String[100], aname[24];
                GetPlayerName(playerid, aname, 24);
                format(String, sizeof(aname), "O Administrador %s está trabalhando", aname);
                SendClientMessageToAll(0xCB34CBAA, aname);
                PlayerInfo[playerid][pAdmTrab] = 1;
                return 1;
            }
            if (PlayerInfo[playerid][pAdmTrab] = 1)
            {
                new String[100], aname[24];
                GetPlayerName(playerid, aname, 24);
                format(String, sizeof(aname), "O Administrador %s está jogando", aname);
                SendClientMessageToAll(0xCB34CBAA, aname );
                PlayerInfo[playerid][pAdmTrab] = 0;
                return 1;
            }
        }

actor move

Viewing all 18226 articles
Browse latest View live


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