Raised This Month: $32 Target: $400
 8% 

Showing results 1 to 25 of 34
Search took 0.01 seconds.
Search: Posts Made By: mrshark45
Forum: New Plugin Submissions 12-30-2022, 16:33
Replies: 252
Views: 117,315
Posted By mrshark45
Re: Chat Manager [Admin Prefix & Color Chat]

If anyone still needs it to work for hltv to record the chat as well, this is the fix:

On line 875 instead of :
get_players(iPlayers, iPnum, "ch")
Place :
get_players(iPlayers, iPnum, "c")
...
Forum: Source Servers (SRCDS) 08-09-2021, 17:35
Replies: 12
Views: 3,506
Posted By mrshark45
Re: [BUG] Kill through smoke feed not showing

Any solution to this?
I have the same problem with a clean server install, latest metamod and sourcemod branch
Forum: Module Coding 01-19-2021, 06:59
Replies: 2
Views: 4,205
Posted By mrshark45
Re: Modifying movement code

That's what I'm asking if there's a way to prevent it before it's happening...
Forum: Module Coding 01-15-2021, 02:48
Replies: 2
Views: 4,205
Posted By mrshark45
Modifying movement code

I'm trying to solve a well known bug, when surfing with high fps sometimes you get stuck, I wrote a plugin that kind of moves you back a frame everytime you get stuck, it worked well on singleplayer...
Forum: Scripting 07-19-2020, 08:20
Replies: 3
Views: 1,148
Posted By mrshark45
Re: Loading and saving data using mysql db

Thanks, I did the changes yesterday and it doesn't seem to reset anymore, maybe some players connected before the db connection was made.
Forum: Scripting 07-18-2020, 08:37
Replies: 3
Views: 1,148
Posted By mrshark45
Loading and saving data using mysql db

Hello, I wrote a simple credits plugin and sometimes , I don't know when, player's credits reset.
It doesn't show any error in the logs, I logged everytime the plugins load someone's credits from db...
Forum: Scripting Help 01-18-2020, 14:54
Replies: 5
Views: 1,823
Posted By mrshark45
Forum: Scripting Help 12-19-2019, 16:46
Replies: 5
Views: 1,823
Posted By mrshark45
Re: fakemeta forward FM_CheckVisibility

Ok, I think that I got it , but it still doesn't function at it should be:
FM_AddToFullPack :
public fw_addtofullpack(es_handle,e,ent,host,hostflags,player,pSet)
{
g_cl_pset[host] = pSet;
} ...
Forum: Scripting Help 12-19-2019, 14:15
Replies: 8
Views: 2,302
Posted By mrshark45
Forum: Scripting Help 12-19-2019, 13:52
Replies: 8
Views: 2,302
Posted By mrshark45
Re: Limit player velocity

Can you mark it as solved?
Forum: Scripting Help 12-19-2019, 13:48
Replies: 5
Views: 1,823
Posted By mrshark45
Re: fakemeta forward FM_CheckVisibility

And it does a lot of lag for players, here are some demos
With CheckVisibility activated:
Click (https://www.youtube.com/watch?v=oXujbyyU53g)
Without CheckVisibility:
Click...
Forum: Scripting Help 12-19-2019, 13:46
Replies: 5
Views: 1,823
Posted By mrshark45
Re: fakemeta forward FM_CheckVisibility

Ok, I did something, I took the pSet from FM_AddToFullPack and then I tested it in FM_CheckVisibility to check if a player is spectating and to render the entities for him, but it still renders them...
Forum: Scripting Help 12-15-2019, 13:54
Replies: 5
Views: 1,823
Posted By mrshark45
fakemeta forward FM_CheckVisibility

Hey, can someone explain to me what FM_CheckVisibility does, returns and what parameters does it have. I'm modifying a plugin that uses that to render entities when you spectate a bot, the bot...
Forum: Scripting Help 12-15-2019, 13:32
Replies: 8
Views: 2,302
Posted By mrshark45
Re: Limit player velocity

If anyone still needs it, I figured it out:
public limit_user_velocity(id, value){
new Float:velocity[3], Float:x, Float:y;
get_user_velocity(id, velocity);
new Float:speed =...
Forum: Scripting Help 09-28-2019, 08:11
Replies: 8
Views: 2,302
Posted By mrshark45
Re: Limit player velocity

player velocity, like sv_maxvelocity
Forum: Scripting Help 09-28-2019, 06:41
Replies: 8
Views: 2,302
Posted By mrshark45
Forum: Scripting Help 09-27-2019, 17:40
Replies: 8
Views: 2,302
Posted By mrshark45
Limit player velocity

Hey, I want to limit the velocity for some players, but not all, exactly like sv_maxvelocity , but only for some players, how can I achieve that?
Forum: Scripting Help 09-20-2019, 18:31
Replies: 17
Views: 3,469
Posted By mrshark45
Re: Loading player's name on client_putinserver returns null (maybe?)

I'll not use the boolean , because I'm not updating the timeplayed on client_disconnected anymore.
Forum: Scripting Help 09-20-2019, 18:30
Replies: 17
Views: 3,469
Posted By mrshark45
Re: Loading player's name on client_putinserver returns null (maybe?)

Ok, thanks all for the info, look what I did, now on client_connect I load the TimePlayed:

public client_connect(id){
loadPlayerTimePlayed(id);
}


public loadPlayerTimePlayed(id)
{
new...
Forum: Scripting Help 09-20-2019, 17:21
Replies: 17
Views: 3,469
Posted By mrshark45
Re: Loading player's name on client_putinserver returns null (maybe?)

Thanks, I'll use a boolean to check that too, hope it'll work
Forum: Scripting Help 09-20-2019, 17:20
Replies: 17
Views: 3,469
Posted By mrshark45
Re: Loading player's name on client_putinserver returns null (maybe?)

Ok, thanks , I understand now what he tried to tell me, I'll do it
Forum: Scripting Help 09-19-2019, 13:37
Replies: 17
Views: 3,469
Posted By mrshark45
Re: Loading player's name on client_putinserver returns null (maybe?)

And I pass the data to load the timeplayed so I need to pass the id so I can acces the variable TimePlayed[id], I can't pass the name.
Forum: Scripting Help 09-19-2019, 13:34
Replies: 17
Views: 3,469
Posted By mrshark45
Re: Loading player's name on client_putinserver returns null (maybe?)

Thanks for all the info, SQL_ReadResult(query, 1) returns the Timeplayed,https://i.imgur.com/so8Rp8I.png, SQL_ReadResult(query, 0) returns the name.
I'll change the column name in nickname , because...
Forum: Scripting Help 09-18-2019, 13:38
Replies: 17
Views: 3,469
Posted By mrshark45
Re: Loading player's name on client_putinserver returns null (maybe?)

Ok, I'll try to change the column name, but I still don't get what you want to say about the query in round end

public plugin_init(){
register_logevent( "EventRoundEnd", 2, "1=Round_End" );
}...
Forum: Scripting Help 09-18-2019, 11:17
Replies: 17
Views: 3,469
Posted By mrshark45
Re: Loading player's name on client_putinserver returns null (maybe?)

I tried with delay , it didn't work, also I'm using one for loop at the round end to save the time played for all the players, not 32...
Showing results 1 to 25 of 34

 
Forum Jump

All times are GMT -4. The time now is 17:06.


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