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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,227
» Latest member: lu88beer
» Forum threads: 2,373
» Forum posts: 12,327

Full Statistics

Online Users
There are currently 203 online users.
» 0 Member(s) | 201 Guest(s)
Bing, Google

Latest Threads
Liberty City map
Forum: Pawn Scripting
Last Post: ziyadprogamer
2025-06-28, 04:55 PM
» Replies: 2
» Views: 2,123
GameText styles in open.m...
Forum: Pawn Scripting
Last Post: Miki
2025-06-28, 01:25 PM
» Replies: 1
» Views: 37
Very Basic SAMP UCP
Forum: Videos and Screenshots
Last Post: bullyalina
2025-06-28, 12:43 PM
» Replies: 49
» Views: 12,743
Script[gamemodes/gamemode...
Forum: Pawn Scripting
Last Post: Miki
2025-06-27, 05:08 PM
» Replies: 1
» Views: 424
Want to edit my profile n...
Forum: Chat
Last Post: Hera.
2025-06-26, 08:41 PM
» Replies: 1
» Views: 537
Farsi
Forum: Other
Last Post: acc.gangbeni
2025-06-25, 08:21 AM
» Replies: 2
» Views: 3,057
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
2025-06-22, 06:47 PM
» Replies: 0
» Views: 49
[Request] Linko Gaming Ro...
Forum: General Discussions
Last Post: JamesC
2025-06-20, 07:34 PM
» Replies: 0
» Views: 61
RevolutionX DM/Stunt/Race...
Forum: Advertisements
Last Post: DerekZ905
2025-06-18, 03:12 PM
» Replies: 0
» Views: 85
samp-cef
Forum: Questions and Suggestions
Last Post: jamespssamp
2025-06-18, 11:36 AM
» Replies: 0
» Views: 68

 
  HELP! How to Make Moving, Running, Text Draw With Box ?
Posted by: PutuSuhartawan - 2021-06-21, 07:58 PM - Forum: Pawn Scripting - Replies (8)

Ilustration :?youtube.com/watch?v=8-laOTcqCj0


  [HELP] Pawn scripting problem
Posted by: Haitam - 2021-06-20, 03:22 PM - Forum: Programming - Replies (2)

When i downloaded SAMP map editor i run it and it's say i need to update my graphic card but i already have latest version please anyone have a solution for this, i very need it.

Tanks


  Streamer Duplicating Objects
Posted by: Obie Jones - 2021-06-20, 01:57 PM - Forum: Pawn Scripting - Replies (1)

Greetings everyone,



Did anyone have experience with streamer or script duplicating objects from the mapping.pwn?

It happens up to 20 times, same object spawned so many times for unknown reason.



Suggestions?



Thanks.


  VIP System for gang wars/TDM
Posted by: Abraar - 2021-06-19, 05:53 PM - Forum: Filterscripts - Replies (1)

Hello :D



I own a server, but I wanted a VIP Sytem for my gang wars gamemode . Also, I am searching for developers for our server (Developers will be set as admin lvl 6 in game)



HostName: LSGW? -? Los Santos Gang Wars

Address:? 45.9.190.242:2455





Contact me: Wincenzo#1826


Shocked How to fix this bug?
Posted by: Abraar - 2021-06-19, 05:46 PM - Forum: Pawn Scripting - Replies (2)

[FIXED]


  How to Make Textdraw Can Selected Multiple page bye color with keyboard ?
Posted by: PutuSuhartawan - 2021-06-19, 01:03 AM - Forum: Pawn Scripting - No Replies

https://www.youtube.com/watch?v=62nZkPOV2Uk


  samp.ban
Posted by: pushline - 2021-06-18, 10:08 PM - Forum: Portuguese/Portugu?s - Replies (1)

Meu comando de ban adiciona um arquivo .ini (dof2) numa pasta bans e ipbans, e adiciona o IP na samp.ban.?



Eu quero desativar que o comando ban adicione o ip na samp.ban



C?digo



PHP Code:
#define Ban(%0) SetTimerEx("Banir", 200, false, "i", %0)



function::Banir(playerid) {

#undef Ban

Ban(playerid);

#define Ban(%0) SetTimerEx("Banir", 200, false, "i", %0)

return 1;

}



CMD:banir(playeridparams[])

{

if (!
APlayerData[playerid][pLogged])

? ? return 
SendClientMessage(playeridCOLOR_GRAD1" Voc? n?o est? logado.");

? ? if (
APlayerData[playerid][pAdmin] < 1)

? ? ? ? return 
SendClientMessage(playeridCOLOR_GRAD1"? Voc? n?o ? um administrador.");



? ? new 
idReasonBan1[30], Stringa[156];

? ? if (
sscanf(params"us[30]"idReasonBan1))

? ? ? ? return 
SendClientMessage(playeridCOLOR_GRAD1" (DICA): Use (/ban) [ID/Parte do nome] [Reason]");

? ? 

? ? if (
APlayerData[id][pLogged] > APlayerData[playerid][pLogged])

? ? ? ? return 
SendClientMessage(playeridCOLOR_GRAD1"? Voc? n?o pode banir um administrador de n?vel maior que o seu.");



? ? if (
id == playerid)

? ? ? ? return 
SendClientMessage(playeridCOLOR_GRAD1"Voc? n?o pode banir a si mesmo");



if(
APlayerData[playerid][pAdmin] > 0)

{

? ? 
DOF2_CreateFile(GetBanFile(id));

? ? 
DOF2_SetString(GetBanFile(id), "Name"pName[id]);

? ? 
DOF2_SetString(GetBanFile(id), "Admin"pName[playerid]);

? ? 
DOF2_SetString(GetBanFile(id), "Reason"ReasonBan1);

? ? 
DOF2_SetString(GetBanFile(id), "Date"GetDate());

? ? 
DOF2_SetString(GetBanFile(id), "IP"pIP[id]);

? ? 
DOF2_SaveFile();



? ? 
DOF2_CreateFile(GetIPFile(id));

? ? 
DOF2_SetString(GetIPFile(id), "Name"pName[id]);

? ? 
DOF2_SetString(GetIPFile(id), "Admin"pName[playerid]);

? ? 
DOF2_SetString(GetIPFile(id), "Reason"ReasonBan1);

? ? 
DOF2_SetString(GetIPFile(id), "Date"GetDate());

? ? 
DOF2_SetString(GetIPFile(id), "IP"pIP[id]);

? ? 
DOF2_SaveFile();



? ? ? ? 
format(Stringasizeof(Stringa), "%s %s baniu o player %s, motivo: %s",AdmCargo[APlayerData[playerid][pAdmin]], pName[playerid], pName[id], ReasonBan1);

? ? 
SendClientMessageToAll(COLOR_LIGHTREDStringa);



? ? 
format(Stringasizeof(Stringa), "BanLog: %s foi banido pelo admin %s, motivo: %s (%s)"pName[id], pName[playerid], ReasonBan1GetDate());

? ? 
BanLog(Stringa);



Ban(id);

}

else if(
APlayerData[playerid][pAdminTemp] > 0)

{

? ? 
DOF2_CreateFile(GetBanFile(id));

? ? 
DOF2_SetString(GetBanFile(id), "Name"pName[id]);

? ? 
DOF2_SetString(GetBanFile(id), "Admin"pName[playerid]);

? ? 
DOF2_SetString(GetBanFile(id), "Reason"ReasonBan1);

? ? 
DOF2_SetString(GetBanFile(id), "Date"GetDate());

? ? 
DOF2_SetString(GetBanFile(id), "IP"pIP[id]);

? ? 
DOF2_SaveFile();



? ? 
DOF2_CreateFile(GetIPFile(id));

? ? 
DOF2_SetString(GetIPFile(id), "Name"pName[id]);

? ? 
DOF2_SetString(GetIPFile(id), "Admin"pName[playerid]);

? ? 
DOF2_SetString(GetIPFile(id), "Reason"ReasonBan1);

? ? 
DOF2_SetString(GetIPFile(id), "Date"GetDate());

DOF2_SetString(GetIPFile(id), "IP"pIP[id]);

? ? 
DOF2_SaveFile();



? ? ? ? 
format(Stringasizeof(Stringa), "%s %s baniu o player %s, motivo: %s"AdmCargo[APlayerData[playerid][pLogged]], pName[playerid], pName[id], ReasonBan1);

? ? 
SendClientMessageToAll(COLOR_LIGHTREDStringa);



? ? 
format(Stringasizeof(Stringa), "BanLog: %s foi banido pelo admin %s, motivo: %s (%s)"pName[id], pName[playerid], ReasonBan1GetDate());

? ? 
BanLog(Stringa);



? ? ? ? 
Ban(id);

}

? ? return 
1;



  How to save player stats in mysql?
Posted by: CrypticSin - 2021-06-16, 10:15 PM - Forum: Pawn Scripting - Replies (3)

Hi, i need help with saving player stats like kills, deaths, health etc in mysql.



I've created columns for them on php myadmin using xampp?but i dont know how to input them into code on Pawn.



Any help would be appreciated.


  Help with safe box system
Posted by: JR_Junior - 2021-06-16, 09:49 PM - Forum: Pawn Scripting - Replies (8)

I'm trying to create a closed and open door safe box?system.

I would like to be able to create a safe box anywhere and automatically have the door positioned correctly.

Does anyone know the correct calculation for this?


PHP Code:
new safe =?CreateDynamicObject(19618414.470702537.359139.45900,? 0.000000.0000090.00000);
new 
door =?CreateDynamicObject(19619414.704012536.938489.45800,? 0.000000.0000090.00000); 

The function I intend to use:
PHP Code:
stock CreateSafeBox(Float:px,Float:py,Float:pz,Float:rz)
{
CreateDynamicObject(pxpypz0.00.0rz);//Safe
CreateDynamicObject(pxpypz0.00.0rz);//Door
return 1;


  Gate System
Posted by: Regicide - 2021-06-15, 11:44 PM - Forum: Pawn Scripting - Replies (1)

Okay so, for some reason when more than one gate loads it goes to shit the second gate moves to the position of the first gate, the third gate moves to the second gate position, and so on, why is this happening?

PHP Code:
enum _GateEnum
{
? ? 
GateID,
? ? 
Float:gate_place[4],
? ? 
Float:grX,
? ? 
Float:grY,
? ? 
Float:grZ,
? ?
GateFaction,
? ?
GateModel,
? ?
GateObject,
? ?
GateStatus


PHP Code:
new Gates[MAX_GATES][_GateEnum]; 

PHP Code:
new Iterator:server_gates<MAX_GATES>; 

PHP Code:
load_gates()
{
? ? 
inline LoadGates()
? ? {
? ? ? ? if(!
cache_num_rows())
? ? ? ? {
? ? ? ? ? ? 
printf("[MYSQL]: No Gate data found!");
? ? ? ? ? ? return 
0;
? ? ? ? }
? ? ? ? foreach (new 
Range(0cache_num_rows())) 
? ? ? ? {
? ? ? ? ? ? 
cache_get_value_int(i"id"Gates[i][GateID]);
? ? ? ? ? ? 
cache_get_value_float(i"x"Gates[i][gate_place][0]);
? ? ? ? ? ? 
cache_get_value_float(i"y"Gates[i][gate_place][1]);
? ? ? ? ? ? 
cache_get_value_float(i"z"Gates[i][gate_place][2]);

? ? ? ? ? ? 
cache_get_value_float(i"rx"Gates[i][grX]);
? ? ? ? ? ? 
cache_get_value_float(i"ry"Gates[i][grY]);
? ? ? ? ? ? 
cache_get_value_float(i"rz"Gates[i][grZ]);
? ? ? ? ? ? 
cache_get_value_int(i"faction"Gates[i][GateFaction]);
? ? ? ? ? ? 
cache_get_value_int(i"model"Gates[i][GateModel]);

? ? ? ? ? ? 
Gates[i][GateStatus] = 0;

? ? ? ? ? ? 
Gates[i][GateObject] = CreateObject(Gates[i][GateModel], Gates[i][gate_place][0], Gates[i][gate_place][1], Gates[i][gate_place][2], Gates[i][grX], Gates[i][grY], Gates[i][grZ], 300.0);

? ? ? ? ? ? 
Iter_Add(server_gatesi);
? ? ? ? }
? ? ? ? 
printf("%d gates loaded."i);
? ? ? ? return 
1;
? ? }
? ? 
MySQL_TQueryInline(g_SQLusing inline LoadGates"SELECT * FROM `server_gates`");
? ? return 
1;


PHP Code:
YCMD:gate(playeridparams[], help)
{
? ? foreach(new 
i:server_gates)
? ? {
? ? ? ? if(
IsPlayerInRangeOfPoint(playerid5Gates[i][gate_place][0], Gates[i][gate_place][1], Gates[i][gate_place][2]))
? ? ? ? {
? ? ? ? ? ? if(
user_faction[playerid] == Gates[i][GateFaction])
? ? ? ? ? ? {
? ? ? ? ? ? ? ? if(
Gates[i][GateStatus] == 0)
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? 
MoveObject(Gates[i][GateObject], Gates[i][gate_place][0], Gates[i][gate_place][1], Gates[i][gate_place][2] -7.03.0);
? ? ? ? ? ? ? ? ? ? 
Gates[i][GateStatus] = 1;
? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? else 
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? 
MoveObject(Gates[i][GateObject], Gates[i][gate_place][0], Gates[i][gate_place][1], Gates[i][gate_place][2], 3.0);
? ? ? ? ? ? ? ? ? ? 
Gates[i][GateStatus] = 0;
? ? ? ? ? ? ? ? }? 
? ? ? ? ? ? }
? ? ? ? ? ? else
? ? ? ? ? ? {
? ? ? ? ? ? ? ? 
SendClientMessage(playerid, -1"[SERVER] You don't have access to this gate!");
? ? ? ? ? ? }
? ? ? ? }
? ? ? ? else
? ? ? ? {
? ? ? ? ? ? 
SendClientMessage(playerid, -1"[SERVER]: You're not near any gate!");
? ? ? ? }
? ? }
? ? return 
1;