October 29, 2019, 6:51 am
↧
October 29, 2019, 8:45 am
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_BOSS, 97, -1096.655, -986.483, 129.218);
FCNPC_SetHealth(NPC_BOSS, 100);
//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
↧
↧
October 29, 2019, 10:46 am
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).
↧
October 29, 2019, 11:29 am
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.
↧
October 29, 2019, 9:49 pm
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.683792, 334.666778, "samaps:map");
TextDrawTextSize(TDEditor_TD[1], 116.000000, 92.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);
↧
↧
October 29, 2019, 10:35 pm
Hi, I have made a object with 3ds max, but in-game, it's too big, how can I resize this?
Thanks.
↧
October 29, 2019, 11:44 pm
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.
↧
October 30, 2019, 2:07 am
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 :)
↧
October 30, 2019, 3:54 am
- 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 !!!
↧
↧
October 30, 2019, 4:25 am
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
↧
October 30, 2019, 6:51 am
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.
↧
October 30, 2019, 8:14 am
↧
October 30, 2019, 8:20 am
↧
↧
October 30, 2019, 8:26 am
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
![]()
↧
October 30, 2019, 8:35 am
Box of gunpowder, can be used as a subject for survival servers.
![]()
↧
October 30, 2019, 9:25 am
my idea for this :D rate 1/10
![]()
↧
October 30, 2019, 9:28 am
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(String, sizeof 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;
}
↧
↧
October 30, 2019, 9:35 am
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.
↧
October 30, 2019, 10:12 am
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.
↧
October 30, 2019, 12:35 pm
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
↧