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

[Ajuda] Atualizar variavel

$
0
0
Estou tentado fazer com que uma variável atualize a cada segundo para obter a distância de um checkPoint, já tentei com SetTimerEx e looping. Tem outra opção ?

Estou usando esta função:
PHP Code:

GetPlayerDistanceFromPoint(playeridxyz

Sendo que o x, y e z são do checkPoint. Preciso criar um forward ? Alguém poderia me dar algum exemplo ?

Heres a problem

$
0
0
C:\Users\Anthony's\Desktop\SCRIPT\pawno\include\we apon-config.inc(3982) : error 021: symbol already defined: "IsPlayerPaused"
C:\Users\Anthony's\Desktop\SkylineRP.pwn(4121) : error 035: argument type mismatch (argument 3)
C:\Users\Anthony's\Desktop\SkylineRP.pwn(4122) : error 004: function "mysql_tquery" is not implemented
C:\Users\Anthony's\Desktop\SkylineRP.pwn(4133) : error 035: argument type mismatch (argument 3)
C:\Users\Anthony's\Desktop\SkylineRP.pwn(4134) : error 004: function "mysql_tquery" is not implemented
C:\Users\Anthony's\Desktop\SkylineRP.pwn(4145) : error 035: argument type mismatch (argument 3)
C:\Users\Anthony's\Desktop\SkylineRP.pwn(4146) : error 004: function "mysql_tquery" is not implemented
C:\Users\Anthony's\Desktop\SkylineRP.pwn(4157) : error 035: argument type mismatch (argument 3)
C:\Users\Anthony's\Desktop\SkylineRP.pwn(4158) : error 004: function "mysql_tquery" is not implemented
C:\Users\Anthony's\Desktop\SkylineRP.pwn(4169) : error 035: argument type mismatch (argument 3)
C:\Users\Anthony's\Desktop\SkylineRP.pwn(4170) : error 004: function "mysql_tquery" is not implemented
C:\Users\Anthony's\Desktop\SkylineRP.pwn(4181) : error 035: argument type mismatch (argument 3)
C:\Users\Anthony's\Desktop\SkylineRP.pwn(4182) : error 004: function "mysql_tquery" is not implemented
C:\Users\Anthony's\Desktop\SkylineRP.pwn(4193) : error 035: argument type mismatch (argument 3)
C:\Users\Anthony's\Desktop\SkylineRP.pwn(4194) : error 004: function "mysql_tquery" is not implemented
C:\Users\Anthony's\Desktop\SkylineRP.pwn(4205) : error 035: argument type mismatch (argument 3)
C:\Users\Anthony's\Desktop\SkylineRP.pwn(4206) : error 004: function "mysql_tquery" is not implemented
C:\Users\Anthony's\Desktop\SkylineRP.pwn(4618) : error 035: argument type mismatch (argument 3)

[GameMode] Escudo: RP RolePlay EGRP

$
0
0
Escudo: RP
I created this gamemode back in 2013 before I started College. I unfortunately
never completed it due to college taking up most of my time back then. I was
scratching through my project folders and found this gamemode script I was
developing for my own Roleplay server back in the day. It took me about 9
months to code this after following tutorials and youtube videos to learn
code even the most basic of commands. I mainly coded this because I wanted
to develop my own server because I thought the others wernt developed how
I thought they should be. This was the start of my developing career.

Im not sure how valid this code is still today, but I have come back to release
this code to potentially help others get somewhere with their code. This project has
10 931 lines of code so its alot of examples to take and use for what you need.

All I ask is if you please leave credit where credit is due.

Features
  • Full user system using MySQL
  • Skin Shop
  • Buyable Weapons
  • Buyable Vehicles
  • Buyable Houses


Vehicle System
  • Players can own vehicles
  • Players can buy vehicles from the dealership created by an admin
  • Vehicles have fuel and can run out

House System
  • Houses can be created by a admin and bought by players
  • Houses can be entered by players

Factions System
  • LAPD
  • Police can arrest other players
  • Police have cars to patrol in
  • Police have loadouts
  • Police have a jail to send arrested players to
  • Police can get called with 911

  • LAFMD
  • Medics have a custom HQ
  • Medics have a revive system
  • Mecics can get called with 911

Job System
  • JOBS
  • Weapon Dealership
  • Fedex Delivery
  • Pizza Boy
  • Drug Smuggler
  • Taxi Driver

Download
Attachment 12726

Github
https://github.com/Blademaster680/SA...o--RP-Roleplay

Attached Files
File Type: pwn SA_v0.2.pwn (398.6 KB)

GTADM - Freeroam/Minigames/DM/Gangs - The Return!

$
0
0
​​

Forums: www.GTADM.com
Server IP: 45.77.55.3:7777
Hosted Tab: Yes



GTADM is an unique Freeroam server, which is made in January 2012.

For this entire period, we have gained a very decent reputation among SA:MP communities, based on the positive feedback we receive from players. The server is also on hosted tab . Are you tired of poor Freeroam servers which are totally boring? This might be the right place for you to be in!


Some of GTADM Features:
Freeroam & job system
Jobs: Cop, Whore, Terrorist, Civilian, Drug dealer, Mechanic and Trucker. Every job has it's own role e.g as a Cop you can arrest wanted players. As a whore you can offer blowjob to any players near you. As a Terrorist you can attach bombs to players or even to yourself! Civilian hasn't specific roles, it's like being neutral. As a Drug dealer you can sell drugs. As a Mechanic you can repair any vehicles near you. As a trucker you can play in many different trucking missions. And many more things you can do while having a job in any of these classes.
More than 20 stunt maps - deathmatch is not allowed there. You can also use speedboost, car hop, and tuned vehicles in stunt zones!
16 Deathmatches
3 Team Deathmatches
Achievement system (total 87 medals!)
Unique skills system with EXP (like in runescape)
Gangwars, captureable turfs (total 302 over all San Andreas), gang bases, top 10 gangs, ability to create your own gang!
Cellphone system like in GTA IV - you can SMS, call other players, change background picture of your phone add contacts, and much more!
House & Property system - buy your own car at any car dealer shop (9 car dealers) and spawn your car at any time using /car!
Minigames such as: Race, Parkour, Drift, Cannon, TDM, DM, Sumo, Derby, Pool, Steal The Vehicle, Capture The Flag, Tic-Tac-Toe, Hay Game, Money Game, Counter Strike, Missions, Football, Duel, Fallout, Dive 1, 2, Trucking, Outrun (from NFS Underground).
Event system - Earn Premium Points to buy better mapped houses (which includes opening gates, private vehicles and more!), you can also trade the Premium Points at our Market for other great features such as Neon system and so on
VIP System - we got a lot of satisfied Donators!
All of the things that are ingame were done from scratch and are unique
All of our administrators are helpful and mature, not some childs who are immature, abusing powers and not respecting anyone
And alot more of addictive features...


Why you should join our server?



The answer is simple. As you can see, our list of server components are - as usual - considered as basic criteria for a successful server - but wait, that is totally robotic! Online gameplay is mainly based on interaction with other individuals and knowledge sharing, that is why Grand Theft Auto Deathmatch grants for its members the opportunity to communicate freely and seek for FUN on a daily basis! We proudly possess a very decent forum activity which allows our members to not be alone! Besides, our loyal peace-keepers, also known as administrators, will be at your service 24/7 regardless of the degree of language you have... speaking of language, despite our diversity nation-wise, our members are able to speak English fluently and in a very eye-friendly manner. Good in-game activity, decent forum activity, user friendly game-modes, helpful administrators, a community full of joy... This, is, GTADM!


Why so short advertisement?



Simplicity is very underrated shall I say. There is nothing better than letting the person discover the rest by himself!



That didn't ignite your "appetit"? This might be the right solution!
Join 45.77.55.3:7777 and see yourself.
Thank you for you time!

Help with windows VPS

$
0
0
so I installed every microsoft visual c++ on my new vps because the plugins would not load, after doing that most of them loaded up but I can not get mysql.dll or streamer.dll to load. Any suggestion?

Dialog help

[Map] Interior LSPD #2

[Ajuda] Fatal error

$
0
0
Olá pessoal, estou voltando pro SA-MP, dessa vez realmente animado, esqueci algumas coisas e to precisando de uma ajudinha, não to entendendo esse problema, já procurei no tio gugou mas não entendi

Os erros são esses, todos na linha 378
Code:

error 029: invalid expression, assumed zero
error 017: undefined symbol "cmd_sf"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

Linha 378 até 398
PHP Code:

    CMD:sf(playeridparams)
    
#pragma unused params
    
{
        new 
string[128];
        new 
pname[MAX_PLAYER_NAME];GetPlayerName(playeridpnameMAX_PLAYER_NAME);
        
format(stringsizeof(string), "{00FF00}[SdK]{FFFFFF} %s teleportou-se até {00FF00}SAN FIERRO{00FF00} | {00FF00} /SF {00FF00}|"pname);
        
PlayerPlaySound(playerid11330.00.00.0);
        
SendClientMessageToAll(COLOUR_TELEPORTEstring);
        
SetPlayerInterior(playerid,0);
        if(
GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
        
SetVehiclePos(GetPlayerVehicleID(playerid),-1994.1210,108.9522,27.5391+10);
        
SetVehicleZAngle(GetPlayerVehicleID(playerid),87.9631);
        }
        else
        { 
        
SetPlayerPos(playerid,-1994.1210,108.9522,27.5391);SetCameraBehindPlayer(playerid);
        
SetPlayerFacingAngle(playerid,87.9631); 
        
SetCameraBehindPlayer(playerid);
        return 
1;
    } 

Creio que o código está certo, pois antes estava compilando normalmente, em um outro teleporte que funciona da mesma maneira, só muda posiçao e a mensagem :v

[Map] Interior LSPD

CMD Help

$
0
0
Hey I'm trying to make a CMD that only respawns the player when there are no players around him within a 20 meter radius. The code compiles with no problems, but it doesn't do anything when I enter it in game when my character is injured. Can you please fix it or tell me what I did wrong?

pawn Code:
CMD:accept(playerid, params[])
{
    if(strcmp(params,"death",true) == 0) {
        if(GetPVarInt(playerid, "Injured") == 1) {
            new Float:x,Float:y,Float:z;
            GetPlayerPos(playerid,x,y,z);
            SetPVarInt(playerid, "PlayersNearby", 0);
            for(new i = 0; i<=MAX_PLAYERS; i++) {
                if(!IsPlayerConnected(playerid))continue;
                if(!IsPlayerConnected(i))continue;
                if(i == playerid)continue;
                if(PlayerInfo[playerid][pVW] != PlayerInfo[i][pVW] || PlayerInfo[playerid][pInt] != PlayerInfo[i][pInt])continue;
                if(IsPlayerInRangeOfPoint(i, 20, x, y, z)) {
                    SetPVarInt(playerid, "PlayersNearby", 1);
                    break;
                }
                if(GetPVarInt(playerid, "PlayersNearby") == 0) {
                SendClientMessageEx(playerid, COLOR_WHITE, "You gave up hope and fell unconscious, you were immediately sent to the hospital.");
                KillEMSQueue(playerid);
                ResetPlayerWeaponsEx(playerid);
                SpawnPlayer(playerid);
                }
                else if(GetPVarInt(playerid, "PlayersNearby") != 0) {
                SendClientMessageEx(playerid, COLOR_GREY, "   You can't do this with other players nearby !");
                }
            }
        }
        else {  SendClientMessageEx(playerid, COLOR_GREY, "   You are not injured, you can't do this right now !"); }
    }
    return 1;
}

[Ajuda] - CheckPoint Posto

$
0
0
Bom, quero apenas que quando estiver dentro do checkpoint, dê pra usar o comando /abastecer. Já criei esse código aqui.. mais não sei onde coloco ele, e quando coloco dá erro.

Code:

new check;
        check = CPS_GetPlayerCheckpoint(playerid);
        if(check == AreaPst){


Código que é para adicionar o código de cima:
Code:

if(strcmp(cmd, "/abastecer", true) == 0) {
        new aname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
        format(file, sizeof(file), PASTA_CONTAS, aname);
        new quantidade;
        new pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,sizeof(pName));
        if(IsPlayerInAnyVehicle(playerid) == 0){
        SendClientMessage(playerid, Vermelho, "| ERRO | Você não esta em um veiculo.! ");
        return 1;
        }
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)){
        SendClientMessage(playerid, Vermelho, "| ERRO | /abastecer [litros]");
        return 1;
        }

        if(dini_Int(file ,"CartaoOn") == 0){
        quantidade = strval(tmp);
        if(quantidade <= 0 || GetPlayerGrana(playerid) < quantidade){
        SendClientMessage(playerid, Vermelho, "| ERRO | Você não tem dinheiro suficiente para pagar o frentista.");
        return 1;
        }
        }
        if(dini_Int(file ,"CartaoOn") == 1){
        quantidade = strval(tmp);
        if(quantidade <= 0 || dini_Int(file, "SaldoBancario" )< quantidade) {
        SendClientMessage(playerid, Vermelho, "| ERRO | Saldo bancário insuficiente desative seu cartão de débito /Cartaooff.");
        return 1;
        }
        }
        if(strfind(tmp, "-", true) != -1)
        {
        SendClientMessage(playerid,Vermelho,"| ERRO | Valor inválido!");
        return 1;
        }
        quantidade = strval(tmp);
        format(string, sizeof(string), "/Servidor/posto%d.ini", qual[playerid]);
        if(dini_Int(string, "Gasolina") > quantidade-1){
        if(AreaPosto[0][playerid] == true  || AreaPosto[1][playerid] == true || AreaPosto[2][playerid] == true || AreaPosto[3][playerid] == true || AreaPosto[4][playerid] == true
        || AreaPosto[5][playerid] == true  || AreaPosto[6][playerid] == true || AreaPosto[7][playerid] == true || AreaPosto[8][playerid] == true
        || AreaPosto[9][playerid] == true || AreaPosto[10][playerid] == true || AreaPosto[11][playerid] == true || AreaPosto[12][playerid] == true || AreaPosto[13][playerid] == true
        || AreaPosto[14][playerid] == true || AreaPosto[15][playerid] == true || AreaPosto[16][playerid] == true || AreaPosto[17][playerid] == true || AreaPosto[18][playerid] == true || AreaPosto[19][playerid] == true){
        if(quantidade + dini_Int(file, "Combustivel") < 300){
        dini_IntSet(file, "Combustivel", dini_Int(file, "Combustivel") + quantidade);
        dini_IntSet(string, "Gasolina", dini_Int(string, "Gasolina")-quantidade);
        format(string, sizeof(string), "| INFO | Você completou seu tanque com %d litros de combustível.", quantidade);
        SendClientMessage(playerid, Verde, string);
        if(dini_Int(file ,"CartaoOn") == 1){
        dini_IntSet(file, "SaldoBancario", dini_Int(file, "SaldoBancario")- quantidade);
        SendClientMessage(playerid, VerdeClaro, "| INFO | Seu Cartão de credito está ativado e foi descontado do seu banco ! .");
        }else{
        GivePlayerGrana(playerid, - quantidade);
        }
        return 1;
        }
        if(quantidade + dini_Int(file, "Combustivel")){
        new quantia;
        quantia = 100 - dini_Int(file, "Combustivel");
        dini_IntSet(file, "Combustivel", 300);
        dini_IntSet(string, "Gasolina", dini_Int(string, "Gasolina")-100);
        format(string, sizeof(string), "| INFO | tanque cheio foram colocados %d litros.", quantia);
        SendClientMessage(playerid, Verde, string);
        if(dini_Int(file ,"CartaoOn") == 1){
        dini_IntSet(file, "SaldoBancario", dini_Int(file, "SaldoBancario")- quantidade);
        SendClientMessage(playerid, VerdeClaro, "| INFO | Seu Cartão de credito está ativado e foi descontado do seu banco ! .");
        }else{
        GivePlayerGrana(playerid, - quantia);
        }
        return 1;
        }
        }else{
        SendClientMessage(playerid, Vermelho, "Você não está no posto.");
        return 1;
        }
        }else{
        SendClientMessage(playerid, Vermelho, "O posto não tem todo este combustivel chame um petroleiro.");
        }
        return 1;
        }


