Raised This Month: $ Target: $400
 0% 

Showing results 1 to 25 of 130
Search took 0.02 seconds.
Search: Posts Made By: Cuttlas
Forum: Scripting Help 03-30-2024, 21:38
Replies: 21
Views: 1,869
Posted By Cuttlas
Re: CurWeapon event will fire on Fire

nice hints bro, Bugsy.

You are great at pawn. I will use it
Forum: Scripting Help 03-30-2024, 16:48
Replies: 21
Views: 1,869
Posted By Cuttlas
Re: CurWeapon event will fire on Fire

worked well Bugsy.

I'm trying to give the admin's weapon to other players on a team. so the Entity ID (which here is the player id who picks up the weapon) can help me to decide whether the...
Forum: Scripting Help 03-30-2024, 15:48
Replies: 21
Views: 1,869
Posted By Cuttlas
Re: CurWeapon event will fire on Fire

I have used this:

register_event("WeapPickup", "weapon_pickup", "b");

with yours and the WeapPickup, again it can not find the weapon name!

the admin is just an example, it will store the...
Forum: Scripting Help 03-30-2024, 14:40
Replies: 21
Views: 1,869
Posted By Cuttlas
Re: CurWeapon event will fire on Fire

I'm trying to do it on weapon pick up, but no success:


public weapon_pickup( iEntity )
{
new wid = read_data(2)
new id = pev( wid , pev_owner );

if ( iEntity == admin)
{
Forum: Scripting Help 12-26-2023, 00:01
Replies: 2
Views: 512
Posted By Cuttlas
Get player and weapon id in WeapPickup Event

register_event("WeapPickup", "weapon_pickup", "b");

how to get a player and weapon ID in the WeapPickup Event?

public weapon_pickup( iEntity )

what is iEntity? I tested it as player ID, but...
Forum: Scripting Help 12-23-2023, 00:13
Replies: 9
Views: 939
Posted By Cuttlas
Re: Pick A Random Player Bug on Start

I'm using amxmodx 1.8.2 bro :)
Forum: Scripting Help 12-22-2023, 16:29
Replies: 9
Views: 939
Posted By Cuttlas
Re: Pick A Random Player Bug on Start

@Bugsy thank you, bro, worked very well :)

but we have a tag mismatch warning on: iPlayingPlayers[ iPlayingPlayersCount ][ CSTeam ] = cstTeam;
Forum: Scripting Help 12-21-2023, 15:13
Replies: 9
Views: 939
Posted By Cuttlas
Re: Pick A Random Player Bug on Start

still the same error:

Run time error 10: native error (native "cs_set_user_team")
Forum: Scripting Help 12-19-2023, 15:30
Replies: 21
Views: 1,869
Posted By Cuttlas
Re: CurWeapon event will fire on Fire

could you please help me on that? :)
Forum: Scripting Help 12-19-2023, 15:28
Replies: 9
Views: 939
Posted By Cuttlas
Pick A Random Player Bug on Start

whenever my plugin is on (amx_pugin 1), it will transfer all players to CT and then pick a random player and transfer him to T. (one vs all CT)

here is the method:

