SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 16/05/2014, 07:28 PM   #11
Whitetiger
Huge Clucker
 
Whitetiger's Avatar
 
Join Date: Nov 2007
Location: Greenville, NC, USA
Posts: 460
Reputation: 130
Default Re: YSF - kurta999's version

This adds plenty of SA-MP functions that should've been default in SA-MP. the textdraw functions are awesome.

I have a few suggestions, though

- Where is the UsePlayerPedAnims, per-player function (and then a GetPlayerPedAnims as well)
- GetPlayerWorldBounds
- DisableInteriorEnterExits (per-player version, and then GetInteriorEnterExitsState or something similar)
- SetPlayerTeam per player. e.g: player 1 can damage player 2, but player 2 can't damage player 1. obviously this is possible with scripting and onplayertakedamage. and this one might not be possible. I have only limited knowledge on this one
- GetVehicleFriendlyFire (and if possible EnableVehicleFriendlyFireForPlayer)
- Set/GetNameTagDistanceForPlayer
- Disable/EnableNameTagLOSForPlayer (and then GetNameTagLOSForPlayer)
- GetPlayerNameTagsState(playerid, forplayerid) - playerid = player to check, forplayerid = is this player visible for playerid
- GetHeadFacingDirection (/headmove cmd)
- GetPlayerSpectatingType - returns player or vehicle
- GetPlayerSpectatngID - returns playerid or vehicleid


anyway, I could keep going, there is actually a lot more. I was just looking at what is in the packets, and what is possible.
__________________
GitHub

Author of SA-MP AC

Whitetiger is offline   Reply With Quote
Old 16/05/2014, 08:06 PM   #12
kurta999
High-roller
 
kurta999's Avatar
 
Join Date: Apr 2009
Location: Slovakia (HU)
Posts: 1,391
Reputation: 579
Default Re: YSF - kurta999's version

UsePedAnims, namtag draw distance, interior enter exists, etc.. Are in RPC_InitGame.

If i would call it, then these changes should work, but game would re-inited* for player. And this is not good..

SetPlayerTeamForPlayer already added into plugin, you need to define it. I once tested, and didn't worked.

Code:
native SetPlayerTeamForPlayer(forplayerid, playerid, teamid);

* For more information, you know where you need search.
kurta999 is offline   Reply With Quote
Old 16/05/2014, 08:18 PM   #13
Mauzen
Godfather
 
Mauzen's Avatar
 
Join Date: Jun 2007
Location: Western Germany
Posts: 5,100
Reputation: 1523
Default Re: YSF - kurta999's version

YSF offered some great functionalities back in the days when it still worked. Great to see these functionalities are available again, nice work!
I dont like solidfiles as hoster, for having that download trap link. Id like to offer a mirror on my server, it will be up for at least one more year. Just send me a message if youd like that.
Mauzen is offline   Reply With Quote
Old 16/05/2014, 08:28 PM   #14
kurta999
High-roller
 
kurta999's Avatar
 
Join Date: Apr 2009
Location: Slovakia (HU)
Posts: 1,391
Reputation: 579
Default Re: YSF - kurta999's version

I'll upload it to my VPS, but now i'm moving to another host. This is the reason why I use solidfiles.
kurta999 is offline   Reply With Quote
Old 16/05/2014, 08:38 PM   #15
iZN
High-roller
 
Join Date: Jun 2010
Location: Pakistan
Posts: 2,473
Reputation: 565
Default Re: YSF - kurta999's version

Quote:
Originally Posted by kurta999 View Post
I'll upload it to my VPS, but now i'm moving to another host. This is the reason why I use solidfiles.
I'd prefer Github instead because: source code can be viewed, anybody can easily fork it and send pull request to improve/edit code, send issues, versions can be separated and can be also compared with the older one to view changes, you can add full documentation related to your project which includes a wiki, and many other stuff.
__________________
iZN is offline   Reply With Quote
Old 16/05/2014, 09:55 PM   #16
Tamer
High-roller
 
