SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 204
Search took 0.01 seconds.
Search: Posts Made By: IzadorO
Forum: Screenshots and Videos 16/02/2020, 05:02 PM
Replies: 11
Views: 1,273
Posted By IzadorO
Forum: Scripting Help 17/01/2020, 10:24 AM
Replies: 4
Views: 168
Posted By IzadorO
Re: Zero damage

Setting all players on the same team nullifies all player inflicted damage, however fall and any other nature damage of the sort still applies. Fall damage can be bypassed by setting the player's...
Forum: Scripting Help 16/01/2020, 04:53 PM
Replies: 34
Views: 1,344
Posted By IzadorO
Re: Detect when player enter/leave pickup

If you look at the previous pages, I have given an example on how to avoid loops by using streamer, and so has Pottus. I can't do it all for the guy, he has to learn somehow.
Forum: Scripting Help 15/01/2020, 12:22 AM
Replies: 34
Views: 1,344
Posted By IzadorO
Re: Detect when player enter/leave pickup

That completely contradicts what he's trying to use streamer for! You don't need to do a loop here if you are using Streamer_SetIntData and Streamer_GetIntData, which is what he's been attempting to...
Forum: Scripting Help 14/01/2020, 09:44 PM
Replies: 34
Views: 1,344
Posted By IzadorO
Re: Detect when player enter/leave pickup

You're going to have to figure this one out yourself, as we've tried to help you. Read up on what to do before you attempt to create a system you're not sure about, there's plenty of topics out there...
Forum: Scripting Help 14/01/2020, 05:33 PM
Replies: 11
Views: 363
Posted By IzadorO
Re: How to restart such variables?

I didn't say you were trying to offend me. I'm trying to stray the topic poster away from resetting a new variable to 0 each time one is created. What is the point of using an old method like that,...
Forum: Scripting Help 14/01/2020, 04:59 PM
Replies: 11
Views: 363
Posted By IzadorO
Re: How to restart such variables?

To lead you look for better ways to do things, instead of resorting to old methods which have been used since the beginning of your reign.

Your philosophy of life would have us all stuck making...
Forum: Scripting Help 14/01/2020, 04:27 PM
Replies: 11
Views: 363
Posted By IzadorO
Re: How to restart such variables?

Why do that when you can achieve the same result with just a few lines?
Forum: Scripting Help 11/01/2020, 02:19 PM
Replies: 3
Views: 202
Posted By IzadorO
Re: SetPlayerHealthBar for player (RakNet?)

https://forum.sa-mp.com/showthread.php?t=563442

Is this what you're looking for? I believe this allows you to mess with the health bar without actually changing the player's health.

I have...
Forum: Scripting Help 11/01/2020, 02:17 PM
Replies: 34
Views: 1,344
Posted By IzadorO
Re: Detect when player enter/leave pickup

You are doing something wrong. I really advise you read over what Pottus has said and check out that link I sent you, as that explains most of what you need to know to figure it out yourself.

Look...
Forum: Scripting Help 10/01/2020, 02:38 PM
Replies: 1
Views: 78
Posted By IzadorO
Re: Lock player so player can't do anything

Hook ApplyAnimation and TogglePlayerControllable. Create a variable to state the player has been frozen and assign it to true when the player has been frozen. Then in the ApplyAnimation hook, run a...
Forum: Scripting Help 09/01/2020, 09:42 AM
Replies: 34
Views: 1,344
Posted By IzadorO
Re: Detect when player enter/leave pickup

Put houseid = Streamer_GetIntData(STREAMER_TYPE_PICKUP, Pickupcasas[???], E_STREAMER_EXTRA_ID); at the top before the if check, and change Streamer_GetIntData to this:

houseid =...
Forum: Scripting Help 08/01/2020, 11:03 AM
Replies: 3
Views: 153
Posted By IzadorO
Re: VIP System Help

Using unixtime is very easy, here is an example:


