[Plugin] YSF - kurta999's version
#41

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
Reply
#42

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.
Reply
#43

[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.
Reply
#44

Quote:
Originally Posted by kurta999
View Post
[...]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.
Reply
#45

Quote:
Originally Posted by kurta999
View Post
[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
Reply
#46

Quote:
Originally Posted by KyleSmith
View Post
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
http://forum.sa-mp.com/showpost.php?...9&postcount=12
Reply
#47

Very Awesome thing i saw!
Reply
#48

Quote:
Originally Posted by Riddick94
View Post
Shit like 'RPC_InitGame', how am I suppost to know what it means lol?
Reply
#49

RPC = Remote Procedure Call = Do this on the client.
Init = Initialise
Game = Game

RPC_InitGame = (Re)initialise the client's game.
Reply
#50

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
Reply
#51

Impossbile, sorry.
Reply
#52

Quote:
Originally Posted by kurta999
View Post
Impossbile, sorry.
Can you tell me why?
Reply
#53

Because this message is on client side, and I can't hack it from server side to remove.
Reply
#54

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.
Reply
#55

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?
Reply
#56

Yes, it's compiled with the R4 version. Everytime I remove the plugin, no server crash.
Reply
#57

Quote:
Originally Posted by Konstantinos
View Post
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.
Reply
#58

It's Windows (I test on localhost).
Reply
#59

Quote:
Originally Posted by Konstantinos
View Post
It's Windows (I test on localhost).
Same here, my friend. Windows, localhost, I set the weather in OnPlayerSpawn callback, and nothing happens.
Reply
#60

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;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)