public PickARandomPlayer()
{...
Forum: Scripting Help 12-19-2023, 15:01
Replies: 21
Views: 1,869
Posted By Cuttlas
Re: CurWeapon event will fire on Fire

it seems the codes provided by Bugsy and 101 have a bug with my goal.

whenever the admin drops a gun with G and picks up another one, the event won't call. so does it mean I should change weapons...
Forum: Scripting Help 12-19-2023, 00:36
Replies: 25
Views: 2,214
Posted By Cuttlas
Re: Allow White Space prefix-postfix in Player Names

is there any way to import Unicode char by code and not with printet char?
for example something like this:

format(PName , 32 , "%s%s" ,PName , from_uni(U+3164) );

so it will solve the...
Forum: Scripting Help 12-19-2023, 00:33
Replies: 25
Views: 2,214
Posted By Cuttlas
Re: Allow White Space prefix-postfix in Player Names

thank you 101, but this method executes infinitive! it will slow down the whole game.
Forum: Scripting Help 12-18-2023, 11:49
Replies: 25
Views: 2,214
Posted By Cuttlas
Re: Allow White Space prefix-postfix in Player Names

I can not compile it as long as amxx studio can not detect Unicode chars. (attached image) :(

I also edit the config.cfg with Notepad++ and put only white space (the Unicode char), but in-game, it...
Forum: Scripting Help 12-18-2023, 05:49
Replies: 25
Views: 2,214
Posted By Cuttlas
Re: Allow White Space prefix-postfix in Player Names

@georgik57 please give us sma and compile one.

in amxx studio, it will show "?" instead on that char

I also tried to rename my nick in options, but when I copy that char, nothing will add! it...
Forum: Scripting Help 12-17-2023, 22:49
Replies: 21
Views: 1,869
Posted By Cuttlas
Re: CurWeapon event will fire on Fire

@WATCH_D0GS_UNITED Thank you bro for your help. I'm creating a plugin and I due to you a lot man.

@Bugsy you too, you saved me a lot of time bro, thanks for your codes and skill. I also due to you...
Forum: Scripting Help 12-17-2023, 22:33
Replies: 25
Views: 2,214
Posted By Cuttlas
Re: Allow White Space prefix-postfix in Player Names

@georgik57 could you upload the sma file, please?

and could you please give me the code of that invisible char? I think it is U+3164
I copied it and renamed my name by replacing this char, but...
Forum: Scripting Help 12-17-2023, 15:19
Replies: 25
Views: 2,214
Posted By Cuttlas
Re: Allow White Space prefix-postfix in Player Names

@georgik57 thank you, man,

with which compiler do you compile it? with the amxx studio, it will show "?" sign instead on invisible Unicode chars.

with the online compiler, there are no effects...
Forum: Scripting Help 12-17-2023, 13:44
Replies: 21
Views: 1,869
Posted By Cuttlas
Re: CurWeapon event will fire on Fire

in the T or CT team, I need to change all player weapons to the admin's one.

for example, If the admin changes to the knife, all players switch to the knife, if he switches to awp, then I give all...
Forum: Scripting Help 12-17-2023, 02:23
Replies: 25
Views: 2,214
Posted By Cuttlas
Re: Allow White Space prefix-postfix in Player Names

but I need the SAME name or the SAME name on view (with white spaces) :)
Forum: Scripting Help 12-15-2023, 14:29
Replies: 21
Views: 1,869
Posted By Cuttlas
CurWeapon event will fire on Fire

I have hooked the CurWeapon event like this:

register_event("CurWeapon", "event_weapon_change", "be", "1=1")

A message will print whenever a player changes his weapon (it is for testing...
Forum: Scripting Help 12-15-2023, 08:26
Replies: 25
Views: 2,214
Posted By Cuttlas
Re: Allow White Space prefix-postfix in Player Names

because they are not humans (bots, zombie bots, and so on) I do not prefer fake names like Bob, john, and so on.

It would be perfect If I name them the same thing who they are :)
Forum: Scripting Help 12-15-2023, 08:23
Replies: 14
Views: 1,961
Posted By Cuttlas
Re: Float Cvar Tag mismatch Warning

thank you, brothers, specially @101, I reduced about 6 warnings,
but still there is another warning:

new RespawnDelay

public plugin_init(){
RespawnDelay =...
Forum: Scripting Help 12-14-2023, 15:00
Replies: 14
Views: 1,961
Posted By Cuttlas
Float Cvar Tag mismatch Warning

I have a float variable for setting a delay for set_task:

new Float:RespawnDelay

and I will set it in plugin_init (which gives me tag mismatch warning):

RespawnDelay =...
Forum: Scripting Help 12-14-2023, 14:38
Replies: 25
Views: 2,214
Posted By Cuttlas
Re: Allow White Space prefix-postfix in Player Names

I did not find any :(

my goal is to use the same names for bots. for example, I need to name them all ROBOT.
but currently, it will rename them as (1)Robot and similar numbering naming!

So I...
Showing results 1 to 25 of 130

 
Forum Jump

All times are GMT -4. The time now is 22:36.


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