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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,263
» Latest member: savostepanovic.1
» Forum threads: 2,380
» Forum posts: 12,296

Full Statistics

Online Users
There are currently 276 online users.
» 0 Member(s) | 273 Guest(s)
Internet Archive, Bing, Google

Latest Threads
AntyCheat System [SA-MP/O...
Forum: Filterscripts
Last Post: 2PAC_
Yesterday, 09:17 PM
» Replies: 7
» Views: 8,340
Iron Horizon Roleplay[v1....
Forum: Advertisements
Last Post: MikeNGRP
2025-07-11, 11:44 PM
» Replies: 0
» Views: 20
[MAP PACK] 5 NEW LS BUILD...
Forum: Videos and Screenshots
Last Post: Apollo4430
2025-07-11, 12:20 AM
» Replies: 1
» Views: 3,338
Open.mp / SAMP Query
Forum: Releases
Last Post: laex
2025-07-09, 04:07 AM
» Replies: 2
» Views: 121
some text appearing in my...
Forum: Support
Last Post: Sizy
2025-07-08, 07:33 AM
» Replies: 0
» Views: 36
Offensive-Core: TDM
Forum: Gamemodes
Last Post: NikitaFoxze
2025-07-08, 12:13 AM
» Replies: 3
» Views: 3,676
Second Generation Rolepla...
Forum: Advertisements
Last Post: JamesT
2025-07-06, 10:28 AM
» Replies: 0
» Views: 53
Servidor RPG profissões
Forum: Advertisements
Last Post: tcharlesmeurer
2025-07-05, 11:35 PM
» Replies: 0
» Views: 35
EVO Anti-Cheat
Forum: Libraries
Last Post: Eduardo_AC
2025-07-05, 11:05 PM
» Replies: 2
» Views: 114
Developer for Hire – Syst...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-07-04, 08:35 AM
» Replies: 0
» Views: 74

 
  Command not working
Posted by: Snow - 2021-03-29, 06:25 PM - Forum: Pawn Scripting - Replies (6)

Okay so I have this weird problem with this one specific command. When player performs this command, he gets teleported somewhere else instead of where he's supposed to. But I'm calling the same command under OnDialogResponse and it works fine there. Here's the command:

Code:
CMD:mc(playerid, params[])
{
? ? LoginCheck(playerid);
? ? SpawnCheck(playerid);
? ? IntCheck(playerid);

? ? if(!Permissions(playerid))
? ? return 1;

? ? SetCameraBehindPlayer(playerid);
? ? new RandomT = random(sizeof(mount));
? ? new Randomm = random(sizeof(mountv));

? ? if(IsPlayerInAnyVehicle(playerid))
? ? {
? ? ? ? SetVehiclePos(GetPlayerVehicleID(playerid), mountv[Randomm][0], mountv[Randomm][1], mountv[Randomm][2]);
? ? }
? ? else
? ? {
? ? ? ? SetPlayerPos(playerid, mount[RandomT][0], mount[RandomT][1], mount[RandomT][2]);
? ? }
? ? new string[128], name[24];
? ? GetPlayerName(playerid, name, 24);
? ? format(string, 128, "%s(%d) has teleported to Mount Chilliad (/mc).", name, playerid);
? ? SendClientMessageToAll(COLOR_TP, string);
? ? return 1;
}

Calling it under dialog response like this
Code:
if(listitem ==7)
? ? ? ? ? ? {
? ? ? ? ? ? cmd_mc(playerid, "");
? ? ? ? ? ? }

Now when player types the command manually, he won't get teleported to Mount Chilliad but when he uses the dialog that calls this command, he'll be teleported here.


Thumbs Up Anti loading crasher
Posted by: z0rdan - 2021-03-29, 01:13 AM - Forum: Portuguese/Portugu?s - Replies (1)

Algu?m sabe como posso adicionar a prote??o pra esse tipo de hack?

o player teleporta dentro de um ve?culo e logo dps fica "LOADING" na tela do outro jogador.


  Tutorial on Pawn
Posted by: HydraLazy - 2021-03-28, 11:04 AM - Forum: Questions and Suggestions - Replies (4)

Hey,

? ? ? ?I have a message to open.mp team that there are many newbie want to learn pawn , I know there are many tutorial written but the problem is that its difficult to understand through reading and also there are many tutorial in videos but they are directly starting samp scripting not pawn basic. So I suggest to one of you should start video tutorial it will hel the whole world not only me



Peace Out


Heart rename file ini
Posted by: Lord_Bukake - 2021-03-27, 02:28 PM - Forum: Pawn Scripting - Replies (1)

Hi, how can i rename a server .ini file?



i'm doing a command to rename server ini files, but i can't find the function or method.

Could you help me? thank u


  How to increase the size of DIALOG_STYLE_PASSWORD ?
Posted by: CrypticSin - 2021-03-26, 09:49 PM - Forum: Pawn Scripting - Replies (8)

Hi im trying to figure out how to increase the size of this dialogue im using as it's currently at its default size.



Is there a way to enlarge the box so the whole text of the title?is shown?







PHP Code:
? ? ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_PASSWORD"Title: With this text i can only see half of it, how to increase the dialogue size?""Please enter a password below:""Register""Cancel"); 


Question Question
Posted by: Areshk - 2021-03-26, 05:26 PM - Forum: Pawn Scripting - Replies (1)

What's the difference between Public and Stock?



Thank you :)


  date_format convert to my language
