SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 178
Search took 0.00 seconds.
Search: Posts Made By: kovac
Forum: Scripting Help 05/07/2018, 12:49 PM
Replies: 4
Views: 355
Posted By kovac
Re: Dialog Help

Sorry, but I can't understand what you're saying.
If you want to check money only in specific listitems, simply move that line of code inside it.

Edit: I don't think that is possible. However,...
Forum: Scripting Help 05/07/2018, 12:34 PM
Replies: 4
Views: 355
Posted By kovac
Re: Dialog Help

I would recommend you this include for creating dialogs much simpler: http://forum.sa-mp.com/showthread.php?t=475838
Also, checking for client-side money is a very bad idea, use server-sided. Else...
Forum: Scripting Help 05/07/2018, 11:01 AM
Replies: 2
Views: 186
Posted By kovac
Re: buyhouse command problem

CMD:buy(playerid,params[])
{
new count;
for(new i = 0; i < MAX_HOUSES;i++)//Loop threw all houses.
{
if(IsPlayerInRangeOfPoint(playerid,8.0, hInfo[i][HouseEX],hInfo[i][HouseEY],...
Forum: Scripting Help 04/07/2018, 04:17 PM
Replies: 2
Views: 260
Posted By kovac
Re: Houses aren't loading again..

// OnGameModeInit
mysql_tquery(dbHandle, "SELECT * FROM `houses`;", "OnhousesLoad", "");

forward OnhousesLoad();
public OnhousesLoad()
{
new rows = cache_num_rows(), Houselabel[128];
...
Forum: Scripting Help 04/07/2018, 06:35 AM
Replies: 29
Views: 1,108
Posted By kovac
Re: Discord Bot Permissions

I can't know what code are you using.
The one I sent you with example of /players command can work without the include. That's because it doesn't have any parameters.

However, if you want to add...
Forum: Scripting Help 04/07/2018, 06:28 AM
Replies: 29
Views: 1,108
Posted By kovac
Re: Discord Bot Permissions

It won't..
The include has prevention for it, checked.
Forum: Scripting Help 04/07/2018, 06:21 AM
Replies: 29
Views: 1,108
Posted By kovac
Re: Discord Bot Permissions

DC_CMD:asay(user, args)
{
new str[128], message[128];
if(sscanf(args, "s[128]", message)) return SendDC(CHANNEL_ID, "```Usage: /asay [message]```");
format(str, sizeof str,...
Forum: Scripting Help 04/07/2018, 06:14 AM
Replies: 29
Views: 1,108
Posted By kovac
Re: Discord Bot Permissions

The include I mentioned before is much better to use if you create commands.

Once the code gets to "return" function, the rest of the code won't execute. This should work.
An example of /players...
Forum: Scripting Help 04/07/2018, 05:53 AM
Replies: 29
Views: 1,108
Posted By kovac
Re: Discord Bot Permissions

That would be easy

if(!strcmp(message, "/admins")
{
// do something
return 1;
}

There is interesting include for creating commands even with parameters, check it out:...
Forum: Scripting Help 04/07/2018, 05:07 AM
Replies: 29
Views: 1,108
Posted By kovac
Re: Discord Bot Permissions

idk wtf.

you can change it like it was before
if (DiscordStats[i]==0) continue;
SendClientMessage(i, -1, str);
Forum: Scripting Help 04/07/2018, 04:39 AM
Replies: 29
Views: 1,108
Posted By kovac
Re: Discord Bot Permissions

Move SendClientMessage(i, -1, str); one tab left
Forum: Scripting Help 04/07/2018, 04:25 AM
Replies: 29
Views: 1,108
Posted By kovac
Re: Discord Bot Permissions

It could be a disable option for messages or something similar.
Anyways..

#define BOT_NAME "YourBotName"

public DCC_OnChannelMessage(DCC_Channel:channel, DCC_User:author, const message[])
{...
Forum: Scripting Help 04/07/2018, 04:20 AM
Replies: 29
Views: 1,108
Posted By kovac
Re: Discord Bot Permissions

What's DiscordStats?
Forum: Scripting Help 04/07/2018, 04:12 AM
Replies: 29
Views: 1,108
Posted By kovac
Re: Discord Bot Permissions

An example how to disable bot messages:

#define BOT_NAME "YourBotName"


public DCC_OnChannelMessage(DCC_Channel:channel, DCC_User:author, const message[])
{
new channel_name[100 + 1],...
Forum: Scripting Help 04/07/2018, 12:28 AM
Replies: 7
Views: 661
Posted By kovac
Re: Hosting/Script

Have a look at this plugin: http://forum.sa-mp.com/showthread.php?t=249226.
It'll tell you what plugin is missing from your server.
Forum: Scripting Help 04/07/2018, 12:25 AM
Replies: 6
Views: 597
Posted By kovac
Re: Saving system

If you're gonna host a small server, you might look for Dini, y_ini and similar but they aren't even meant to be used as saving but configuration file.

MySQL is a best choice. It is not as much...
Forum: Scripting Help 04/07/2018, 12:17 AM
Replies: 1
Views: 245
Posted By kovac
Re: MySQL Connect

// :: MySQL Database
#define MYSQL_HOST "localhost"
#define MYSQL_USER "root"
#define MYSQL_PASS ""
#define MYSQL_DATABASE "server"

new MySQL: Database;

// OnGameModeInit...
Forum: Scripting Help 01/07/2018, 10:07 PM
Replies: 1
Views: 152
Posted By kovac
Re: Address or location

Here:
http://forum.sa-mp.com/showthread.php?t=27598
Forum: Scripting Help 01/07/2018, 10:02 PM
Replies: 8
Views: 469
Posted By kovac
Re: Help in clan system

Update the name in database, not just server.
Forum: Scripting Help 30/06/2018, 03:51 AM
Replies: 1
Views: 157
Posted By kovac
Intergrated interior

http://forum.sa-mp.com/showthread.php?t=654813

How is that done?
Forum: Scripting Help 29/06/2018, 08:37 PM
Replies: 3
Views: 232
Posted By kovac
Re: I need scripter

Wron section, post here: http://forum.sa-mp.com/showthread.php?t=447813
Forum: Scripting Help 29/06/2018, 03:49 PM
Replies: 5
Views: 311
Posted By kovac
Re: Client question

Thank you very much.
Forum: Scripting Help 29/06/2018, 03:39 PM
Replies: 5
Views: 311
Posted By kovac
Re: Client question

The download link for 0.3.7 compat is broken! Mirrors?
https://github.com/AGraber/https://github.com/AGraber/samp-037-compat
Forum: Scripting Help 29/06/2018, 03:34 PM
Replies: 5
Views: 311
Posted By kovac
Client question

Is it by any way possible to allow connections from both 0.3.7 and 0.3DL clients on 0.3DL server?
Forum: Scripting Help 21/06/2018, 02:53 AM
Replies: 4
Views: 246
Posted By kovac
Re: Format returning SERVER:UNKNOWN COMMAND

Here you go.

CMD<ALL>:stats(cmdid, playerid, params[])
{
new targetid, string[128];
if(sscanf(params, "u", targetid)) targetid = playerid;
if(!IsPlayerConnected(targetid)) return...
Showing results 1 to 25 of 178

 

All times are GMT. The time now is 05:37 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.