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

RED DEAD REDEMPTION 2 [PC]


[Ajuda] FCNPC crashando servidor

$
0
0
Olá, postei esse mesmo problema no fórum inglês mas ninguém me respondeu então estou recorrendo a vocês.

Meu problema é que quando eu executo o comando "/spawnboss" o meu servidor crasha(ele fecha sozinho).

Meu código:

PHP Code:

#include <YSI\y_hooks>
#include <FCNPC>

new 
    
NPC_BOSS,
    
Timer_Movement;

CMD:spawnboss(playerid)
{
    
NPC_BOSS FCNPC_Create("boss");
    
FCNPC_Spawn(NPC_BOSS97, -1096.655, -986.483129.218);
    
FCNPC_SetHealth(NPC_BOSS100);
    
//Timer_Movement = SetTimer("MovementBoss", 8 * 1000, true);

    
SendClientMessageToAll(-1"{FF0000}<!> {FFFFFF}The boss has spawned!");
    return 
1;


Eu não consigo nem ver as logs pois meu computador está com um problema na qual ele não gera o arquivo de texto referente as logs do servidor, ae não consigo ver exatamente o problema.

Meu server.cfg está desse jeito:

PHP Code:

echo Executing Server Config...
lanmode 0
rcon_password 123456789
maxplayers 50
port 7777
hostname SA
-MP 0.3 Server
gamemode0 main
filterscripts 
plugins mysql streamer sscanf FCNPC
announce 0
chatlogging 0
weburl www
.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 20
logtimeformat 
[%H:%M:%S]
language English 

Textdraw bug

$
0
0
So, i just come across a bug on my server about textdraw.
I have many textdraw also on the server, but seems that 2 textdraw are come across and returning bouth of them ID 0

I have a variable, hud_fps[playerid] where i create the textdraw, the textdraw has id 69 (because I debugged the variable), then when i'm enter to the paintball system (where i have also a textdraw), the hud_fps[playerid] is no more returning id 69, is now returning id 0, and also, the paintball textdraw is retruning 0.

How to fix this problem? (I also have timers for both of them to change at every seconds in order to updated the player fps and the player kills at paintball).

Icon.

$
0
0
Is it possible to set a "player" icon to a moving object "plane" and later destroy it/hide, without using NPC's as moving object.

[Ajuda] É possível dar zoom no sprite textdraw?

$
0
0
Eu queria saber se é possível dar zoom no sprite textdraw.

No preview model é possível dar zoom, eu queria saber se é possível dar zoom no sprite:

PHP Code:

TDEditor_TD[1] = TextDrawCreate(16.683792334.666778"samaps:map");
TextDrawTextSize(TDEditor_TD[1], 116.00000092.000000);
TextDrawAlignment(TDEditor_TD[1], 1);
TextDrawColor(TDEditor_TD[1], -1);
TextDrawSetShadow(TDEditor_TD[1], 0);
TextDrawBackgroundColor(TDEditor_TD[1], 255);
TextDrawFont(TDEditor_TD[1], 4);
TextDrawSetProportional(TDEditor_TD[1], 0); 

Custom Object Resize

$
0
0
Hi, I have made a object with 3ds max, but in-game, it's too big, how can I resize this?
Thanks.

Worth it? [Conversion 0.3DL]

$
0
0
Hi People.
I didn't know whether to create the thread here or in sa:mp 0.3DL, I wanted to ask everyone.
They think it's worth it converting GTA IV to sa: mp 0.3DL? I ask this question, because of the current situation of sa: mp, and because it is a map that in case of being converted to sa: mp, I will optimize it, but I don't want to do a job in vain, so I want to have an opinion of everybody.

Lots of errors

$
0
0
The line with the error is:
Code:

pData[playerid][Bases][BaseIndex] = strval(ParamValue)
I get these errors:
warning 215: expression has no effect
error 001: expected token: ";" but found "["
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";" but found "]"
fatal error 107: too many error messages on one line

Any help is appreciated :)

Show the chatlog for Adminstrator

