Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 7,501
» Latest member: ae888vnio
» Forum threads: 2,413
» Forum posts: 12,360
Full Statistics
|
Online Users |
There are currently 678 online users. » 1 Member(s) | 675 Guest(s) Bing, Google, HELLHOUND
|
Latest Threads |
San Fierro Cops And Robbe...
Forum: Advertisements
Last Post: Dr0pp
Yesterday, 08:33 PM
» Replies: 0
» Views: 49
|
Adding new vehicles and s...
Forum: Programming
Last Post: __.A.__
2025-09-12, 07:47 PM
» Replies: 0
» Views: 73
|
Zona América del Sur Free...
Forum: Advertisements
Last Post: kevinberriosflores
2025-09-12, 02:16 PM
» Replies: 1
» Views: 99
|
Busco copia de gamemode S...
Forum: Spanish/Espa?ol
Last Post: briancristaldo2021
2025-09-11, 11:14 AM
» Replies: 0
» Views: 86
|
[Tutorial] Registrando o ...
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2025-09-09, 08:36 PM
» Replies: 0
» Views: 227
|
San Andreas Police Pursui...
Forum: Advertisements
Last Post: BriBri
2025-09-08, 10:09 PM
» Replies: 1
» Views: 313
|
Problem with plugins load...
Forum: Support
Last Post: MrKacu13
2025-09-08, 07:15 PM
» Replies: 9
» Views: 406
|
Compilation error
Forum: Pawn Scripting
Last Post: MrKacu13
2025-09-07, 07:18 AM
» Replies: 6
» Views: 381
|
Need help, problem when i...
Forum: Programming
Last Post: nonickowned
2025-09-06, 06:21 PM
» Replies: 0
» Views: 165
|
Transfer server from SAMP...
Forum: Support
Last Post: MrKacu13
2025-09-06, 04:03 PM
» Replies: 1
» Views: 267
|
|
|
Not sure if my /kick works? |
Posted by: CrypticSin - 2021-03-29, 09:32 PM - Forum: Pawn Scripting
- Replies (4)
|
 |
Hi i've written a admin command for /kick and im currently multi logging into my server to test it out.
Everything seems like it's working when i kick my 2nd character but, it doesn't actually kick the player even though the message comes up that?they've been kicked?
Could this be because im accessing the server on two different accounts with?the same PC and the same IP??
Or if a randomer from a different ip joined would it work??
Code:
PHP Code: CMD:kick(playerid, params[])
{
? ? if(PlayerInfo[playerid][pAdmin] < 1)
? ? return SCM(playerid, COLOR_RED, "You are not allowed to use this command");
new playerb, reason[24];
new fstr[200];
if(sscanf(params, "us[24]", playerb, reason))
? ? return SCM(playerid, COLOR_RED, "Usage: /kick [playerid/name] [reason]");
? ?
? ? if(!IsPlayerConnected(playerb))
return SendClientMessage(playerid, COLOR_RED, "Player not found.");
? ?
? ? if(PlayerInfo[playerb][pAdmin] >= 1)
return SendClientMessage(playerid, COLOR_RED, "You cant kick admins.");
? ? {
? ? ? ? format(fstr, sizeof(fstr), "Admin %s (%d) has kicked %s [%d] from TWDZS - Reason: %s", ReturnName(playerid), playerid, ReturnName(playerb), playerb, reason);
? ? ? ? SendClientMessageToAll(COLOR_RED, fstr);
? ? ? ? PlayerInfo[playerb][pKicks] ;
? ? ? ? GameTextForPlayer(playerb, "~r~Kicked", 5000, 5);
? ? ? ? format(fstr, sizeof(fstr), "You have been kicked from TWDZS. You were kicked by admin %s.", ReturnName(playerid));
? ? ? ? SendClientMessage(playerb, COLOR_RED, fstr);
? ? ? ? SendClientMessage(playerb, COLOR_ORANGE, "If you think this kick is unfair complain at www.domain.net");
? ? ? ? KickEx(playerb);
? ? }
? ? return true;
}
|
|
|
Fps Problem |
Posted by: Prcko69 - 2021-03-29, 08:49 PM - Forum: General Discussions
- Replies (1)
|
 |
Well, i have problems with fps drops..
I have pc strong enough to run GTA Sa on 60fps, but
When alot players are around me it drops to low 40
PC specs:
8GB ram
GT 440 graphics
i5 4570 processor
I tryed everything, every fps booster
nothing worked...
If anyone know how to fix it would be good for me :v
|
|
|
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.
|
|
|
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
|
|
|
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(playerid, DIALOG_REGISTER, DIALOG_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");
|
|
|
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 10: monthmsg = "??????";
? ? case 11: monthmsg = "?????????";
? ? case 12: monthmsg = "???????";
}
format(string, sizeof(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_date, sizeof(expiry_date));
? ? ? ? ? ? cache_get_value_name_int(0, "expirymonth", expiry_month);
? ? ? ? ? ? cache_get_value_name(0, "expiryyear", expiry_year, sizeof(expiry_year));
? ? ? ? ? ? cache_get_value_name(0, "expirytime", expiry_time, sizeof(expiry_time));
? ? ? ? ? ? cache_get_value_name_int(0, "expire", expire);
? ? ? ? ? ? if (expire <= 0) {
? ? ? ? ? ? ? ? VIP_RemovePlayer(playerid);
? ? ? ? ? ? ? ? va_SendClientMessage(playerid, COLOR_RED, "VIP ????????????????? %s %s %s %s!", expiry_date, Month_Convert(expiry_month), expiry_year, expiry_time);
? ? ? ? ? ? ? ? Player_VIPLevel[playerid] = 0;
? ? ? ? ? ? ? ? return;
? ? ? ? ? ? }
? ? ? ? ? ? va_SendClientMessage(playerid, COLOR_BLUE, "?????? VIP ????? %d", VIP_GetPlayerLevel(playerid));
? ? ? ? ? ? va_SendClientMessage(playerid, COLOR_RED, "??????????? %s %s %s %s", expiry_date, Month_Convert(expiry_month), expiry_year, expiry_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 _LoadVIP, query, Player_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\
? ? ";
|
|
|
|