Posted by: Zow - 2021-03-26, 12:01 PM - Forum: Pawn Scripting - No Replies

PHP Code:
Month_Convert(month)



{

? ? new 
string[12];

? ? new 
monthmsg[12];

switch(
month)

{

? ? case 
1:? monthmsg "??????";

? ? case 
2:? monthmsg "??????????";

? ? case 
3:? monthmsg "??????";

? ? case 
4:? monthmsg "??????";

? ? case 
5:? monthmsg "???????";

? ? case 
6:? monthmsg "????????";

? ? case 
7:? monthmsg "???????";

? ? case 
8:? monthmsg "???????";

? ? case 
9:? monthmsg "???????";

? ? case 
10monthmsg "??????";

? ? case 
11monthmsg "?????????";

? ? case 
12monthmsg "???????";

}

format(stringsizeof(string), "%s"monthmsg);

return 
string;







PHP Code:
hook OnPlayerLogin(playerid)

{

? ? 
inline _LoadVIP()

? ? {

? ? ? ? new 

? ? ? ? ? ? 
expire

? ? ? ? ? ? 
expiry_date[3],

? ? ? ? ? ? 
expiry_month,

? ? ? ? ? ? 
expiry_year[5],

? ? ? ? ? ? 
expiry_time[10],

? ? ? ? ? ? 
rows

? ? ? ? ;



? ? ? ? 
cache_get_row_count(rows);



? ? ? ? if(
rows) {

? ? ? ? ? ? 
cache_get_value_name_int(0"vip_level"Player_VIPLevel[playerid]);

? ? ? ? ? ? 
cache_get_value_name(0"expirydate"expiry_datesizeof(expiry_date));

? ? ? ? ? ? 
cache_get_value_name_int(0"expirymonth"expiry_month);

? ? ? ? ? ? 
cache_get_value_name(0"expiryyear"expiry_yearsizeof(expiry_year));

? ? ? ? ? ? 
cache_get_value_name(0"expirytime"expiry_timesizeof(expiry_time));

? ? ? ? ? ? 
cache_get_value_name_int(0"expire"expire);



? ? ? ? ? ? if (
expire <= 0) {

? ? ? ? ? ? ? ? 
VIP_RemovePlayer(playerid);

? ? ? ? ? ? ? ? 
va_SendClientMessage(playeridCOLOR_RED"VIP ????????????????? %s %s %s %s!"expiry_dateMonth_Convert(expiry_month), expiry_yearexpiry_time);

? ? ? ? ? ? ? ? 
Player_VIPLevel[playerid] = 0;

? ? ? ? ? ? ? ? return;

? ? ? ? ? ? }

? ? ? ? ? ? 
va_SendClientMessage(playeridCOLOR_BLUE"?????? VIP ????? %d"VIP_GetPlayerLevel(playerid));

? ? ? ? ? ? 
va_SendClientMessage(playeridCOLOR_RED"??????????? %s %s %s %s"expiry_dateMonth_Convert(expiry_month), expiry_yearexpiry_time);

? ? ? ? }

? ? }

? ? static const 
query[] = "\

? ? ? ? SELECT \

? ? ? ? ? ? vip_level, \

? ? ? ? ? ? DATE_FORMAT(vip_expire_date, '%%d') as expirydate, \

? ? ? ? ? ? DATE_FORMAT(vip_expire_date, '%%m') as expirymonth, \

? ? ? ? ? ? DATE_FORMAT(vip_expire_date, '%%Y') as expiryyear, \

? ? ? ? ? ? DATE_FORMAT(vip_expire_date, '%%T') as expirytime, \

? ? ? ? ? ? TIMESTAMPDIFF(SECOND, CURRENT_TIMESTAMP(), vip_expire_date) as expire \

? ? ? ? FROM \

? ? ? ? ? ? vips \

? ? ? ? WHERE \

? ? ? ? ? ? u_id = %d\

? ? "
;



? ? 
MySQL_TQueryInline(MySQL_GetHandle(), using inline _LoadVIPqueryPlayer_GetAccountID(playerid));





I feel so weird to this one?

any suggest? or just keep it



PHP Code:
? ? static const query[] = "\

? ? ? ? SELECT \

? ? ? ? ? ? vip_level, \

? ? ? ? ? ? DATE_FORMAT(vip_expire_date, '%%d') as expirydate, \

? ? ? ? ? ? DATE_FORMAT(vip_expire_date, '%%m') as expirymonth, \

? ? ? ? ? ? DATE_FORMAT(vip_expire_date, '%%Y') as expiryyear, \

? ? ? ? ? ? DATE_FORMAT(vip_expire_date, '%%T') as expirytime, \

? ? ? ? ? ? TIMESTAMPDIFF(SECOND, CURRENT_TIMESTAMP(), vip_expire_date) as expire \

? ? ? ? FROM \

? ? ? ? ? ? vips \

? ? ? ? WHERE \

? ? ? ? ? ? u_id = %d\

? ? "




here's the original one from gta-open



PHP Code:
? ? static const query[] = "\

? ? ? ? SELECT \

? ? ? ? ? ? vip_level, \

? ? ? ? ? ? DATE_FORMAT(vip_expire_date, '"
SQL_DATETIME_FORMAT"') as expiry, \

? ? ? ? ? ? TIMESTAMPDIFF(SECOND, CURRENT_TIMESTAMP(), vip_expire_date) as expire \

? ? ? ? FROM \

? ? ? ? ? ? vips \

? ? ? ? WHERE \

? ? ? ? ? ? u_id = %d\

? ? "


  How to add music to skin selection menu?
Posted by: CrypticSin - 2021-03-25, 08:35 PM - Forum: Pawn Scripting - Replies (4)

Hi i'm trying to figure out how i can add music to a skin selection menu, i would appreciate it if someone can help thanks.



Code:
public OnPlayerRequestClass(playerid, classid)

{

SetPlayerPos(playerid, 2014.6443,1077.2521,48.8207);

SetPlayerFacingAngle(playerid, 357.1971);

SetPlayerCameraPos(playerid,? 2014.9019, 1083.7701, 49.8680);

SetPlayerCameraLookAt(playerid, 2014.8658, 1082.7725, 49.7031);?

return 1;

}


  How do I prevent a player from getting into a specific car?
Posted by: Boxi - 2021-03-24, 06:49 PM - Forum: Pawn Scripting - Replies (4)

Hello everyone C: a question, how do I make that a player can not enter a specific car? I explain:



Code:
new carvid_0;



carvid_0?= CreateVehicle(506,539.846,-1287.868,16.946,359.176,6,0,-1);



I need that they can't get into that specific vehicle, I can do it but only using the model of the car and that would prevent them from getting into all the cars of that model, but I only want that one. Does anyone know what I have to do? thanks c:


  Hardware requirements to have a server
Posted by: robertocaribbean - 2021-03-24, 06:20 PM - Forum: General Discussions - Replies (1)

Hello everyone,

I have a VPS with this configuration:
1 Core CPU
1 GB Ram
25 GB SSD

Is it enough to host 100 players?

Is there any way to measure how many players the server can support without stress testing?