Quantcast
Viewing all 18226 articles
Browse latest View live

Delivery

I made a courier delivery system which works pretty well, but i have a question.

I've stored items to deliver in an enum and created a checkpoint using CreateDynamicCheckpoint to unload the package.

My question is, how to give player package money?

This is my code when player starts the mission:

pawn Code:
StartCourierDelivery(playerid, data[e_Courier_Info])
{
    DeliveryCP = CreateDynamicCP(data[DeliveryPosX], data[DeliveryPosY], data[DeliveryPosZ], 10, -1, -1, playerid, 10, -1, 0);

    SCM(playerid, COLOR_GREEN, "Started "WHITE"courier delivery "GREEN"mission"WHITE".");

    SCMEX(playerid, COLOR_GREEN, "Delivering "WHITE"%s "GREEN"to "WHITE"%s.",

    data[PackageName],
    GetLocation(data[DeliveryPosX],
    data[DeliveryPosY],
    data[DeliveryPosZ]));

    SCMEX(playerid, COLOR_GREEN, "Package value: "WHITE"%s "GREEN"- Weight: "WHITE"%.2f %s"GREEN".", formatInt(data[PackageValue]), data[PackageWeight],
    data[PackageWeightMetric]);
    SCM(playerid, COLOR_GREEN, "Head to the "WHITE"checkpoint "GREEN"to unload your delivery package.");

    Player[playerid][pDoingCourierDelivery] = 1;
    Player[playerid][pCP] = CHECKPOINT_DELIVERY;

    if(data[IllegalPackage])
    {
        SCM(playerid, COLOR_GREEN, "You are delivering "WHITE"an illegal package"GREEN". Police have been notified.");
       
        format(MediumString, sizeof(MediumString), "Smuggling Illegal Items - %s", data[PackageName]);
        GivePlayerWantedLevel(playerid, SMUGGLING_ILLEGAL_ITEMS, MediumString);
    }
    return 1;
}

And this is on OnPlayerEnterDynamicCheckpoint:

pawn Code:
if(checkpointid == DeliveryCP)
    {
        if(ReturnPlayerClass(playerid) == CLASS_CIVILIAN && Player[playerid][pDoingCourierDelivery])
        {
            SCM(playerid, COLOR_GREEN, "Package delivered successfully.");

            Player[playerid][pCP] = CHECKPOINT_NONE;
            Player[playerid][pDoingCourierDelivery] = 0;
        }
    }

I wanna remove that simple "Package delivered successfully" and add some info's about player's delivery. What i need to do?