pInfo[playerid][pVipExpire] = gettime() + 2629743 // Adding 1 month to unix time in seconds, make sure this is saved, once loaded, simply do...
Forum: Scripting Help 07/01/2020, 04:57 AM
Replies: 7
Views: 203
Posted By IzadorO
Re: Clan ID's

It will automatically do it itself for the enum ID once a new one is created. So say you create a clan, slot 0 doesn't have a clan as the clanExists variable is set to false, so the next clan created...
Forum: Scripting Help 06/01/2020, 11:39 PM
Replies: 7
Views: 203
Posted By IzadorO
Re: Clan ID's

What you need to do is, well, what I do is, create a bool variable within the clan enum called clanExists or something.

When you create a clan, loop from 0 through to your MAX_CLANS definition,...
Forum: Scripting Help 06/01/2020, 08:33 PM
Replies: 2
Views: 124
Posted By IzadorO
Re: what anim in vehicle?

To implement it properly you'll need a damage script which nullifies regular SA:MP damage. There are a few ways to do this, one of them being setting everyone to the same team and storing your own...
Forum: Server Support 01/01/2020, 07:47 PM
Replies: 5
Views: 318
Posted By IzadorO
Re: Server without Hamachi

There are providers that offer free hosting services, which is convenient when you only plan to test and not start a server with those services. You can alternatively pay about 5 a month for a low...
Forum: Scripting Help 31/12/2019, 12:22 PM
Replies: 2
Views: 136
Posted By IzadorO
Re: Are those breaks okay?

Not really sure what you're trying to do but it's really easy to understand how break works just by looking at the wiki.

If you don't need any more data from a loop you can break out of it.
If...
Forum: Scripting Help 31/12/2019, 08:46 AM
Replies: 1
Views: 93
Posted By IzadorO
Re: Question about "for" loop

You place else if you want the else code to be processed if the above statements are irrelevant. If not, you wouldn't use else and you'd just place it below the two if checks.

It would also be...
Forum: Scripting Help 26/12/2019, 01:55 PM
Replies: 4
Views: 187
Posted By IzadorO
Re: Aim Robbery Problems #2?

if((newkeys & KEY_AIM) == KEY_AIM

Should only be if (newkeys & KEY_AIM

if(gettime() - robbery_data[actorid][actor_robbedRecently] < 60 * ROBBERY_WAIT_TIME)
return...
Forum: Screenshots and Videos 26/12/2019, 01:49 PM
Replies: 13
Views: 1,432
Posted By IzadorO
Re: [Scripting Showcase] Stuff I'm working on

https://imgur.com/a/ELISrCv

Finished the modshop, the above album is a complete view of the system.
Forum: Scripting Help 23/12/2019, 10:31 PM
Replies: 5
Views: 216
Posted By IzadorO
Re: Re-enter a car window after drive-bying

Can you send the errors and the areas of your script containing the code I sent you? It's not my code, it was originally created by Emmet I believe however it was published here on these forums.
...
Forum: Screenshots and Videos 23/12/2019, 05:06 PM
Replies: 13
Views: 1,432
Posted By IzadorO
Re: [Scripting Showcase] Stuff I'm working on

A few videos are coming soon!

UPDATE: Featured a video of the modshop.
Forum: Scripting Help 22/12/2019, 09:13 PM
Replies: 5
Views: 216
Posted By IzadorO
Re: Re-enter a car window after drive-bying

#define DOUBLE_CLICK_TIME 1500
#define REARMED_WEAPON_UPDATES 4

new
g_TickPushed[MAX_PLAYERS],
g_Count[MAX_PLAYERS],
g_Weapon[MAX_PLAYERS];

under OnPlayerKeyStateChange
Forum: Screenshots and Videos 22/12/2019, 05:37 PM
Replies: 13
Views: 1,432
Posted By IzadorO
Re: [Scripting Showcase] Stuff I'm working on

Updated the showcase with a singleplayer modshop, currently it's a work in progress however I'd love your opinions.
Showing results 1 to 25 of 204

 

All times are GMT. The time now is 09:18 PM.


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