Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 17 of 17
Search took 0.00 seconds.
Search: Posts Made By: stanciu
Forum: Scripting Help 10-14-2020, 16:29
Replies: 2
Views: 479
Posted By stanciu
Re: Bomb explosion triggers an event twice

Thanks. I somehow have found a fix by having a variable check if the round is over or not. It fixed, might not be the best solution -- will switch to that soon! Thank you, solved!
Forum: Scripting Help 10-14-2020, 07:50
Replies: 2
Views: 479
Posted By stanciu
Bomb explosion triggers an event twice

Hello,

Stumbled upon an error.

I have:

register_event("SendAudio", "eventTCastiga", "a", "2&%!MRAD_terwin")

Then
Forum: Scripting Help 04-05-2016, 10:22
Replies: 4
Views: 591
Posted By stanciu
Re: Getting the highest value from nVault

Let's say I'd have it saved it like this:


formatex( KNIFEkills, charsmax( KNIFEkills ), "%s's kills with the knife: %d", NAME, g_KNIFEkills )

nvault_set ( myVault, KNIFEkills )

Not sure if...
Forum: Scripting Help 04-05-2016, 10:11
Replies: 4
Views: 591
Posted By stanciu
Getting the highest value from nVault

Hello,

I've this nVault that stores every player's stats. Let's say a player stats adds up (+1) every time he gets a kill with a knife.

So, every damn time player X gets a kill with the knife,...
Forum: Scripting Help 03-21-2016, 13:42
Replies: 8
Views: 1,183
Posted By stanciu
Re: Detect whether a player's name is X

Yeah, I know. Though I prefered to use it that way. Either way, thanks to you both. I still have one question left though: is it OK to use "return 1" and "return 0"? I feel like I'm missing...
Forum: Scripting Help 03-21-2016, 10:11
Replies: 8
Views: 1,183
Posted By stanciu
Re: Detect whether a player's name is X

So... if I would change my stock function to this:

stock is_Stanciu( id ){

new NAME [ 32 ]
get_user_name( id, NAME, 31 )
if ( equali( NAME, "stanciu" ) ) {

...
Forum: Scripting Help 03-21-2016, 10:01
Replies: 8
Views: 1,183
Posted By stanciu
Detect whether a player's name is X

Hello,

I want to make a function that detects whether a player's name is "stanciu" and returns 1 ( true ).

What I've done:

stock is_Stanciu( id ){

new NAME [ 32 ]
get_user_name( id,...
Forum: Scripting Help 03-20-2016, 07:56
Replies: 12
Views: 1,824
Posted By stanciu
Re: Rewarding A Player When He Kills Certain Players

Jesus.... it's been a while, Ark, that's why. It baffles me that I forgot. Finally fixed it. Many thanks!
Forum: Scripting Help 03-20-2016, 06:50
Replies: 12
Views: 1,824
Posted By stanciu
Re: Rewarding A Player When He Kills Certain Players

I absolutely cannot find a fix for this.

I currently have:

if( GetCurrentWeapon ( KILLER ) == CSW_KNIFE ) {

client_print_color( 0, print_chat, "!n Ouch! !t%s !nl-a umilit pe !t%s!n!",...
Forum: Scripting Help 03-20-2016, 03:28
Replies: 12
Views: 1,824
Posted By stanciu
Re: Rewarding A Player When He Kills Certain Players

&& strcmp(VictimaN, certainPlayers[][]

That still doesn't work:

Argument type mismatch (argument 1) on that line.

What's wrong now?
Forum: Scripting Help 03-19-2016, 14:24
Replies: 12
Views: 1,824
Posted By stanciu
Re: Rewarding A Player When He Kills Certain Players

Can't seem to get this to work. I get what you're saying, but I simply cannot fix it. Is it too much if I'm asking you to fix it? Thanks.
Forum: Scripting Help 03-19-2016, 14:19
Replies: 12
Views: 1,824
Posted By stanciu
Re: Rewarding A Player When He Kills Certain Players

I don't get it. Replaced "knife" with "weapon_knife" and I'm still getting the same error. Could you be more specific, please? Thanks.
Forum: Scripting Help 03-19-2016, 13:50
Replies: 12
Views: 1,824
Posted By stanciu
Rewarding A Player When He Kills Certain Players

Hey,

I want to make a script that rewards an ordinary player for killing certain players (admins mostly). What I done so far is:

new const certainPlayers[][] = {

"a",
"foo",
"bar",...
Forum: Scripting Help 03-19-2016, 13:35
Replies: 8
Views: 4,744
Posted By stanciu
Re: Get A Player's Name Stock

My function that I posted on my main post worked flawlessly.
Forum: Scripting Help 03-19-2016, 13:04
Replies: 8
Views: 4,744
Posted By stanciu
Re: Get A Player's Name Stock

Well... while scripting for SA-MP servers, it was helping me by reducing my time not having to do:

new name [ MAX_PLAYER_NAME ],
szMsg [ 24 ];
GetPlayerName( playerid, name, sizeof( name...
Forum: Scripting Help 03-19-2016, 11:56
Replies: 8
Views: 4,744
Posted By stanciu
Re: Get A Player's Name Stock

All right, got it. Thanks!
Forum: Scripting Help 03-19-2016, 11:29
Replies: 8
Views: 4,744
Posted By stanciu
Get A Player's Name Stock

Hey!


So... I installed everything I needed and decided to give it a go. First thing's first: decided to make a function to get a player's name so I don't have to use get_user_name every damn...
Showing results 1 to 17 of 17

 
Forum Jump

All times are GMT -4. The time now is 02:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode