Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,743
» Latest member: venpue
» Forum threads: 2,368
» Forum posts: 12,318

Full Statistics

Online Users
There are currently 458 online users.
» 0 Member(s) | 455 Guest(s)
Google, Bing, Applebot

Latest Threads
jtfhftuj
Forum: Releases
Last Post: venpue
Yesterday, 05:36 AM
» Replies: 0
» Views: 18
djdhthf
Forum: Pawn Scripting
Last Post: venpue
Yesterday, 05:30 AM
» Replies: 0
» Views: 19
wawata
Forum: Questions and Suggestions
Last Post: venpue
Yesterday, 05:28 AM
» Replies: 0
» Views: 17
PROJECT: LOS ANGELES — TH...
Forum: Advertisements
Last Post: DevonH
2025-12-06, 01:43 AM
» Replies: 3
» Views: 660
Zona América del Sur DM+ ...
Forum: Advertisements
Last Post: kevinberriosflores
2025-12-05, 10:59 PM
» Replies: 0
» Views: 28
Real-time pathfinder, opt...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-12-05, 02:06 PM
» Replies: 0
» Views: 61
The size of the output am...
Forum: Questions and Suggestions
Last Post: scandalfive
2025-12-01, 07:07 PM
» Replies: 0
» Views: 80
Garsiono's, Ricardo's, Tr...
Forum: Advertisements
Last Post: drwnrbbt
2025-12-01, 10:15 AM
» Replies: 0
» Views: 74
After School Roleplay [ R...
Forum: Advertisements
Last Post: cosminupgaming
2025-11-29, 09:39 PM
» Replies: 1
» Views: 326
Voltage Roleplay [English...
Forum: Advertisements
Last Post: JamesC
2025-11-29, 09:27 PM
» Replies: 0
» Views: 77

 
Exclamation [Help] load vehicle onto flatbed cmd.
Posted by: Disretired - 2021-01-30, 12:05 AM - Forum: Pawn Scripting - Replies (1)

Hello again, hopefully this is the last time I will need help. So our community is looking to have the ability to load a car onto the flatbed (DFT) and it stay on for towing purposes. Now our base script did have a command for this however those commands do not work and even on the original server that our script was based off of it never worked.



Below I've attatched the pastebin link of what flatbed towing system came with the server, if anyone knows how to repair it and make it work, or where I could find a public released script/filter that can allow us to load and unload vehicles from a flatbed that would be greatly appreciated. any fix will be of course credited in our gamemode.



https://pastebin.com/DZS0pZiR


  Gamemode does not compile using YSI includes
Posted by: Frajola - 2021-01-29, 11:18 PM - Forum: Support - Replies (3)

Hello guys, I'm developing my gamemode in module, and recently I decided to implement YSI includes to use y_iterate and y_hooks.?



However when adding YSI includes, declare y_iterate and remove the foreach my gamemode does not compile, it doesn't display any errors, it just doesn't compile.



I'm just using the player loop in my scripts: "foreach (new i: Player)"



The only thing I did was install the latest version (5.4.102) of YSI includes, remove the include foreach declaration: "#include <foreach>", and declare the new one, which is y_iterate: "#include <YSI_Data \ y_iterate> ". only that.


Exclamation [Ayuda] 4 errores
Posted by: Kaiser - 2021-01-29, 10:11 PM - Forum: Programaci?n - Replies (1)

Buenas de nuevo jaja, ac? tengo 4 erroes y ya intente varias cosas pero no encuentro la soluci?n, me podr?an decir que puedo hacer.



Code:
gamemodes\Gamemode.pwn(21163) : error 029: invalid expression, assumed zero

gamemodes\Gamemode.pwn(21163) : error 029: invalid expression, assumed zero

gamemodes\Gamemode.pwn(21163) : error 076: syntax error in the expression, or invalid function call

gamemodes\Gamemode.pwn(21163) : fatal error 107: too many error messages on one line



Linea del error:



Code:
format(string,sizeof(string),"Pizzas: ~r~%d~w~ /~g~ 5",dMaletero[GetPlayerVehicleID](playerid)); // Cambiar variables por el maletero



Linea completa.



Code:
funcion MostrartTextoPizzero(playerid)

{

? ? new string[56];

? ? format(string,sizeof(string),"Pizzas: ~r~%d~w~ /~g~ 5",dMaletero[GetPlayerVehicleID](playerid)); // Cambiar variables por el maletero

? ? TextoPizza[0][playerid] = CreatePlayerTextDraw(playerid,510.000000, 170.000000, string);

? ? PlayerTextDrawBackgroundColor(playerid,TextoPizza[0][playerid], 255);

? ? PlayerTextDrawFont(playerid,TextoPizza[0][playerid], 1);

? ? PlayerTextDrawLetterSize(playerid,TextoPizza[0][playerid], 0.300000, 1.000000);

? ? PlayerTextDrawColor(playerid,TextoPizza[0][playerid], -1);

? ? PlayerTextDrawSetOutline(playerid,TextoPizza[0][playerid], 1);

? ? PlayerTextDrawSetProportional(playerid,TextoPizza[0][playerid], 1);

? ? PlayerTextDrawSetSelectable(playerid,TextoPizza[0][playerid], 0);*/





El sistema consiste en un maletero para las motos del trabajo de pizzero, lo encontre desactivado esa funcion en la GM con la que estoy aprendiendo, ya intente cambiar la variable a maletero, pero me marca otro error, y aparte los dem?s que salen.


  no load player textdraw all
Posted by: nbx2000 - 2021-01-29, 09:13 PM - Forum: Pawn Scripting - Replies (4)

hello I have problems with player textdraw stats is only shown to a player and alos player is not shown they do not load why?

Code:
new PlayerText:Stat[MAX_PLAYERS];

new PlayerText:FPG[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{

? ? HCB(playerid);


public OnPlayerSpawn(playerid)
{

PlayerTextDrawShow(playerid, FPG[playerid]);
PlayerTextDrawShow(playerid, Stat[playerid]);

return;1
forward UpdatePlayer(playerid);
public UpdatePlayer(playerid)
{
new sstring[256];
format(sstring,sizeof(sstring),"~r~~h~score: ~w~%d ~r~~h~kills: ~w~%d ~r~~h~deaths: ~w~%d ~r~~h~vip: ~w~%d ~r~~h~Exp: ~w~%d ~r~~h~HeadShoot: ~w~%d ~r~~h~rank: ~w~%s",GetPlayerScore(playerid),PlayerInfo[playerid][Kills],
PlayerInfo[playerid][Deaths],PlayerInfo[playerid][vip],PlayerInfo[playerid][XPX],PlayerInfo[playerid][HST],GetXP(playerid));
? ? PlayerTextDrawSetString(playerid,Stat[playerid], sstring);

new FPSSS = GetPlayerDrunkLevel(playerid), fps;
if (FPSSS < 100) { SetPlayerDrunkLevel(playerid, 2000);
} else {
if (FPSSS != FPSS[playerid])
{
? fps = FPSS[playerid] - FPSSS;
? if (fps > 0 && fps < 200) FPS[playerid] = fps; FPSS[playerid] = FPSSS;
? }
}// BY Tribisk
new Fstring[60];
format(Fstring,sizeof(Fstring),"~r~~h~fps:~w~ %d? ~r~~h~Ping: ~w~%d",FPS[playerid],GetPlayerPing(playerid));
? ? PlayerTextDrawSetString(playerid,FPG[playerid], Fstring);
return 1;
}

stock HCB(playerid)
{

Stat[playerid] = CreatePlayerTextDraw(playerid, 302.588287, 426.416839, "_");
PlayerTextDrawLetterSize(playerid, Stat[playerid], 0.235881, 0.958333);
PlayerTextDrawAlignment(playerid, Stat[playerid], 2);
PlayerTextDrawColor(playerid, Stat[playerid], -1);
PlayerTextDrawSetShadow(playerid, Stat[playerid], 0);
PlayerTextDrawSetOutline(playerid, Stat[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Stat[playerid], 51);
PlayerTextDrawFont(playerid, Stat[playerid], 2);
PlayerTextDrawSetProportional(playerid, Stat[playerid], 1);

FPG[playerid] = CreatePlayerTextDraw(playerid, 547.765014, 28.000236, "_");
PlayerTextDrawLetterSize(playerid, FPG[playerid], 0.155411, 1.284999);
PlayerTextDrawAlignment(playerid, FPG[playerid], 1);
PlayerTextDrawColor(playerid, FPG[playerid], -1);
PlayerTextDrawSetShadow(playerid, FPG[playerid], 0);
PlayerTextDrawSetOutline(playerid, FPG[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, FPG[playerid], 51);
PlayerTextDrawFont(playerid, FPG[playerid], 2);
PlayerTextDrawSetProportional(playerid, FPG[playerid], 2);
return 1;
}


  Servidor Scavenge n?o faleceu
Posted by: Friaux - 2021-01-29, 05:10 AM - Forum: Portuguese/Portugu?s - No Replies

venho por?meio desse t?pico anunciar que estou recriando o servidor de scavenge and survive, servidor ? antigo por?m ? um?modo de sobrevivencia dos?melhores que eu acho queria pedir a ajuda sei que a comunidade samp est? passando por um certo perrengue

sei que tambem ? um?modo de jogo esquecido e aqueles que querem ajudar estou aqui a disposi??o ? s? enviar uma?mensagem

IP Do servidor para conex?o

forum do servidor para registro.


  Ajuda - Round Time e Mapas
Posted by: pushline - 2021-01-28, 11:37 PM - Forum: Portuguese/Portugu?s - No Replies

Tenho um metodo de mudar de mapas (DM) e quero fazer um round time com textdraw que se mude sozinha (estilo payday de rpg)

Tenho um settimer com 600000 de dura??o, como eu poderia fazer para que esse textdraw ganhe esse tempo e comece a contar sozinho e abaixando, e quando chegar a 0 mudar o map? E tem algum modo que esse switch(area) seja menor?



codigo:



PHP Code:
function::ChangeArea()

{

KillTimer(tbase); KillTimer(inicio);

LastVote GetTickCount();

tbase SetTimer("ChangeArea",6000001);

area randomEx(1MAX_MAPS);



? ? switch(
area)

{

case 
1: {mapname "San Andreas";}

case 
2: {mapname "BlackField";}

case 
3: {mapname "Last Dime Motel";}

case 
4: {mapname "Foster Valley";}

case 
5: {mapname "Missionary Hill";}

case 
6: {mapname "Los Santos International";}

case 
7: {mapname "North Rock";}

case 
8: {mapname "Golf Course";}

case 
9: {mapname "Prickle Pine";}

case 
10: {mapname "Verona Beach";}

case 
11: {mapname "Roda Gigante";}

case 
12: {mapname "Pilgrim";}

case 
13: {mapname "Whitewood Estates";}

case 
14: {mapname "BlackField Chapel";}

case 
15: {mapname "Juniper Hollow";}

case 
16: {mapname "Parque Glen";}

case 
17: {mapname "Ganton";}

case 
18: {mapname "Estacao Unity";}

case 
19: {mapname "Mansao dos Lockwood";}

case 
20: {mapname "Tierra Robada";}

case 
21: {mapname "Las Barrancas";}

case 
22: {mapname "Las Venturas Airport";}

case 
23: {mapname "Hilltop Farm";}

case 
24: {mapname "Palomino Creek";}

case 
25: {mapname "Ocean Docks";}

case 
26: {mapname "SF Bridge";}

case 
27: {mapname "Redsands West";}

case 
28: {mapname "Vale Ocultado";}

case 
29: {mapname "Bone County";}

case 
30: {mapname "Big Fabrica";}

case 
31: {mapname "Spread Ranch";}

case 
32: {mapname "Leafy Hollow";}

case 
33: {mapname "Construcao";}

case 
34: {mapname "Lunk Yard";}

case 
35: {mapname "Doherty";}

case 
36: {mapname "Quarry";}

case 
37: {mapname "Broken City";}

case 
38: {mapname "Diablo";}

case 
39: {mapname "GreenGlass College";}

case 
40: {mapname "The Esmerald Isle";}

case 
41: {mapname "Idlewood";}

case 
42: {mapname "Pracinha";}

case 
43: {mapname "Casarao";}

case 
44: {mapname "Country Side";}

case 
45: {mapname "Construcao LV";}

case 
46: {mapname "The Big Ear";}

case 
47: {mapname "Rock Hotel";}

case 
48: {mapname "Creek";}

case 
49: {mapname "Estacionamento LV";}

case 
50: {mapname "Arena Life";}

case 
51: {mapname "Pista de Skate";}

case 
52: {mapname "The High Roller";}

case 
53: {mapname "Conference Center";}

case 
54: {mapname "Rodovia";}

case 
55: {mapname "East Los Santos";}

case 
56: {mapname "Los Flores";}

case 
57: {mapname "Los Vagos";}

case 
58: {mapname "Marina";}

case 
59: {mapname "Tony's liquor";}

case 
60: {mapname "Big Smoke Hood";}

case 
61: {mapname "Area 51";}

case 
62: {mapname "Bacres";}

case 
63: {mapname "Bayside";}

case 
64: {mapname "Esplanade North";}

case 
65: {mapname "Fort Carson";}

case 
66: {mapname "Green Palms";}

case 
67: {mapname "Pershing Square";}

case 
68: {mapname "Regular Tom";}

case 
69: {mapname "San Fierro Beach";}

case 
70: {mapname "Temple";}

case 
71: {mapname "Jesus Hood";}

case 
72: {mapname "Fintersection";}

case 
73: {mapname "Cluckin Bell";}

case 
74: {mapname "Gay Square";}

case 
75: {mapname "Condominio SF";}

case 
76: {mapname "Hoff Park";}

case 
77: {mapname "Chafaris";}

case 
78: {mapname "Santa Flora";}

case 
79: {mapname "Juniper Hollow";}

case 
80: {mapname "Calton Heights";}

case 
81: {mapname "Queens";}

case 
82: {mapname "Garden Center";}

case 
83: {mapname "Angelpine";}

case 
84: {mapname "Navio";}

case 
85: {mapname "Golf";}

case 
86: {mapname "Lsujo";}

case 
87: {mapname "Avispa";}

case 
88: {mapname "Ebasin";}

case 
89: {mapname "Come-a-lot";}

case 
90: {mapname "Hankypanky";}

case 
91: {mapname "Red County";}

case 
92: {mapname "Easterbasin";}

case 
93: {mapname "East Beach";}

case 
94: {mapname "Supa Save";}

}



? ? 
GetPlayerWon();



UpdateRanks();



foreach(
Playeri)

{

if(
APlayerData[i][Logado])

{

SaveAccount(i);

rKills[i] = 0;

damageperplayer[i] = 0;

Votou[i] = false;

MortesRodada[i] = 0;

? ? ? ? ? ? 
KillsRodada[i] = 0;

}

}

thirdplayer 0;

secondplayer 0;



? ? new 
StringMAP[30];

format(StringMAP30"mapname %s"mapname);

SendRconCommand(StringMAP);



foreach(
Playeri)

{

if(
IsPlayerConnected(i) && APlayerData[i][Logado] && Duelo[i] == 998 && AFK[i] == false)

{

TogglePlayerControllable(i,0);

GameTextForPlayer(i,"~r~>~y~Fim do Round~r~<",4000,6);

}

}

inicio SetTimer("Iniciar",50000);

return 
1;



  ayuda CP
Posted by: Nikolay_Staggs - 2021-01-28, 08:33 PM - Forum: Programaci?n - Replies (4)

Tengo una duda c?mo puedo enganchar un remolque y que se marqu? un CreateDynamicCP tengo esta?funci?n

public OnPlayerAttachTrailer(playerid, vehicleid, trailerid)
{
if(IsTrailerAttachedToVehicle(vehicleid) && SPAWN_REMOLQUE_GASOLINA != 1)
{
Random_Gasolina(playerid);
}
? ? return 1;
}

stock Random_Gasolina(playerid)
{
new Gascolina = random(3);
switch(Gascolina)
{
case 0:
{
if(IsValidDynamicCP(PLAYER_TEMP[playerid][pt_TRAILERO_CHECKPOINT]))
{
DestroyDynamicCP(PLAYER_TEMP[playerid][pt_TRAILERO_CHECKPOINT]);
PLAYER_TEMP[playerid][pt_TRAILERO_CHECKPOINT] = INVALID_STREAMER_ID;
}
PLAYER_TEMP[playerid][pt_TRAILERO_CHECKPOINT] = CreateDynamicCP(363.3305, 869.4847, 20.3811, 5.0, 0, 0, playerid, 9999999999.0);
SendClientMessage(playerid, -1, "Lleva el remolque hacia donde se marc?");

new info[1];
info[0] = CHECKPOINT_TYPE_ENTER_GASOLINE;
Streamer_SetArrayData(STREAMER_TYPE_CP, PLAYER_TEMP[playerid][pt_TRAILERO_CHECKPOINT], E_STREAMER_EXTRA_ID, info);
}
case 1:
{
if(IsValidDynamicCP(PLAYER_TEMP[playerid][pt_TRAILERO_CHECKPOINT]))
{
DestroyDynamicCP(PLAYER_TEMP[playerid][pt_TRAILERO_CHECKPOINT]);
PLAYER_TEMP[playerid][pt_TRAILERO_CHECKPOINT] = INVALID_STREAMER_ID;
}
PLAYER_TEMP[playerid][pt_TRAILERO_CHECKPOINT] = CreateDynamicCP(-137.1521, -72.7862, 3.0911, 5.0, 0, 0, playerid, 9999999999.0);
SendClientMessage(playerid, -1, "Lleva el remolque hacia donde se marc?");

new info[1];
info[0] = CHECKPOINT_TYPE_ENTER_GASOLINE;
Streamer_SetArrayData(STREAMER_TYPE_CP, PLAYER_TEMP[playerid][pt_TRAILERO_CHECKPOINT], E_STREAMER_EXTRA_ID, info);
}
case 2:
{
if(IsValidDynamicCP(PLAYER_TEMP[playerid][pt_TRAILERO_CHECKPOINT]))
{
DestroyDynamicCP(PLAYER_TEMP[playerid][pt_TRAILERO_CHECKPOINT]);
PLAYER_TEMP[playerid][pt_TRAILERO_CHECKPOINT] = INVALID_STREAMER_ID;
}
PLAYER_TEMP[playerid][pt_TRAILERO_CHECKPOINT] = CreateDynamicCP(2822.7476, 955.9294, 10.7289, 5.0, 0, 0, playerid, 9999999999.0);
SendClientMessage(playerid, -1, "Lleva el remolque hacia donde se marc?");

new info[1];
info[0] = CHECKPOINT_TYPE_ENTER_GASOLINE;
Streamer_SetArrayData(STREAMER_TYPE_CP, PLAYER_TEMP[playerid][pt_TRAILERO_CHECKPOINT], E_STREAMER_EXTRA_ID, info);
}
}
return 1;
}


  Associating a Discord account with SA-MP account
Posted by: phlair - 2021-01-28, 07:04 PM - Forum: Tutorials - Replies (1)

Below is an excerpt from a Discord post to solve a common problem - it will benefit others with the necessary effort/attitude, so I'm sharing it here for posterity.

So, finished the write-up for the discord-samp linking stuff. It contains:
- Motivation for the problem
- Full description of the problem
- Solution of the problem (logic)
- Proof of solution of the problem
- Implementation directions

You should read it accompanied with all the contents of Appendix A of CAHOA if you haven't read that already.
Look forward to seeing some good engagement with it, and it becoming useful in encouraging a "think first, do later" mindset.

Link to the write-up: https://gist.github.com/lagoevia/c3d6f38...10f0de9dcb


  [MAP] I made Among Us in GTA San Andreas
Posted by: Polter - 2021-01-28, 05:18 PM - Forum: Videos and Screenshots - Replies (2)

[Video: https://youtu.be/q7_M86iw1tM]


  [Ayuda] error 022: must be lvalue (non-constant)
Posted by: Kaiser - 2021-01-28, 08:51 AM - Forum: Programaci?n - Replies (2)

Buenas madrugadas jaja, bueno, ac? tengo un error que no he podido solucionar, alguien podr?a decirme que podr?a ser y c?mo lo soluciono.



Code:
(54132) : error 022: must be lvalue (non-constant)



Este es el c?digo completo.



Code:
//**************************************************************************

CMD:regaloatodos(playerid)

{

if(Staff(playerid,Director)) return 1;

{

if (Regalo)

{

new string[128];

format(string, sizeof(string), "{474747}[ADMINISTRACI?N]{FFFFFF} %s envi? regalos a todo el servidor.", NombreJugador(playerid));

MensajeAll(CxVERDE, string);

Regalo = 0; // Linea del error

foreach(Player, i) { RegaloTodos(i); }

} else return Mensaje(playerid, 0, "212", "Este comando ya fue usado, puedes usarlo en el pr?ximo pago diario.");

}

return 1;

}

/// Sistema de regalos actualizado

stock RegaloTodos(playerid) {

? ? new gift = Random(1, 3);

? ? switch(gift) {

? ? ? ? case 1: {

? ? ? ? ? ? ? ? DarDinero(playerid, 2500);

? ? ? ? ? ? ? ? Mensaje(playerid, 2, "0", "Felicidades - recibiste $250 del regalo!");

? ? ? ? ? ? }

? ? ? ? case 2: {

? ? ? ? ? ? ? ? InfoUsuario[playerid][uExperiencia] = 2;

? ? ? ? ? ? ? ? Mensaje(playerid, 2, "0", "Felicidades - recibiste dos puntos de experiencia del regalo!");

? ? ? ? ? ? }

? ? ? ? case 3: {

? ? ? ? ? ? ? ? InfoUsuario[playerid][uExperiencia] = 1;

? ? ? ? ? ? ? ? Mensaje(playerid, 2, "0", "Felicidades - recibiste un punto de experiencia del regalo!");

? ? ? ? ? ? }

? ? ? ? default: return RegaloTodos(playerid);

? ? }

? ? return 1;

}