SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 254
Search took 0.01 seconds.
Search: Posts Made By: DomagojSellug
Forum: Scripting Help 28/02/2020, 07:10 PM
Replies: 18
Views: 387
Posted By DomagojSellug
Re: System login register!

Please format your posts like this: https://prnt.sc/r97t0i
So it looks more readable, like this:

// YOUR SCRIPT GOES HERE
Forum: Scripting Help 20/01/2020, 09:14 PM
Replies: 4
Views: 214
Posted By DomagojSellug
Re: new or enum?

enum PlayerData
{
Password,
Admin,
Money,
Score
}
new Player[MAX_PLAYERS][PlayerData];
Forum: Scripting Help 18/01/2020, 08:27 PM
Replies: 3
Views: 237
Posted By DomagojSellug
Re: Advertisment List

I won't write the whole code for you, but here's how you could to it - make an enum where you store advert info (such as the phone number, advertisement text, etc.) and assign each new advertisement...
Forum: Scripting Help 17/01/2020, 06:57 PM
Replies: 14
Views: 507
Posted By DomagojSellug
Re: Make the world time the same for everyone

Ooh, my bad, I didn't know that's what you meant lol. Well, you can try to set a timer that repeats itself and every second it'll gettime() and set the time for every player, but that wouldn't be...
Forum: Scripting Help 17/01/2020, 04:15 PM
Replies: 14
Views: 507
Posted By DomagojSellug
Re: Make the world time the same for everyone

// Somewhere in your script;
new hour, minute, second;

public OnGameModeInit(){
gettime(hour, minute, second); // get current server time
SetTimer("updateWorldTime", 360000, true); //...
Forum: Scripting Help 12/01/2020, 04:46 PM
Replies: 16
Views: 452
Posted By DomagojSellug
Re: NEED HELP! I HAVE THIS PROBLEM

You can also use plugins such as nativechecker and crashdetect to easily find the issue.
Forum: Scripting Help 10/01/2020, 09:37 PM
Replies: 10
Views: 313
Posted By DomagojSellug
Re: Updating 3D text label makes it dissapear

That didn't help me with my issue though, my issue currently is that it's always setting the target ID to 0 for some reason...
Forum: Scripting Help 10/01/2020, 09:19 PM
Replies: 10
Views: 313
Posted By DomagojSellug
Re: Updating 3D text label makes it dissapear

For some reason it always sets the target ID to 0, I don't know why. But whatever I do, it always attaches the label and handles everything with ID 0 which causes some weird bugs (e.g. if ID 0 is...
Forum: Scripting Help 10/01/2020, 07:45 PM
Replies: 10
Views: 313
Posted By DomagojSellug
Re: Updating 3D text label makes it dissapear

So... how should I edit my code in order to make it work?
Forum: Scripting Help 10/01/2020, 07:38 PM
Replies: 10
Views: 313
Posted By DomagojSellug
Re: Updating 3D text label makes it dissapear

I made some minor changes and added debugging, here's a picture.
https://prnt.sc/qm08km
https://prnt.sc/qm06g8
https://prnt.sc/qm06t4
Forum: Scripting Help 10/01/2020, 04:07 PM
Replies: 10
Views: 313
Posted By DomagojSellug
Updating 3D text label makes it dissapear

Basically I want to add a sort of a "loading bar" with 3D text labels for when player gets revived, but it doesn't seem to work. It starts at two bars and just disappears, that's it.

...
Forum: Scripting Help 07/01/2020, 05:11 PM
Replies: 2
Views: 149
Posted By DomagojSellug
Re: Vehicle tires aren't bulletproof for some reason

We fixed it, I don't know if it's the best solution, but here's what I did:

In OnPlayerWeaponShot I detected if the object hit is a vehicle, and if yet, is the vehicle ID Stretch, and if yes it'll...
Forum: Scripting Help 07/01/2020, 03:42 PM
Replies: 2
Views: 149
Posted By DomagojSellug
Vehicle tires aren't bulletproof for some reason

My friend and I have been trying to fix this issue for quite some time now and it simply refuses to work. What we want is to make the Stretch's (limousine) tires bulletproof.

Well, we tried taking...
Forum: Scripting Help 06/01/2020, 01:32 PM
Replies: 6
Views: 198
Posted By DomagojSellug
Re: Command load hard

Just a tip for the future, when pasting scripts, please do this:

https://prnt.sc/qk0u2h


This will make the code much readable and more people will want to help you. :)
Forum: Scripting Help 05/01/2020, 10:43 PM
Replies: 7
Views: 214
Posted By DomagojSellug
Re: Help with a bug on vehicle System