Bom, caso alguém me ajude, estarei muito agradecido.. e tudo de bom! Obrigado.;)

[Ajuda] Textdraw diferentes

$
0
0
Como posso fazer txt diferentes por exemplo, redondas e com o final delas transparentes? vi isso em vários servidor e hoje me despertou essa dúvida

[AJUDA] Sistema de /entrar, e /sair

$
0
0
Não Estou Achando Como Fazer um Sistema de entrar em um interior com o comando /ENTRAR somente se pessoa estiver nesse local do Icone (Ex: uma estrela ou uma seta para baixo)E TBM, COMO COLOCAR ESSE ICONES. SOU BEM NOVO NO PAWNO!

Daily bonus system

$
0
0
Someone can help me how to make daily bonus system? Everyday player will claim reward,, but in weekend the player will claim extra reward... someone can help me? Im using Y_INI system in my server.

[Ajuda] Porque alguns tiros não desce a vida do jogador?

$
0
0
Pessoal estou fazendo esse poste pois vi que muitos servidores tem esse bug inclusive o meu. Acho que vcs ja devem saber do que estou falando, alguns tiros que voce acerta no jogador nao desce a vida dele e vice-versa, quero saber a causa disso.

[Map] Interior LSPD

I need help for this script :( !!

$
0
0
public OnPlayerEnterCheckpoint(playerid)
{
new string[256];
switch(JobCp[playerid]) {
case 1: {
DisablePlayerCheckpoint(playerid);
JobCp[playerid] = 0;
SendClientMessage(playerid, 0xE4810AFF, "Acum poti tasta /startwork!");
}
case 2: SetPlayerCheckpoint(playerid, -2787.7009, -326.3154, 6.1146, 7.0), JobCp[playerid] ++;
case 3: SetPlayerCheckpoint(playerid, -0.8400, -17.5200, 3.5400, 7.0), JobCp[playerid] ++;
case 4: SetPlayerCheckpoint(playerid, -1858.0089, 1398.5632, 6.3920, 7.0), JobCp[playerid] ++;
case 5: SetPlayerCheckpoint(playerid, -1523.4014, 495.0647, 6.4082, 7.0), JobCp[playerid] ++;
case 6: SetPlayerCheckpoint(playerid, -2126.6016, 208.5466, 34.5315, 7.0), JobCp[playerid] ++;
case 7: SetPlayerCheckpoint(playerid, -2780.6438, -320.0563, 6.1670, 7.0), JobCp[playerid] ++;
case 8: {
DisablePlayerCheckpoint(playerid);
new money = 25000 + random(20000);
format(string, sizeof(string) "Ai terminat munca si ai primit $%d !", money);
SendClientMessage(playerid, 0x0F59DAFF, string);
GivePlayerMoney(playerid, money);
FinalJob[playerid];
}

}

return 1;
}




















Have This error&Warning :


C:\Users\Alex Maftei\Desktop\Server! DA DOAMNE!!\pawno\Inceputul.pwn(85) : warning 211: possibly unintended assignment
C:\Users\Alex Maftei\Desktop\Server! DA DOAMNE!!\pawno\Inceputul.pwn(92) : warning 211: possibly unintended assignment
C:\Users\Alex Maftei\Desktop\Server! DA DOAMNE!!\pawno\Inceputul.pwn(99) : warning 211: possibly unintended assignment
C:\Users\Alex Maftei\Desktop\Server! DA DOAMNE!!\pawno\Inceputul.pwn(137) : warning 211: possibly unintended assignment
C:\Users\Alex Maftei\Desktop\Server! DA DOAMNE!!\pawno\Inceputul.pwn(233) : error 001: expected token: ",", but found "-string-"
C:\Users\Alex Maftei\Desktop\Server! DA DOAMNE!!\pawno\Inceputul.pwn(233) : warning 215: expression has no effect
C:\Users\Alex Maftei\Desktop\Server! DA DOAMNE!!\pawno\Inceputul.pwn(233) : warning 215: expression has no effect
C:\Users\Alex Maftei\Desktop\Server! DA DOAMNE!!\pawno\Inceputul.pwn(233) : error 001: expected token: ";", but found ")"
C:\Users\Alex Maftei\Desktop\Server! DA DOAMNE!!\pawno\Inceputul.pwn(233) : error 029: invalid expression, assumed zero
C:\Users\Alex Maftei\Desktop\Server! DA DOAMNE!!\pawno\Inceputul.pwn(233) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
[Finished in 0.2s]



I only need help for line 233

[Ajuda] Pequeno Problema

$
0
0
Bom estou com um pequeno problema.
Jogador AFK não toma dano.
Tem como corrigir ou é propio do samp?

help please

$
0
0
Hello, i have a problem
C:\Users\IceNan\Desktop\Astra\gamemodes\new.pwn(25 164) : error 029: invalid expression, assumed zero
C:\Users\IceNan\Desktop\Astra\gamemodes\new.pwn(25 164) : warning 215: expression has no effect
PlayerInfo[playerid][pPayDayHad] < = 0; return SendClientMessage(playerid, COLOR_WHITE, "{fff700}no have a {00FF00}3{fff700}hours");
how to fix?:(

MySQL Query Help

$
0
0
pawn Code:
CountClanMembers(clanid, &dest)
{
    new query[128], Cache:result, rows;
    format(query, sizeof(query), "SELECT COUNT(*) FROM `clans` WHERE `cID` = '%i'", clanid);
    result = mysql_query(1, query); //415
    if(mysql_errno() != 0)
    {
        return printf("Query could not be completed due to error: %s", query);
    }
    cache_get_value_index_int(rows, result, dest); //420
    cache_delete(result);
    return 1;
}
Code:

(415) : warning 213: tag mismatch
(420) : warning 213: tag mismatch

What's problem?
I'm use mysql version R41-4
Viewing all 18226 articles
Browse latest View live


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