anti proxys / vpn centos 7 (?

I am using 2 servers centos one of them redirects traffic to the server where the samp server is what I need to know is how I can block vpn with iptables in centos 7 so that players cannot use proxies to connect

[Ajuda] Alguém Pode Me Ajuda, Como Criar Permissão Pra Usar O Comando

Como Assim Da Permissão Pra Usar o Comando
Exemplo: Você Prescisa Ser Caminhoneiro Para Usar Esse Comando!
Alguém Pode Me Ajuda?

warning 213: tag mismatch

Code:

C:\Users\Daniel\Documents\BPR COINS\gamemodes\BPR.pwn(51011) : warning 213: tag mismatch
C:\Users\Daniel\Documents\BPR COINS\gamemodes\BPR.pwn(51018) : warning 213: tag mismatch
Pawn compiler 3.2.3664                          Copyright (c) 1997-2016, ITB CompuPhase


4 Warnings.

Code:

        CMD:bonusmissao(playerid, params[])
        {
                if(PlayerInfo[playerid][pAdmin] >= 1340)
                {
                        if(BonusMissao == false)
                        {
                format(stringZCMD, sizeof(stringZCMD), "[BPR SERVER]Bonus De Missão Ativado.");
                SendClientMessageToAll(COR_AMARELO, stringZCMD);
                                BonusMissao = true;
                                return 1;
                        }
                        else if(BonusMissao == true)
                        {
                                  format(stringZCMD, sizeof(stringZCMD), "[BPR SERVER]Bonus De Missão Desativado.");
                SendClientMessageToAll(COR_AMARELO, stringZCMD);
                            BonusMissao = false;
                            return 1;
                          }
                }
                return 1;
        }

Os Warnings São Na Linhas Vermelhas.

warning 213: tag mismatch

Code:

C:\Users\Daniel\Documents\BPR COINS\gamemodes\BPR.pwn(51011) : warning 213: tag mismatch
C:\Users\Daniel\Documents\BPR COINS\gamemodes\BPR.pwn(51018) : warning 213: tag mismatch
Pawn compiler 3.2.3664                          Copyright (c) 1997-2016, ITB CompuPhase


4 Warnings.

Code:

        CMD:bonusmissao(playerid, params[])
        {
                if(PlayerInfo[playerid][pAdmin] >= 1340)
                {
                        if(BonusMissao == false)
                        {
                format(stringZCMD, sizeof(stringZCMD), "[BPR SERVER]Bonus De Missão Ativado.");
                SendClientMessageToAll(COR_AMARELO, stringZCMD);
                                BonusMissao = true;
                                return 1;
                        }
                        else if(BonusMissao == true)
                        {
                                  format(stringZCMD, sizeof(stringZCMD), "[BPR SERVER]Bonus De Missão Desativado.");
                SendClientMessageToAll(COR_AMARELO, stringZCMD);
                            BonusMissao = false;
                            return 1;
                          }
                }
                return 1;
        }


Warnings Are In Red Lines.

Need a Russian translator

I need a guy from Russian to translate English into Russian. We're making a Russian death-match server!

Mysql

I was a scripter and i left it a while ago and i decided to come back so,
I forgot how to run xamp
I need tutorial on how to connect mysql files

Help phpmyadmin no save

Hello how to fix problem ?

Image may be NSFW.
Clik here to view.


server.log
Code:

[23:45:16] UPDATE users SET Newbie = '0', pLytis = '0', pMoney = '0', Credits = '0', pXp = '0', pAdmin = '0', x = '1529.203735', y = '-1692.547973', z = '13.382812',vWorld = '0', interior = '0', pSkin = '59',HouseId = '-1', rHouseId = '-1', RentMoney = '-1', droped = '-1', Car = '0',pBank = '0', pPin = '0', pBankMoney = '0', pLastAction = '0', pActionName = '-', pActionDate = '-',Akat = '0', Bkat = '0', Ckat = '0', gLic = '0', svkPaz = '0', antrankiai = '0', stars = '0',`Leader` = -1, `SubLeader` = -1, `WorkId` = -1, `WorkStatus` = 0, `WorkSkin` = 0, `WorkContract` = 0, `workSalary` = 0,`WorkPoints` = 0, `WorkWarns` = 0, `WorkRank` = 0, `Invited` = -1, `mirtis` = 0, `gangId` = -1, `gangLeadId` = -1 WHERE pName = 'Jack_They'
[23:45:16] UPDATE users SET `GangSkin` = -1, `GangStatus` = 0, `gLicStatus` = 0, `gLicPoints` = 0, `lic1` = 0, `lic2` = 0, `lic3` = -1,`lic4` = 0, `pXp` = 0,`jailed` = 0, `jailtime` = 0, `jailedtimes` = 0, `gangKills` = 0, `gangDeažs` = 0, `gangAttacks` = 0,`gangDeffends` = 0, `alkis` = 100,`pMeras` = 0, `pPatarejas` = 0,`pMeskere` = 0,`pMasalas` = 0,`pValas` = 0,`pEseriai` = 0, `pLynai` = 0,`pKarosai` = 0, `pUpetakiai` = 0, `pVegeliai` = 0,`pEseriu` = 0.000000, `pLynu` = 0.000000,`pKarosu` = 0.000000, `pUpetakiu` = 0.000000, `pVegeliu` = 0.000000,`Telefonas` = 0, `Telmodelis` = 0,`Telstatusas` = 0, `Telsaskaita` = 0.000000, `Telenergija` = 0, `Telkrovimotime` = 0, `TelSim` = 0 WHERE pName = 'Jack_They'


Attached Images
Image may be NSFW.
Clik here to view.
File Type: png
php fix.png (134.3 KB)

Plugin development help

This tutorial is obsolete: https://forum.sa-mp.com/showthread.php?t=295798
Hard to follow all steps, things changed around here in Microsoft Visual Studio and it's hard to find a linker.
Visual Studio Express doesn't exist.

I don't understand anything of ".def" file, can somebody teach me please in steps how to add this file to project?

Procuro Scripter para ajudar na criacao de server FreeRoam Android...Server ja contem algumas coisas

E entao resolvi criar meu proprio server, no proposito de trazer esse server para meus inscritos e outras pessoas ja que sou youtuber SAMP, server e para android, exije poucas coisas ja porque android nao supporta coisas como muitos objetos texdraw e outras coisas mais avançadas, quem quiser mim ajudar e so chamar no meu discord que e esse aqui...FuturDroidBR#6536 ficarei muito grato e feliz quem quiser ajudar, por tambem eu nao saber nada do PEÃO, e to qubrado em termos de ter grana pra mandar alguem produzir o server aos poucos pra mim, e tenho umpouco de falta de tempo por ta ocupado em edicoes e producoes de videos.

TextDraw`û è èõ ïåðåìåùåíèå

Åñòü âîïðîñ ñâÿçàííûé ñ TextDraw`àìè. ß õî÷ó ïëàâíî äâèãàòü òåêñòäðàâû, íî íåìíîãî íå ïîéìó êàê? Ìîæåò åñòü êàêèå-òî ïëàãèíû(èíêëóäû) èëè êàêèå-òî ôèøêè ñ òåêñòäðàâàìè?

[Pedido] Algum Scripter

De buenas pessoal, to querendo continuar um projeto antigo.. ksksksks
um Battle Royale slá como fala, quem quiser vim participar, vem pm.
To querendo um mapper e um scripter pra me ajudar enquanto trampo blz ?
Chama whats

33 9 98807-9814

Flw

Error while registering.

Hey guys I'm trying OSRP script but when i register myself so the dialog disappears and nohting happens then.

then i get a log on server logs .

Code:

[11:26:09] [join] Emilia_Santos has joined the server (0:127.0.0.1)
[11:26:25] The request failed! The response code was: 6

mysql database any everything is connected.

[Ajuda] Range Point em zcmd

To tentando usar este codigo:
Code:

CMD:eat(playerid,params[])
{
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1211.9456, -1319.8834, 13.5581)
        if(Hungry[playerid] > 5)
        {
            SendClientMessage(playerid, COLOR_WHITE, "Voce nao esta mais com fome");
            Hungry[playerid] = 0;
        }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE, "Voce nao esta sentindo fome agora");
        }
        return 1;
}