$
0
0
- Heyyy, I want to ask the support person to show the chatlog for Adminstrator.

- This is my code. If I use " <= " then everyone on the server will see it, but I want only Adminstrator 2 or above to see it. Left all do not see this message.

Code:

            GetPlayerNameEx(playerid);
            format(string, sizeof(string), "** [%s], Da su dung dich vu the ra tu.", GetPlayerNameEx(playerid));
            foreach(new i : Player)
            {
                if(PlayerInfo[playerid][pAdmin] <= 2)
                SendClientMessageEx(i, COLOR_LIGHTRED, string);
            }

Code:

    new string[54];
    GetPlayerNameEx(playerid);
    format(string, sizeof(string), "** Chao mung, [%s] da dang nhap vao server.", GetPlayerNameEx(playerid));
    foreach(new i : Player)
    {
        if(PlayerInfo[playerid][pAdmin] <= 2)
        SendClientMessage(i, COLOR_LIGHTBLUE, string);
    }

- If I use " >= " then the Adminstrator doesn't see any message.
- Why is that ? I need your help please !!!

Centos 7 MEM_get_val

$
0
0
Hi all, it gives mem error in centos 7 It comes from PreiwDialogModel.inc but it doesn't match centos 7
although the current version

[10:20:11] [debug] MEM_get_val
[10:20:11] [debug] MEM_get_arr
[10:20:11] [debug] MEM_new
[10:20:11] [debug] MEM_set_val
[10:20:11] [debug] MEM_delete
[10:20:11] [debug] MEM_set_arr
[10:20:11] [debug] Run time error 19: "File or function is not found"
[10:20:11] [debug] MEM_get_val
[10:20:11] [debug] MEM_get_arr
[10:20:11] [debug] MEM_new
[10:20:11] [debug] MEM_set_val
[10:20:11] [debug] MEM_delete
[10:20:11] [debug] MEM_set_arr


System : Centos 7

Helpp

[Ajuda] Gerar Object dentro de um limite

$
0
0
Então pessoal, tenho uma dúvida para tirar com vocês.

Bom quero criar um objeto dentro de uma área, por exemplo:

Code:

// Vou criar uma GangZone na posição que o ADM digitar o comando//

GetPlayerPos(playerid, x, y, z);
GzAreaDeDrop = GangZoneCreate(x-250, y-250, x+250, y+250);
GangZoneShowForAll(GzGuerra, 0x00FF0055);

Como posso criar posições aleatórias dentro dessa área ?

Obs: Já sei como obter o z, quero apenas o X e o Y.

Cutscene and Beta skins

$
0
0
Hello, I'm posting the download links for GTA: SA Custscene and Beta skins. I haven't created them, they're from game files. I hope you will find some use for them!

Beta skins
https://www.gta-multiplayer.cz/downl...beta_skins.zip

lvpdm1 - Beta LVPD bike patrol from GTA: SA files


sfpdm1 - Beta SFPD bike patrol from GTA: SA files


wmycd2 - Beta cab driver from GTA: SA files


Cutscene skins
https://www.gta-multiplayer.cz/downl...cene_skins.zip

sa_bdup - B-Dup


sa_bettina


sa_farlie - Ran Fa Li


sa_bogman


sa_burger1


sa_jose - Jose


sa_fam4 - Grove Street gang member


sa_fam5 - Grove Street gang member


sa_kendl - Kendl


sa_salvatore - Salvatore


sa_silverman


sa_slut


sa_suit2

Cutscene props

$
0
0
Hello, I'm posting the download links for GTA: SA Custscene props. I haven't created them, they're from game files. I hope you will find some use for them!

cscrackpipe - Crack pipe
https://www.gta-multiplayer.cz/downl...scrackpipe.zip


csbong - Bong
https://www.gta-multiplayer.cz/downl...els/csbong.zip


csryderbrew - Ryder's pot
https://www.gta-multiplayer.cz/downl...sryderbrew.zip


barrelexpos - Explosive barrel with fixed textures
https://www.gta-multiplayer.cz/downl...arrelexpos.zip


