Re: YSF - kurta999's version -
Y_Less - 18.05.2014
Sorry, I meant to post a link to the topic for full credits, not directly to pastebin:
https://sampforum.blast.hk/showthread.php?tid=339088
Re: YSF - kurta999's version -
[WSF]ThA_Devil - 18.05.2014
I found a mistake within one function.
GetPlayerAttachedObject scale parameters should be returned as Float, instead of integer.
As well in a longer sessions my server crashed with this plugin.
I was using GetWeaponSlot under OnPlayerUpdate.
Sadly didn't use crashdetect when that happened, decided to remove, and server became more stable.
Re: YSF - kurta999's version -
kurta999 - 19.05.2014
[WSF]ThA_Devil: Add Float: tag yourself, will be fixed in R5.
I want to add per-player gang zone system, which would require to rewrite compelte zone system. I don't like this create and show method, so I would love to change that. I want to rewrite it like object system, create & show at same time.
Example:
pawn Code:
GangZoneCreate(Float:minx, Float:miny, Float:maxx, Float:maxy, color); // Does not require to show, it will create and show for every player
GangZoneSetColor(zoneid, color); // Would change zone color for every player
CreatePlayerGangZone(playerid, Float:minx, Float:miny, Float:maxx, Float:maxy, color); // Same..
PlayerGangZoneFSetColor(zoneid, color);
What's your opinion?
E: I'm thinking on it, and my answer is
NO! I will not mix something, which is same since exists.
Re: YSF - kurta999's version -
Riddick94 - 19.05.2014
Quote:
Originally Posted by kurta999
[...]Example:
pawn Code:
GangZoneCreate(Float:minx, Float:miny, Float:maxx, Float:maxy, color); // Does not require to show, it will create and show for every player GangZoneSetColor(zoneid, color); // Would change zone color for every player
CreatePlayerGangZone(playerid, Float:minx, Float:miny, Float:maxx, Float:maxy, color); // Same.. PlayerGangZoneFSetColor(zoneid, color);
What's your opinion?
|
You know (my opinion) what I AM thinking about that, we did some tests already, and I have idea, what I can do with these functions.
Any news about DisableHeadMovements(); function? Thanks.
Re: YSF - kurta999's version -
Kyle - 19.05.2014
Quote:
Originally Posted by kurta999
[WSF]ThA_Devil: Add Float: tag yourself, will be fixed in R5.
I want to add per-player gang zone system, which would require to rewrite compelte zone system. I don't like this create and show method, so I would love to change that. I want to rewrite it like object system, create & show at same time.
Example:
pawn Code:
GangZoneCreate(Float:minx, Float:miny, Float:maxx, Float:maxy, color); // Does not require to show, it will create and show for every player GangZoneSetColor(zoneid, color); // Would change zone color for every player
CreatePlayerGangZone(playerid, Float:minx, Float:miny, Float:maxx, Float:maxy, color); // Same.. PlayerGangZoneFSetColor(zoneid, color);
What's your opinion?
|
Can you tell us your opinion on the list of suggestions above if they're possible or not.
This one especially
http://forum.sa-mp.com/showpost.php?...3&postcount=11
Re: YSF - kurta999's version -
Riddick94 - 19.05.2014
Quote:
Originally Posted by KyleSmith
|
http://forum.sa-mp.com/showpost.php?...9&postcount=12
Re: YSF - kurta999's version -
iFarbod - 19.05.2014
Very Awesome thing i saw!
Re: YSF - kurta999's version -
Kyle - 19.05.2014
Quote:
Originally Posted by Riddick94
|
Shit like 'RPC_InitGame', how am I suppost to know what it means lol?
Re: YSF - kurta999's version -
Y_Less - 19.05.2014
RPC = Remote Procedure Call = Do this on the client.
Init = Initialise
Game = Game
RPC_InitGame = (Re)initialise the client's game.
Re: YSF - kurta999's version -
iFarbod - 19.05.2014
Toggle widescreen.
pawn Code:
ICMD:ws(playerid, params[])
{
if(!wse[playerid])
{
TogglePlayerWidescreen(playerid, true);
wse[playerid] = 1;
}
else
{
TogglePlayerWidescreen(playerid, false);
wse[playerid] = 0;
}
return 1;
}
Please remove this :
Code:
[16:27:32] Widescreen = 1
[16:27:39] Widescreen = 0
Re: YSF - kurta999's version -
kurta999 - 19.05.2014
Impossbile, sorry.
Re: YSF - kurta999's version -
iFarbod - 19.05.2014
Quote:
Originally Posted by kurta999
Impossbile, sorry.
|
Can you tell me why?
Re: YSF - kurta999's version -
kurta999 - 19.05.2014
Because this message is on client side, and I can't hack it from server side to remove.
Re: YSF - kurta999's version -
Konstantinos - 19.05.2014
SetPlayerWeather crashes the server when YSF is loaded.
pawn Code:
[18:29:57] [debug] Server crashed while executing tests.amx
[18:29:58] [debug] AMX backtrace:
[18:29:58] [debug] #0 native SetPlayerWeather () [01323900] from YSF.dll
[18:29:58] [debug] #1 00001298 in public OnPlayerSpawn (playerid=0) at D:\samp03z\gamemodes\tests.pwn:87
[18:29:59] [debug] Native backtrace:
[18:29:59] [debug] #0 01323999 in ?? () from plugins\YSF.dll
[18:29:59] [debug] #1 01843a46 in ?? () from plugins\crashdetect.dll
[18:29:59] [debug] #2 018450fa in ?? () from plugins\crashdetect.dll
[18:29:59] [debug] #3 0183c7f3 in ?? () from plugins\crashdetect.dll
[18:29:59] [debug] #4 01843a96 in ?? () from plugins\crashdetect.dll
[18:29:59] [debug] #5 0046cf10 in ?? () from samp-server.exe
[18:29:59] [debug] #6 00000009 in ?? () from samp-server.exe
and in OnPlayerSpawn:
pawn Code:
SetPlayerWeather(playerid, 1);
PS: You had mentioned that AttachPlayerObjectToObject needs testing and I got some time to do it. It works fine.
Re: YSF - kurta999's version -
kurta999 - 19.05.2014
Interesting, for me works fine. I think the problem is within hooks, one possible reason is player has been not added into YSF. Did you re-compiled your mode with latest YSF.inc?
Re: YSF - kurta999's version -
Konstantinos - 19.05.2014
Yes, it's compiled with the R4 version. Everytime I remove the plugin, no server crash.
Re: YSF - kurta999's version -
Riddick94 - 19.05.2014
Quote:
Originally Posted by Konstantinos
Yes, it's compiled with the R4 version. Everytime I remove the plugin, no server crash.
|
Linux server or Windows? Works fine on Windows server for me.
Re: YSF - kurta999's version -
Konstantinos - 19.05.2014
It's Windows (I test on localhost).
Re: YSF - kurta999's version -
Riddick94 - 19.05.2014
Quote:
Originally Posted by Konstantinos
It's Windows (I test on localhost).
|
Same here, my friend. Windows, localhost, I set the weather in OnPlayerSpawn callback, and nothing happens.
Re: YSF - kurta999's version -
iFarbod - 19.05.2014
SetPlayerWeather works fine!
_______
pawn Code:
stock GetPlayerGangZone(playerid)
{
for(new i = 0; i != MAX_GANG_ZONES; ++i)
{
if(IsPlayerInGangZone(playerid, i))
{
return i;
}
}
return -1;
}