mas recebo o seguinte erro:
Code:

D:\BlackMesa Role Play\gamemodes\BlackMesa.pwn(690) : error 001: expected token: ")", but found "if"
:(

[Ajuda] Erro no Dialog

O objetivo é o seguinte: O player entra na ammunation, vai até o checkpoint, pisando nele(checkpoint) aparece a "DIALOG_ARMAS" com as CATEGORIAS de armas (Fuzil,Escopeta...). Ok, ele escolheu uma categoria de arma desejada, ai ele seria redirecionado para a DIALOG_ComprarArmas que teria as Armas da categoria que ele escolheu, mas infelizmente eu não estou conseguindo fazer isso, não sei o que é =/


Segue o código abaixo:






Code:

                if(dialogid == DIALOG_ARMAS)
                {
                if(response)
                {
                ShowPlayerDialog( playerid, DIALOG_ComprarArmas, DIALOG_STYLE_TABLIST, "Comprar Armas", "Arma\tPreço\tMunição\n\9mm\tR$1000\t500\n\9mm Silenciada\tR$1100\t500\n\Desert Eagle\tR$1100\t550", "Comprar", "Cancelar");
               
                        if(dialogid == 0)
                        {
                                  GivePlayerWeapon(playerid, 22, 500);
                            SendClientMessage(playerid, 0x41A310AA, "| INFO | Você comprou uma Pistola 9mm com 500 munições!");
                        }
                          if(dialogid == 1)
                          {
                                  GivePlayerWeapon(playerid, 23, 500);
                                  SendClientMessage(playerid, 0x41A310AA, "| INFO | Você comprou uma Pistola 9mm Silenciada com 500 munições!");
                        }
                          if(dialogid == 2)
                        {
                                GivePlayerWeapon(playerid, 24, 550);
                                SendClientMessage(playerid, 0x41A310AA, "| INFO | Voçê comprou uma Pistola Desert Eagle com 550 munições!");
                        }
                }
                        return 1;
        }
                return 0;
}


Quando eu tiro o código da Dialog, compila 100% sem nenhum erro...
Agradeço desde já <3

Aqui são os erros que deram:

Code:

error 027: invalid character constant
error 027: invalid character constant


Unknown Gamemode

Hello I need help about my server, I'm just gonna leave the log here.

Error:

[04:19:18] Error: Function not registered: 'mysql_format'
[04:19:18] Error: Function not registered: 'mysql_tquery'
[04:19:18] Error: Function not registered: 'cache_get_data'
[04:19:18] Error: Function not registered: 'cache_get_field_content'
[04:19:18] Error: Function not registered: 'mysql_escape_string'
[04:19:18] Error: Function not registered: 'mysql_stat'
[04:19:18] Error: Function not registered: 'cache_affected_rows'
[04:19:18] Error: Function not registered: 'mysql_log'
[04:19:18] Error: Function not registered: 'mysql_connect'
[04:19:18] Error: Function not registered: 'mysql_errno'
[04:19:18] Error: Function not registered: 'mysql_close'
[04:19:18] Error: Function not registered: 'cache_get_row'
[04:19:18] Error: Function not registered: 'cache_insert_id'
[04:19:18] Script[gamemodes/MGRP.amx]: Run time error 19: "File or function is not found"
[04:19:18] Number of vehicle models: 0
------------------------------------------------------------------------------------------------------------------
Your help is highly appreciated. If it's cool, you can leave a discord link or any social media link so i can contact you. Thank you!