for(new i=0; i <= rows; i++)

Try this, and change the i=0 to i=1 if needed.
Forum: Scripting Help 02/01/2020, 08:55 PM
Replies: 12
Views: 290
Posted By DomagojSellug
Re: Help me with the command /duty

#include <a_samp>
#include <zcmd>
#include <sscanf>

new p_onDuty[MAX_PLAYERS] = 0;
new p_oldSkin[MAX_PLAYERS] = -1;
new capable[MAX_PLAYERS];
Forum: Scripting Help 02/01/2020, 04:18 PM
Replies: 2
Views: 117
Posted By DomagojSellug
Re: Map Problem

Are you using the function from Incognito's streamer plugin (https://github.com/samp-incognito/samp-streamer-plugin/releases) called CreateDynamicObject?
Forum: Client Support 28/12/2019, 03:53 PM
Replies: 3
Views: 910
Posted By DomagojSellug
Re: Disconnect after ALT-TAB/pause

Is it only on one server or on SA-MP in general?

I used to have this issue and it just resolved itself after I tried numerous things. Maybe while paused, your internet connection stops working for...
Forum: General 27/12/2019, 01:13 PM
Replies: 16
Views: 6,033
Posted By DomagojSellug
Re: Wich Roleplay server do you recommend in 2019?

LS-RP is not worth it anymore imo
Forum: Scripting Help 08/12/2019, 05:01 PM
Replies: 4
Views: 215
Posted By DomagojSellug
Re: witch way

To be honest, I wouldn't make a RP gamemode in 2019 (almost 2020) because there's loads of RP servers right now to choose from, and even the popular ones like LSRP and RCRP barely get players when...
Forum: Scripting Help 07/12/2019, 09:46 PM
Replies: 12
Views: 312
Posted By DomagojSellug
Re: OnPlayerConnect problem

In the login dialog you probably have a few lines which are loading the player stats, right?

He means that you copy the line from that part where it loads the "banned" variable from the player's...
Forum: General 02/12/2019, 03:55 PM
Replies: 10
Views: 1,327
Posted By DomagojSellug
Re: real/strict realistic roleplay or more fun?

I feel like making a realistic roleplay server wouldn't go well because we already have LSRP and RCRP which are the two most famous one.

I also feel like the same would go for making a less...
Forum: Scripting Help 02/12/2019, 03:52 PM
Replies: 4
Views: 324
Posted By DomagojSellug
Re: How to fix this?

From what I understood when translating, you want to save data into a table?

When creating a table for the first time you use INSERT INTO.

When you want to set a value for something that exists...
Forum: Scripting Help 01/12/2019, 05:23 PM
Replies: 3
Views: 170
Posted By DomagojSellug
Re: little help

This is good, but given that you are probably a beginner considering you don't know such a simple thing, I advise you to use GameTextForPlayer (https://wiki.sa-mp.com/wiki/GameTextForPlayer) as it is...
Forum: Scripting Help 30/11/2019, 07:04 PM
Replies: 1
Views: 139
Posted By DomagojSellug
How to add a NEW line in Y_INI?

I want to make my logs system work via Y_INI instead of SAMP's file manager because it's much faster.

But, I realized that, instead of writing new lines, Y_INI re-writes it in one line every time...
Showing results 1 to 25 of 254

 

All times are GMT. The time now is 06:47 PM.


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