Re: YSF - kurta999's version -
bogdyutzu - 01.01.2015
It's possible to add also ApplyAnimationForPlayer?
Re: YSF - kurta999's version -
kurta999 - 01.01.2015
Before I'm going to sleep, I checked it in IDA. Looks like, yes.
Re: YSF - kurta999's version -
IstuntmanI - 03.01.2015
Quote:
Originally Posted by Y_Less
One problem - that's not what "-1" actually does. There is a better fix on the forums somewhere that correctly uses carcols.dat data.
|
Yes, I know, but it was an acceptable solution, temporary, instead of applying all that code. It would be nice if it would be integrated in the plugin.
The fix Y_Less is talking about, made by Emmet:
https://sampforum.blast.hk/showthread.php?tid=500622
AW: YSF - kurta999's version -
Peek - 04.01.2015
Is it possible to add something like this to YSF?:
Код:
RedirectPlayerToServer(playerid, serverip[], port); // Redirects a player to another server
ReconnectPlayer(playerid); // forces a player to reconnect
That would be great.
Re: AW: YSF - kurta999's version -
kurta999 - 04.01.2015
Quote:
Originally Posted by Peek
Is it possible to add something like this to YSF?:
Код:
RedirectPlayerToServer(playerid, serverip[], port); // Redirects a player to another server
ReconnectPlayer(playerid); // forces a player to reconnect
That would be great. 
|
Impossible.
Re: AW: YSF - kurta999's version -
Abagail - 04.01.2015
Quote:
Originally Posted by kurta999
Impossible.
|
Regarding the reconnect that is possible without plug-ins by banning their IP(without kicking).
Example:
pawn Код:
new playerIP[MAX_PLAYERS][32];
new bool: Relogging[MAX_PLAYERS];
CMD:relog(playerid, params[])
{
new string[64];
GetPlayerIp(playerid, playerIP[playerid], sizeof(playerIP[playerid]));
format(string, sizeof(string), "banip %s", playerIP[playerid]));
SendRconCommand(string);
Relogging[playerid] = true;
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
if(Relogging[playerid] == true)
{
format(string, sizeof(string), "unbanip %s", playerIP));
SendRconCommand(string);
Relogging[playerid] = false;
return 1;
}
return 1;
}
Sorry for my shitting scripting, its quite late here.
AW: YSF - kurta999's version -
Oskaar1994 - 05.01.2015
Код:
native IsPlayerSpawned(playerid);
doesn't work for me always. It sometimes says that the player is already spawned even if he isn't.
And a small question. Is it somehow possible that a vehicle doesn't accelerate if the player presses the acceleration key without turning off the engine ? Because if you turn off the engine in an aircraft it will fall down to the ground like a stone.
I've also got two small suggestions. I know they are also possible to make with pawn but it would still be cool
Код:
native ToggleVehicleControlable(vehicleid, bool:toggle);
native GetVehicleRot(vehicleid);
Re: AW: YSF - kurta999's version -
Anuris - 05.01.2015
Quote:
Originally Posted by Oskaar1994
Код:
native ToggleVehicleControlable(vehicleid, bool:toggle);
|
You can do it using PAWN.
pawn Код:
new bool:VehControl[MAX_VEHICLES];
public OnGameModeInit() ManualVehicleEngineAndLights();
stock ToggleVehicleControlable(vehicleid, bool:toggle) VehControl[vehicleid] = toggle;
And then every time check this boolean before SetVehicleParamsEx.
Re: AW: YSF - kurta999's version -
kurta999 - 05.01.2015
Quote:
Originally Posted by Abagail
Regarding the reconnect that is possible without plug-ins by banning their IP(without kicking).
Example:
pawn Код:
new playerIP[MAX_PLAYERS][32]; new bool: Relogging[MAX_PLAYERS]; CMD:relog(playerid, params[]) { new string[64]; GetPlayerIp(playerid, playerIP[playerid], sizeof(playerIP[playerid])); format(string, sizeof(string), "banip %s", playerIP[playerid])); SendRconCommand(string); Relogging[playerid] = true; return 1; }
public OnPlayerDisconnect(playerid, reason) { if(Relogging[playerid] == true) { format(string, sizeof(string), "unbanip %s", playerIP)); SendRconCommand(string); Relogging[playerid] = false; return 1; } return 1; }
Sorry for my shitting scripting, its quite late here.
|
Maybe I will implement this.
Re: YSF - kurta999's version -
Kar - 05.01.2015
I really wish this was SA-MP 0.4...
Re: YSF - kurta999's version -
Abagail - 05.01.2015
Quote:
Originally Posted by Kar
I really wish this was SA-MP 0.4...
|
I don't! If this was a SA-MP update then the plug-in wouldn't be open-source. Having this as an open-source plugin allows for scripting learning & development(even for experienced PAWN scripters who don't actually know how SA:MP physically works).
Hence: I would hate for this to be a SA:MP update, and not a plug-in.
Re: YSF - kurta999's version -
Tamer - 05.01.2015
Quote:
Originally Posted by Abagail
I don't! If this was a SA-MP update then the plug-in wouldn't be open-source. Having this as an open-source plugin allows for scripting learning & development(even for experienced PAWN scripters who don't actually know how SA:MP physically works).
Hence: I would hate for this to be a SA:MP update, and not a plug-in.
|
Some functions such as CreateExplosionForPlayer etc were in YSF and got themselves a place on the SA-MP updates. But I don't think it would be fully implemented.
Re: YSF - kurta999's version -
Whitetiger - 06.01.2015
Doesn't work:
pawn Код:
CMD:gravity(playerid, params[])
{
SetPlayerGravity(playerid, floatstr(params));
}
Works:
pawn Код:
CMD:gravity(playerid, params[])
{
SendRPC(playerid, 0x92, BS_FLOAT, floatstr(params));
}
Is SetPlayerGravity working for anyone else or is it just me? - Even in the example script without recompiling, it doesn't work.
Re: YSF - kurta999's version -
kurta999 - 06.01.2015
Quote:
Originally Posted by Whitetiger
Doesn't work:
pawn Код:
CMD:gravity(playerid, params[]) { SetPlayerGravity(playerid, floatstr(params)); }
Works:
pawn Код:
CMD:gravity(playerid, params[]) { SendRPC(playerid, 0x92, BS_FLOAT, floatstr(params)); }
Is SetPlayerGravity working for anyone else or is it just me? - Even in the example script without recompiling, it doesn't work.
|
For me works. Anyway, now hooking only will works in gamemode, please inclued YSF.inc to your GM and recompile. This will be fixed in R11 because I switched to SAMP GDK.
Re: YSF - kurta999's version -
IstuntmanI - 06.01.2015
Now that things like SetPlayerSkinForPlayer, SetPlayerNameForPlayer, SetPlayerFightingStyleForPlayer were added, isn't something like MoveObjectForPlayer possible ? For that player the global object moves, but for the rests, it stays in place. I know that there are player objects, but this would be more efficient.
Re: YSF - kurta999's version -
kristo - 08.01.2015
I guess AttachPlayerObjectToPlayerObject could be done as well?
Re: YSF - kurta999's version -
IstuntmanI - 08.01.2015
Quote:
Originally Posted by Gamer_Z
Please elaborate your logic about efficiency? You'd need to save the object state for each player anyway. So you're just exactly doing PlayerObjects.
|
I was sure that not many will get my idea. For example, I was looking at a GTA V video and he was buying weapons at an ammunation, and when he was buying, he saw the objects (weapons) placed on the wall, and when he selected one, it would move in front of other weapons, like it is floating above, to see that it is selected. Instead of creating about 19 player objects for every player, we could simply create 19 global objects, and moving them separately for everyone. This is just an example. I don't know how hard it is to make, but if it's basically recreating player objects, then it's unnecessary (I don't think it's that hard).
Re: YSF - kurta999's version -
Tamer - 08.01.2015
Quote:
Originally Posted by IstuntmanI
I was sure that not many will get my idea. For example, I was looking at a GTA V video and he was buying weapons at an ammunation, and when he was buying, he saw the objects (weapons) placed on the wall, and when he selected one, it would move in front of other weapons, like it is floating above, to see that it is selected. Instead of creating about 19 player objects for every player, we could simply create 19 global objects, and moving them separately for everyone. This is just an example. I don't know how hard it is to make, but if it's basically recreating player objects, then it's unnecessary (I don't think it's that hard).
|
This is actually a pretty good idea.
But you can still overcome this. You can create these objects and delete them when you're done with them.
But yes, the idea is good.
Re: YSF - kurta999's version -
D1xe - 09.01.2015
Support for 1000p is necessary to the version, please
Re: YSF - kurta999's version -
IstuntmanI - 09.01.2015
Quote:
Originally Posted by Gamer_Z
But.. you will still need to save the state/position of all those 19 objects for each player? How else can you tell if a objects is floating for a player or not.
|
Saving the ID of the object in a variable for each player (not 19 for each player, but only one), and when he cancels or something like that, that object will be moved back for him and variable will reset. It was just an example, there's no need for that much details. If it is easy to be made, I don't see why not, especially that it can be useful.