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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,499
» Latest member: amin1stp
» Forum threads: 2,413
» Forum posts: 12,360

Full Statistics

Online Users
There are currently 378 online users.
» 1 Member(s) | 374 Guest(s)
Bing, Google, Applebot

Latest Threads
San Fierro Cops And Robbe...
Forum: Advertisements
Last Post: Dr0pp
2 hours ago
» Replies: 0
» Views: 14
Adding new vehicles and s...
Forum: Programming
Last Post: __.A.__
Yesterday, 07:47 PM
» Replies: 0
» Views: 55
Zona América del Sur Free...
Forum: Advertisements
Last Post: kevinberriosflores
Yesterday, 02:16 PM
» Replies: 1
» Views: 77
Busco copia de gamemode S...
Forum: Spanish/Espa?ol
Last Post: briancristaldo2021
2025-09-11, 11:14 AM
» Replies: 0
» Views: 63
[Tutorial] Registrando o ...
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2025-09-09, 08:36 PM
» Replies: 0
» Views: 205
San Andreas Police Pursui...
Forum: Advertisements
Last Post: BriBri
2025-09-08, 10:09 PM
» Replies: 1
» Views: 296
Problem with plugins load...
Forum: Support
Last Post: MrKacu13
2025-09-08, 07:15 PM
» Replies: 9
» Views: 374
Compilation error
Forum: Pawn Scripting
Last Post: MrKacu13
2025-09-07, 07:18 AM
» Replies: 6
» Views: 357
Need help, problem when i...
Forum: Programming
Last Post: nonickowned
2025-09-06, 06:21 PM
» Replies: 0
» Views: 146
Transfer server from SAMP...
Forum: Support
Last Post: MrKacu13
2025-09-06, 04:03 PM
» Replies: 1
» Views: 242

 
  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;

}


  Ayuda CreateDynamicCP
Posted by: Nikolay_Staggs - 2021-01-28, 06:57 AM - Forum: General Discussions - Replies (1)

Tengo una duda c?mo podr? enganchar un remolque y que se marqu? un CP


  eLg Clan Freeroam/Roleplay Full Script AMX File
Posted by: Nick MFRP - 2021-01-28, 06:36 AM - Forum: Gamemodes - No Replies

Sorry My Poor English?





Hi Guys Iam Nick





This Script We Are Added In Game Voice :)





This Script Not Working In Debug Mod





Here Is The Download Link?https://www.mediafire.com/file/5nr15ghlzg0auj0/eLg੖ꟸ视ꗸ嫞窺᪛闪敫.rar/file


  [Ayuda] Error 001: expected token
Posted by: Kaiser - 2021-01-27, 09:22 PM - Forum: Programaci?n - Replies (2)

Buenas, pues al compilar la GM, me sale el siguiente error.



Code:
error 001: expected token: "-string end-", but found "-identifier-"



La linea del error es la siguiente:



Code:
CreateDynamic3DTextLabel("Mercado Negro!\n\n{E69144}(/comprarm)"-1,872.06,-24.86,63.21,15);//mn



Linea completa:



Code:
CreateDynamic3DTextLabel("Destinos de Transporte!\n\n{E69144}(/destino)",-1, -242.3696,-236.5017,2.4297,15);//CAsilla Base

CreateDynamic3DTextLabel("Destinos de Transporte!\n\n{E69144}(/destino)",-1,966.9528,2132.9231,10.8203,15);//CAsilla LV

CreateDynamic3DTextLabel("Destinos de Transporte!\n\n{E69144}(/destino)",-1,-1737.5258,31.3217,3.5547,15);//CAsilla SF

CreateDynamic3DTextLabel("Destinos de Transporte!\n\n{E69144}(/destino)",-1,2123.6130,-2275.2766,20.6719,15);//CAsilla LS

CreateDynamic3DTextLabel("Destinos de Transporte!\n\n{E69144}(/destino)",-1,-2002.4324,-2409.7842,30.6250,15);//CAsilla AP

CreateDynamic3DTextLabel("Mercado Negro!\n\n{E69144}(/comprarm)"-1,872.06,-24.86,63.21,15);//mn

CreateDynamic3DTextLabel("Puedes vender el coche Aqui!\n\n{E69144}(/vendergob)",-1,1782.9520,-1696.0848,13.4739,15);

CreateDynamic3DTextLabel("Taller de Facciones Legales!\n\n{E69144}(/reparar)",-1,1943.6232,-1984.3682,13.7481,15);

CreateDynamic3DTextLabel("Taller de Facciones Legales!\n\n{E69144}(/reparar)",-1,117.1935, 1885.1022, 18.0179,15);

