SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 37
Search took 0.00 seconds.
Search: Posts Made By: oghabanjb
Forum: Scripting Help 23/01/2020, 06:19 PM
Replies: 4
Views: 238
Posted By oghabanjb
Re: RCON API (PHP Problem)

Hi bruh.
Try this:

1. Open SampRconAPI.php
2. In SampRconAPI class add this method:
public function adminEcho($sMessage)
{
$this->packetSend('echo '.$sMessage, false);
}
3. Now use...
Forum: Scripting Help 20/01/2020, 08:59 AM
Replies: 7
Views: 1,655
Posted By oghabanjb
Re: DIALOG HELP - /credits command

Put your code in OnPlayerCommandText()
Forum: Scripting Help 10/01/2020, 01:29 PM
Replies: 6
Views: 169
Posted By oghabanjb
Re: symbol already defined: "SetPVarInt"

Remove "new" before function
Forum: Scripting Help 10/01/2020, 04:49 AM
Replies: 3
Views: 166
Posted By oghabanjb
Re: help "error 029"

Show me 1072, 1073 and 1074 lines
Forum: Scripting Help 07/01/2020, 01:03 PM
Replies: 4
Views: 266
Posted By oghabanjb
Re: Help with mysql

CREATE TABLE `UserIds`(`User_Name` VARCHAR(24) NOT NULL , `User_Kills` INT(11) NOT NULL) ENGINE = MyISAM;
Forum: Scripting Help 05/01/2020, 05:20 PM
Replies: 4
Views: 179
Posted By oghabanjb
Re: MySQL.

See:
https://wiki.sa-mp.com/wiki/MySQL#mysql_tquery and https://wiki.sa-mp.com/wiki/MySQL#mysql_pquery
Forum: Scripting Help 05/01/2020, 05:16 PM
Replies: 8
Views: 197
Posted By oghabanjb
Re: able to login using any password.

He may save users password in DIALOG_REGISTER, not in SavePlayerStats();
Forum: Scripting Help 01/07/2019, 04:24 PM
Replies: 9
Views: 500
Posted By oghabanjb
Re: Map on TD

TextDrawCreate(playerid, x, y, "samaps:map");
Forum: Filterscripts 30/06/2019, 11:35 AM
Replies: 11
Views: 16,943
Posted By oghabanjb
Re: Vehicle Spawner [Dialog+mSelection]

Update your mSelection.
Forum: Scripting Help 25/06/2019, 06:27 AM
Replies: 4
Views: 224
Posted By oghabanjb
Re: Account ID

#include <a_samp>
#include <YSI\y_ini>

#define PATH "Users/%s.ini"

enum PlayerInfo
{
pAdmin,
pVip
}
Forum: Scripting Help 24/06/2019, 05:55 PM
Replies: 4
Views: 224
Posted By oghabanjb
Re: Account ID

Any help?
Forum: Scripting Help 24/06/2019, 10:35 AM
Replies: 4
Views: 224
Posted By oghabanjb
Account ID

Hi all scripters. I want make Account ID system for my samp server. Im using Y_INI saving system. I don't know what should i do. Please help me. I want account id starts from 1000.
Forum: Server Support 22/06/2019, 02:50 PM
Replies: 6
Views: 429
Posted By oghabanjb
Re: Can't join server with downloaded Gamemodes

Try this:
First download a new SA-MP server folder.(https://sa-mp.com/download.php)
Then copy samp-server.exe from new folder and paste it in your gamemode folder that you downloaded.
Forum: Scripting Help 22/06/2019, 01:50 PM
Replies: 11
Views: 300
Posted By oghabanjb
Re: Cmd problem

Use this:

CMD:cgang(playerid, params[])
{
if(Player[playerid][AdminLevel] < 5) return ErrorMessage(playerid, COLOR_ERROR, 1);

new gname[MAX_GANG_NAME], type;

if(sscanf(params,...
Forum: Tutorials 22/06/2019, 01:46 PM
Replies: 553
Views: 333,680
Posted By oghabanjb
Re: Login and Register System - Dialogs - Using Y_INI

Anywhere of your code. Just don't put it in public, stock and plain functions.
Forum: Scripting Help 22/06/2019, 01:42 PM
Replies: 11
Views: 300
Posted By oghabanjb
Re: Cmd problem

Don't use MAX_GANG_NAME in string.
Try this:
if(sscanf(params, "s[40]d", gname, type))
Forum: Scripting Help 21/06/2019, 07:54 PM
Replies: 4
Views: 457
Posted By oghabanjb
Re: How to set time for a command

Try this:

new ArmourTime[MAX_PLAYERS]; //Put this under includes and defines
new ArmourTimer[MAX_PLAYERS];//and this

forward ArmourTimeToZero(playerid);//Put this anywhere of your script...
Forum: Scripting Help 21/06/2019, 01:13 PM
Replies: 3
Views: 130
Posted By oghabanjb
Re: Run/Compile Errors

You put a public function(OnPlayerEnterCheckpoint) in the {}.
This isn't correct and you will get error.
Forum: Filterscripts 21/06/2019, 01:09 PM
Replies: 13
Views: 6,402
Posted By oghabanjb
Re: Easy Load/Unload/Reload FS ingame

Everyone can use this commands.
You can add IsPlayerAdmin(playerid) to check if player is admin or not.
Forum: Scripting Help 20/06/2019, 05:16 PM
Replies: 1
Views: 195
Posted By oghabanjb
Re: How to make reply command

See here:
https://pastebin.com/HFZFjc3J
Credits: MouseBreaker, YoYo123
Forum: Scripting Help 20/06/2019, 09:07 AM
Replies: 5
Views: 219
Posted By oghabanjb
Re: Help with YSI

Are you wrote #include <YSI\y_ini> or #include <YSI/y_ini>
The correct is #include <YSI\y_ini>
Forum: Server Support 12/02/2019, 04:51 PM
Replies: 12
Views: 744
Posted By oghabanjb
Re: Port Forwarding doesnt work.

Make sure your firewall is off.
Forum: Scripting Help 04/02/2019, 02:31 PM
Replies: 1
Views: 235
Posted By oghabanjb
OnDialogResponse

Hi all. I have a problem. My code:
dcmd_amsg(playerid,params[])
{
if(AccInfo[playerid][Level] >= 1 && AccInfo[playerid][LoggedIn] == 1)
{
new text[256], id;
new str[128];
...
Forum: Scripting Help 13/01/2019, 02:09 PM
Replies: 3
Views: 215
Posted By oghabanjb
Re: TextDraw

Oh thanks it's worked.
Forum: Scripting Help 13/01/2019, 10:55 AM
Replies: 3
Views: 215
Posted By oghabanjb
TextDraw

Hi all. This is my code:
public OnPlayerConnect(playerid)
{
OghabServer = TextDrawCreate(580.0,42.0,"Oghab~n~Server");
TextDrawAlignment(OghabServer, 2);
TextDrawFont(OghabServer,...
Showing results 1 to 25 of 37

 

All times are GMT. The time now is 07:47 AM.


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