Adding couple values to Iter

Is there option to add couple values at once?
"for" makes little bit of lag i believe.
Code:

for(new i = 0; i<30; i++)
{
      Iter_Add(test, i);
}
for(new j = 0; j<15; j++)
{
        new rand = Iter_Random(test);
        Player[playerid][DLQuestionMemory][j] = rand;
        Iter_Remove(test, rand);
}

Thanks :)

[Ajuda] Balão não funciona

Então pessoal, o comando de criar balão do sistema parou de funcionar. Já tentei de tudo.

PHP Code:

if(!strcmp(cmdtext"/balaoon"true))
    {
    if(
Algemado[playerid] == 1) return SendClientMessage(playeridVermelho" | ERRO | Você está algemado e não pode usar nenhum comando.");
      if(
preso[playerid] == 1) return SendClientMessage(playeridVermelho" | ERRO | Você está preso e não pode usar nenhum comando.");
    new 
aname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridanameMAX_PLAYER_NAME);
    
format(cqcsizeof(cqc), PASTA_CONTASaname);
    if(
dini_Int(filene(aname),"baarq") == 1) {
    if(
dini_Int(cqc ,"balaoon") == 0) {
     
dini_IntSet(cqc,"balaoon"1);
    if(
AddPlayerBallon(playeridballontype[random(sizeof ballontype)], false)) {
    
ShowPlayerDialog(playeriddialog_informationDIALOG_STYLE_MSGBOX"{E6CC1A}informação""{FFFFFF}controles:\n\n{BEE916}'ENTER' comecar/parar \n\n'Y' mover para cima\n\n'N' mover-se para baixo\n\n'W' para avançar\n\n'S' para mover para trás\n\n'C' para diminuir a velocidade""Sair""");
    return 
1;
    }
    
SendClientMessage(playeridVermelho" | ERRO | Maximo de baloes on aguarde !.");
    return 
1;
    }
    else {
    
SendClientMessage(playeridVermelho" | ERRO | Seu balão a ar já esta ativado.");
    }
    }
    else {
    
SendClientMessage(playeridVermelho" | ERRO | Você não tem um balão a ar compre na loja de utilitarios.");
    }
    return 
true;
    } 

Quando da esse comando fala que "SERVER: command does not exist"

SAMP Crashing when loading

Hello,

I tried to launch SA:MP and I have the latest update and everytime I try and connect or join a server it crashes and takes me back to the desktop? Any fix would be great

I have

Windows 10 Professional 64bit
i7-9700K

Thanks

Problem TextDrawSetString

I was created Loading System, it works.
my function:

PHP Code:

LoadingShow(playeridname[], funcname[], holdtime///Time = milisecond 

TextDraw set string is 'name' and update when value = 100. It hide but when I chat "asdasdasd" String 'name' change is my chat.

How I can fix bug string.
Sorry, my English so bad.

my code:

PHP Code:

stock LoadingShow(playeridname[], funcname[], holdtime///Time = milisecond
{
    
LoadingValue[playerid] = 0;
    
KillTimer(TimeLoad[playerid]);
    
PlayerTextDrawHide(playeridLoadingText[playerid]);
    
SetTimerEx(funcnametime 10000false"ii"playeridhold);
    
TimeLoad[playerid] = SetTimerEx("Load_Value"time 100true"iss"playeridnamefuncname);
    return 
1;
}

forward Load_Value(playeridname[]);
public 
Load_Value(playeridname[])
{
    if(
LoadingValue[playerid] == 100)
    {
        
LoadingValue[playerid] = 0;
        
KillTimer(TimeLoad[playerid]);
        
PlayerTextDrawHide(playeridLoadingText[playerid]);
    }
    else
    {
        new 
string[128];
        
LoadingValue[playerid] ++;
        
format(stringsizeof(string), "%s_%d/100%"nameLoadingValue[playerid]);
        
PlayerTextDrawSetString(playeridLoadingText[playerid], string);
        
PlayerTextDrawShow(playeridLoadingText[playerid]);
    }
    return 
1;


Viewing all 18226 articles
Browse latest View live


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