CreateDynamic3DTextLabel("Empieza a trabajar usando\n\n{9676C8}(/dinamita)",-1,-1842.1353,1321.0210,1059.2139,5);

? ? CreateDynamic3DTextLabel("Para coger una pala\n\n{9676C8}(/pala)",-1,-1854.4734,1334.7629,1057.2260,5);

? ? CreateDynamic3DTextLabel("Para coger una pala\n\n{9676C8}(/pala)",-1,1037.5548,1738.2552,1514.4860,15);//mina job

? ? CreateDynamic3DTextLabel("Equipo LSPP\n{FFFF6E}(/provisiones)\n(/uniforme)",-1,1498.5148,-1348.9795,905.3040,5);//LSPD

? ? CreateDynamic3DTextLabel("Equipo RCSD\n{FFFF6E}(/provisiones)\n(/uniforme)",-1,256.2475,73.7030,1003.6406,5);//SASD

? ? CreateDynamic3DTextLabel("Equipo GN\n{FFFF6E}(/provisiones)\n(/uniforme)",-1,1313.8560,-1784.6996,1565.9984,5);//GN

? ? CreateDynamic3DTextLabel("Enfermeria GN\n(/curar)",-1,-209.8801,-1759.7628,675.7687,5);//GN



?C?mo puedo arreglar ese error?


  [include] Matrix Functions (Topic en Espa?ol)
Posted by: Leonardo - 2021-01-27, 05:19 PM - Forum: Programaci?n - No Replies

Matrix Functions



Estas son funciones matrix, que se pueden usar para obtener la rotaci?n de euler de un veh?culo, o calcular el offset para usarlo en AttachObjectToVehicle/Player, tambi?n para crear un DetachObjectFromVehicle/Player, etc.



Functions:


  • native Vector(Float:x, Float:y, Float:z);

  • native Matrix(const right[VECTOR], const front[VECTOR], const up[VECTOR], const pos[VECTOR]);

  • native Matrix_Invert(const matrix[MATRIX]);

  • native Matrix_BuildUp(matrix[MATRIX]);

  • native Matrix_SetRotation(matrix[MATRIX], Float:rx, Float:ry, Float:rz);

  • native Float:Matrix_GetRotationX(const matrix[MATRIX]);

  • native Float:Matrix_GetRotationY(const matrix[MATRIX]);

  • native Float:Matrix_GetRotationZ(const matrix[MATRIX]);

  • native Matrix_GetRotation(const matrix[MATRIX]);

  • native Matrix_Multiply3x3(const matrix[MATRIX], const vector[VECTOR]);

  • native Matrix_Multiply4x4(const matrix1[MATRIX], const matrix2[MATRIX]);

  • native Matrix_GetOffsetPosition(const matrix[MATRIX], const vector[VECTOR]);

  • native Matrix_GetOffsetRotation(const matrix[MATRIX], const vector[VECTOR], bool:invert = true);


Video



?ste es un video del filterscript de pruebas:



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





C?digo fuente



https://github.com/Leonardo541/matrix


  Matrix Functions
Posted by: Leonardo - 2021-01-27, 05:12 PM - Forum: Libraries - No Replies

Matrix Functions



These are matrix functions, which can be used to obtain the euler rotation of a vehicle, or calculate the offset position and offset rotation to be used in AttachObjectToVehicle/Player, also to create a DetachObjectFromVehicle/Player, etc.



Functions:


  • native Vector(Float:x, Float:y, Float:z);

  • native Matrix(const right[VECTOR], const front[VECTOR], const up[VECTOR], const pos[VECTOR]);

  • native Matrix_Invert(const matrix[MATRIX]);

  • native Matrix_BuildUp(matrix[MATRIX]);

  • native Matrix_SetRotation(matrix[MATRIX], Float:rx, Float:ry, Float:rz);

  • native Float:Matrix_GetRotationX(const matrix[MATRIX]);

  • native Float:Matrix_GetRotationY(const matrix[MATRIX]);

  • native Float:Matrix_GetRotationZ(const matrix[MATRIX]);

  • native Matrix_GetRotation(const matrix[MATRIX]);

  • native Matrix_Multiply3x3(const matrix[MATRIX], const vector[VECTOR]);

  • native Matrix_Multiply4x4(const matrix1[MATRIX], const matrix2[MATRIX]);

  • native Matrix_GetOffsetPosition(const matrix[MATRIX], const vector[VECTOR]);

  • native Matrix_GetOffsetRotation(const matrix[MATRIX], const vector[VECTOR], bool:invert = true);




Video



This is a video of the test filterscript:



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





Source code



https://github.com/Leonardo541/matrix