Raised This Month: $85 Target: $400
 21% 

Showing results 1 to 25 of 30
Search took 0.01 seconds.
Search: Posts Made By: mrshark45
Forum: Scripting 07-19-2020, 08:20
Replies: 3
Views: 450
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: 450
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: 748
Posted By mrshark45
Forum: Scripting Help 12-19-2019, 16:46
Replies: 5
Views: 748
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: 1,117
Posted By mrshark45
Forum: Scripting Help 12-19-2019, 13:52
Replies: 8
Views: 1,117
Posted By mrshark45
Re: Limit player velocity

Can you mark it as solved?
Forum: Scripting Help 12-19-2019, 13:48
Replies: 5
Views: 748
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: 748
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: 748
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: 1,117
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: 1,117
Posted By mrshark45
Re: Limit player velocity

player velocity, like sv_maxvelocity
Forum: Scripting Help 09-28-2019, 06:41
Replies: 8
Views: 1,117
Posted By mrshark45
Forum: Scripting Help 09-27-2019, 17:40
Replies: 8
Views: 1,117
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: 1,467
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: 1,467
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: 1,467
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: 1,467
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: 1,467
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: 1,467
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: 1,467
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: 1,467
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...
Forum: Scripting Help 09-18-2019, 09:58
Replies: 17
Views: 1,467
Posted By mrshark45
Forum: Scripting Help 09-18-2019, 07:18
Replies: 17
Views: 1,467
Posted By mrshark45
Loading player's name on client_putinserver returns null (maybe?)

Hey, I'm working on a plugin that records the time played by a player, I load his saved timeplayed from a database at client_putinserver , but sometimes it returns 0, and the timeplayed resets , I...
Forum: HL1 Servers (HLDS) 03-27-2019, 14:28
Replies: 37
Views: 3,642
Posted By mrshark45
Re: Any anti-cheat Solutions for HL1?

Hey it's nima again,
I like this username. Mr Shark scary asf holy shit
Forum: Scripting Help 11-24-2018, 20:51
Replies: 3
Views: 442
Posted By mrshark45
Re: register touch problem,two players touching the same entity in the same time

The problem was from semiclip and gszStart and gszFinish are two entities.
Showing results 1 to 25 of 30

 
Forum Jump

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


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