michdr - Garage door for Michelle's garage (doesn't crash game unlike the default object from GTA: SA)
https://www.gta-multiplayer.cz/downl...els/michdr.zip

jud_lan - Garage door for garage from mission Life's a Beach (doesn't crash game unlike the default object from GTA: SA)
https://www.gta-multiplayer.cz/downl...ls/jud_lan.zip

Neons and taxi light

$
0
0
Hello, I'm releasing some neon lights and taxi lights I've created for my server. It is SA-MP light object edited in 2dfx editor (thus it uses MatLights texture).

- The objects emit light even during daytime
- Smaller neon lights for bikes
- Yellow light for taxi sign
- The neons don't have any collision or light, just coloured shadow on the ground

https://www.gta-multiplayer.cz/downl...els/lights.zip



[object] powder

$
0
0
Box of gunpowder, can be used as a subject for survival servers.



Attached Files
File Type: zip powd.zip (230.6 KB)

[Textdraw] Car Buy Advance

[Ajuda] DOF2 Salvamento

$
0
0
Galera eu fiz esse salvamento para armazenar valores porém estou com um erro e não sei identificar

Erro dado: error 017: undefined symbol "ArqValor"

PHP Code:

new VehicleParts[4];

public 
OnGameModeInit()
{
    
SalvarMec();
    return 
1;
}

stock PegarValor(ArqValor[])
{
    
format(Stringsizeof String"Valor.ini"ArqValor);
    return 
String;
}

stock SalvarMec()
{
    
String PegarValor(ArqValor); // LINHA DO ERRO
    
    
if(!DOF2_FileExists(String))
    {
        
DOF2_CreateFile(String);
        
DOF2_SetInt(String"Pneus"VehicleParts[0]);
        
DOF2_SetInt(String"Portas"VehicleParts[1]);
        
DOF2_SetInt(String"Capo"VehicleParts[3]);
        
DOF2_SaveFile();
    }
    return 
1;


help me about hackers

$
0
0
Hello guys.
Today i am here and also worries about hackers
actually there's one player who attack my server again and again and do multi hacks
The hack is that he hack minigun and trying to killing players but when he killed any player with minigun( just in a sec) it shows that he killed players with deagle.
I ban him but he come right a moment ago.
Please tell me what should i do which type of anticheat should i use.
Please give me anticheat scripts to add in my server's script to stop him
Thanks.

[Ajuda] Como Colocar o Nome do Player Na Dialog Input?

$
0
0
Será Que Algum De Você Pode me ajuda?
Queria "Saber" Como Colocar o Nome Do Player Na Dialog INPUT, Procurei no Search Não Achei nada que poderia ne ajuda.

[Pedido] Função de mover itens dentro do inventario

$
0
0
Olá, eu estou quebrando a cabeça, mas não acho em nenhum lugar uma função para mover itens dentro do inventario feito em TextDraw.
Exemplo:
Aqui seria um inventario em TextDraw

Inventário

Item A Parte da skin Slot vazio1 Slot vazio2 Slot vazio3
Item B Parte da skin Slot vazio4 Slot vazio5 Slot vazio6
Item C Parte da skin Slot vazio7 Slot vazio8 Slot vazio9
Item D Parte da skin Slot vazio10 Slot vazio11 Slot vazio12

Ai eu gostaria de uma função para que por exemplo o item "A" fosse selecionado e depois quando a pessoa clicar no "Slot vazio5" ele fosse para lá, o "Item B" fosse para o "Slot vazio12" e o "Item C" fosse para o "Slot vazio7" assim sucessivamente quando os itens fossem selecionados, apenas.

Ficando:

Inventário

Item vazio Parte da skin Slot vazio1 Slot vazio2 Slot vazio3
Item vazio Parte da skin Slot vazio4 Item A Slot vazio6
Item vazio Parte da skin Item C Slot vazio8 Slot vazio9
Item D Parte da skin Slot vazio10 Slot vazio11 Item B
Viewing all 18226 articles
Browse latest View live


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