SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: Gammix
Forum: Scripting Help 20/09/2018, 10:28 PM
Replies: 8
Views: 53
Posted By Gammix
Re: Any way to adminlog?

It won't cause you any harm if you run 5-10 queries every second.

Another smart way can be using a 2D array and fill it up with admin log until it gets full. Once the array is full, you save the...
Forum: Scripting Help 18/09/2018, 12:38 AM
Replies: 5
Views: 81
Posted By Gammix
Re: Modifique one value all archives | DINI

Its actually dudb which is made with dini, so its basically DINI file processor.
Forum: Scripting Help 18/09/2018, 12:35 AM
Replies: 26
Views: 285
Posted By Gammix
Re: OnPlayerWeaponEmpty

I did a test with GetPlayerAmmo under OnPlayerWeaponShot and it works perfectly fine. So its your code or something else interfering with either one of the functions.

GetPlayerAmmo does return the...
Forum: Scripting Help 18/09/2018, 12:09 AM
Replies: 26
Views: 285
Posted By Gammix
Re: OnPlayerWeaponEmpty

OnPlayerWeaponShot is called when a bullet is shot, no matter how player clicks.

Did it work with 1?
Forum: Scripting Help 18/09/2018, 12:01 AM
Replies: 26
Views: 285
Posted By Gammix
Re: OnPlayerWeaponEmpty

Maybe GetPlayerAmmo returns the old value before the weapon's ammo is taken by system.

Try if (GetPlayerAmmo(playerid) == 1)

^ If even that doesn't work then try GetPlayerWeaponData...
Forum: Scripting Help 17/09/2018, 11:36 PM
Replies: 26
Views: 285
Posted By Gammix
Re: OnPlayerWeaponEmpty

Show us how you did it.
Forum: Scripting Help 17/09/2018, 10:36 PM
Replies: 26
Views: 285
Posted By Gammix
Re: OnPlayerWeaponEmpty

You can do this under OnPlayerWeaponShot, but only for bullet weapons:

public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if...
Forum: Scripting Help 17/09/2018, 04:20 AM
Replies: 20
Views: 354
Posted By Gammix
Re: Mission label

^ Why not just make a bigger box instead of that mess?

These two are responsible for your box:

TextDrawUseBox(textdraw, 1); // enable box

TextDrawTextSize(textdraw, 142.000000, 0.000000); //...
Forum: Everything and Nothing 15/09/2018, 02:15 AM
Replies: 37
Views: 1,099
Posted By Gammix
Re: Do you like the new Chrome design?

I haven't received the desktop app update yet and after looking at your picture post, it looks ugly and i think i won't be using the update!

But on phone, i like the new UI.
Forum: Filterscripts 12/09/2018, 11:53 PM
Replies: 31
Views: 7,739
Posted By Gammix
Forum: Includes 07/09/2018, 09:20 PM
Replies: 518
Views: 100,685
Posted By Gammix
Re: Dialogs include - Adding new styles to SAMP GUI

This question has been asked zillion times! And yes, it does, you just need to include this before y_dialogs or easy_dialog etc.
Forum: General 07/09/2018, 07:37 PM
Replies: 20
Views: 1,002
Posted By Gammix
Re: Current state of SAMP

Less Players, More Bots, Less Unique SA:MP servers, and Toxic community.

There you go.
Forum: Filterscripts 06/09/2018, 11:27 PM
Replies: 44
[FilterScript] Textdraw Editor By Gammix
Views: 10,545
Posted By Gammix
Re: Textdraw Editor By Gammix

http://forum.sa-mp.com/showthread.php?t=570213
Forum: Scripting Help 06/09/2018, 06:16 PM
Replies: 19
Views: 239
Posted By Gammix
Re: LD_SPAC:white transparency ?

^ This is why its not working, try any other sprite model and it may work.
Forum: Scripting Help 06/09/2018, 01:03 PM
Replies: 19
Views: 239
Posted By Gammix
Re: LD_SPAC:white transparency ?

Its a known bug sometimes LD_SPAC:WHITE or LD_SPAC:BLACK sprites doesn't support transparency.

But 0 is equivalent to no color.
Forum: Scripting Help 06/09/2018, 12:45 PM
Replies: 19
Views: 239
Posted By Gammix
Re: LD_SPAC:white transparency ?

TextDrawColor (MENU_RACEDM[5], 0);
Forum: Filterscripts 06/09/2018, 03:33 AM
Replies: 44
[FilterScript] Textdraw Editor By Gammix
Views: 10,545
Posted By Gammix
Re: Textdraw Editor By Gammix

http://forum.sa-mp.com/showpost.php?p=3983659&postcount=29
Forum: Scripting Help 04/09/2018, 04:18 AM
Replies: 4
Views: 109
Posted By Gammix
Re: double click on textdraw

Its because you set the new info before checking:

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
for(new i = 3; i < 13; i++)
{
if(clickedid == TD_ListBox[i])
{
...
Forum: Tools and Files 26/08/2018, 06:35 PM
Replies: 15
[Tool/Web/Other] Paste(Copy)bin
Views: 802
Posted By Gammix
Re: Paste(Copy)bin

Pastebin http://forums.euw.leagueoflegends.com/board/attachment.php?attachmentid=190396
Forum: Includes 26/08/2018, 04:17 PM
Replies: 518
Views: 100,685
Posted By Gammix
Re: Dialogs include - Adding new styles to SAMP GUI

That means, some other library your are using, is using textdraw IDs for OnPlayerClickTextDraw incorrectly.
Try running the sample in a blank gamemode.
Forum: Includes 22/08/2018, 07:58 PM
Replies: 78
Views: 23,222
Posted By Gammix
Re: GMenus Include (stylish GTA V themed* interaction menus!)

You'll have to modify the textdraw code inside the include.

Its very easy, just change this textdraw code (copy this and replace to the lines: 183 - 192):
...
Forum: Includes 22/08/2018, 05:32 PM
Replies: 518
Views: 100,685
Posted By Gammix
Re: Dialogs include - Adding new styles to SAMP GUI

You must have per player array where you save object ids for each player.

So you can checkout the example: 2, for how to make a dialog from an enum-array.

Here is a simple example:

enum...
Forum: Scripting Help 21/08/2018, 04:19 PM
Replies: 6
Views: 155
Posted By Gammix
Re: Get duration

Then you have to split the string for year, month, day, hour, minute and second. Once you got all of those, you'll have to convert them into a single timestamp using "datetime2stamp()" (from library:...
Forum: Scripting Help 20/08/2018, 11:52 PM
Replies: 6
Views: 155
Posted By Gammix
Re: Get duration

The function returns the time elapsed between two timestamps i.e. "start" and "till".

"start" should be smaller than "till".

So if you store timestamps in "Player[playerid][RegisterDate]"...
Forum: Scripting Help 20/08/2018, 11:09 PM
Replies: 6
Views: 155
Posted By Gammix
Re: Get duration

http://forum.sa-mp.com/showpost.php?p=3756763&postcount=4585
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 12:41 AM.


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