Tamer's Avatar
 
Join Date: Nov 2011
Location: Turkey
Posts: 1,199
Reputation: 169
Default Re: YSF - kurta999's version

Thanks Kurta!

I saw this function: IsPlayerInModShop

Do you know if we can detect a player which used the sprunk machine? I know this is possible via animation indexes but getting the data directly from the server would be much more better.
__________________
The three stages of truth:

- Ridicule.
- Violent opposition.
- Acceptance.


Quote:
The greatest hypnotist on the planet Earth is an oblong box in the corner of the room. It is constantly telling us what to believe is real. If you can persuade people that what they see with their eyes is what there is to see you've got them. you know because they'll laugh in your face of an explanation that portrays the biggest picture of what's happening... and they have.
Tamer is offline   Reply With Quote
Old 16/05/2014, 10:04 PM   #17
Kirollos
Gangsta
 
Kirollos's Avatar
 
Join Date: Jun 2010
Location: Cairo, Egypt
Posts: 578
Reputation: 83
Default Re: YSF - kurta999's version

Quote:
Originally Posted by iZN View Post
I'd prefer Github instead because: source code can be viewed, anybody can easily fork it and send pull request to improve/edit code, send issues, versions can be separated and can be also compared with the older one to view changes, you can add full documentation related to your project which includes a wiki, and many other stuff.
I agree with iZN, because sometimes i am lazy to download the whole package when i just want to have a look at the source.
__________________
My github profile: https://github.com/Kirollos/

( ͡ ͜ʖ ͡)
Kirollos is offline   Reply With Quote
Old 16/05/2014, 10:07 PM   #18
Bingo
High-roller
 
Bingo's Avatar
 
Join Date: Jul 2012
Location: Dubaaaaaaaaaaaaai
Posts: 1,674
Reputation: 235
Default Re: YSF - kurta999's version

Uhm, Nice work kurta,

Тhanks.
__________________
Hosted Tab raises it's price
Bingo is offline   Reply With Quote
Old 16/05/2014, 10:17 PM   #19
kurta999
High-roller
 
kurta999's Avatar
 
Join Date: Apr 2009
Location: Slovakia (HU)
Posts: 1,391
Reputation: 579
Default Re: YSF - kurta999's version

Quote:
Originally Posted by Tamer T View Post
Thanks Kurta!

I saw this function: IsPlayerInModShop

Do you know if we can detect a player which used the sprunk machine? I know this is possible via animation indexes but getting the data directly from the server would be much more better.
Server does not store anything about sprunk machines.
kurta999 is offline   Reply With Quote
Old 16/05/2014, 11:27 PM   #20
Amit_B
Gangsta
 
Amit_B's Avatar
 
Join Date: Nov 2007
Location: Israel
Posts: 690
Reputation: 61
Default Re: YSF - kurta999's version

Cool! Great work.

If i'm right, you're able to read or write memory values of GTA SA through the plugin?
__________________
- Leading the Israeli SA-MP Community, SA-MP.co.il - SAMP-IL
- Currently working on the first anime project on SA-MP, Naruto Shippuden gamemode: #1, #2, #3

https://github.com/Amit-B/
Amit_B is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[GameMode] [GM] - [RnD] Street Racers `N Drifters (New Version - latest version) Johny_Rocker Gamemode Scripts 23 10/12/2015 09:53 AM
How to convert server files from 0.3e version into 0.3c version Sajed Scripting Help 2 29/10/2013 07:48 PM
[FilterScript] [FS]New LSPD - Version 0.3 - Bugfix Version Dalenor Filterscripts 46 08/12/2010 01:36 PM
about changing version of sa-mp but with old script version Sfinx_17 Help Archive 3 22/10/2009 12:05 PM


All times are GMT. The time now is 06:22 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.