Requested Functions and Events: Difference between revisions
mNo edit summary |
|||
Line 12: | Line 12: | ||
:::::Try it, I'm not entirely sure. You should be able to produce some code to show the player's current tasks very easily... [[User:EAi|eAi]] 19:20, 17 June 2008 (CDT) | :::::Try it, I'm not entirely sure. You should be able to produce some code to show the player's current tasks very easily... [[User:EAi|eAi]] 19:20, 17 June 2008 (CDT) | ||
::::::My goal is to edit the standard damage of the attacks, in this case i have to know when player is on ground to cause higher damage. However it doesn't seem to work, when i hit the player it simply gets up without animation with no damage. --<span style="font-family:Courier New, Courier, monospace">[[User:Shadd|Shadd]]</span><sub>([[User_talk:Shadd|In caso di emergenza rompere le scatole]])</sub> 19:10, 19 June 2008 (CDT) | ::::::My goal is to edit the standard damage of the attacks, in this case i have to know when player is on ground to cause higher damage. However it doesn't seem to work, when i hit the player it simply gets up without animation with no damage. --<span style="font-family:Courier New, Courier, monospace">[[User:Shadd|Shadd]]</span><sub>([[User_talk:Shadd|In caso di emergenza rompere le scatole]])</sub> 19:10, 19 June 2008 (CDT) | ||
It may looks strange and useless (waste of time?) but I think that it could be a awesome feature. Having a web browser. | |||
Like: http://www.youtube.com/watch?v=wT1UR6qEgdg | |||
http://princeofcode.com/awesomium.php | |||
There could be something like createBrowser( float x, float y, float z, [float rx, float ry, float rz, float width, float high, string url, bool locked] ) | |||
locked parameter: false = navigation bar present, true = no navigation bar | |||
toggleBrowserFullsceenMode(browser theBrowser, bool tog, [bool smooth]) | |||
smooth parameter: If set to true the browser will smoothly move from his ingame position to the fullscreen position | |||
toggleBrowserBackground(browser theBrowser, bool tog) | |||
Set the browser background transparent. | |||
Security: Disable file downloads, disable popups (disable flash, javascript and any other protocols than http and https [no mailto and stuff...]?) | |||
Should be a Client and server function. | |||
==Client-Side== | ==Client-Side== |
Revision as of 00:09, 15 October 2009
Server-side
onVehicleCreated or an equivalent... shouldn't be too hard? -Robhol (14:15 Jul 6, 08)
- If we did it, it'd be onElementCreated - what do you want this for? eAi 08:58, 7 July 2008 (CDT)
- onElementCreated is a good idea - it could be used for lots of things. Also, how about onVehicleDrown or whatever? that is, when a vehicle hits deep water. Checking for collisions and stuff is very awkward, and client-side only, and has to be checked constantly.. -Robhol (17:31 Jul 9 08)
I ask for a function that detects if a ped is on floor, eg. isPedOnFloor(ped thePed), thanks. --Shadd(In caso di emergenza rompere le scatole) 11:29, 15 June 2008 (CDT)
- isPedOnGround? Awwu 12:58, 15 June 2008 (CDT)
- I need to know if the player has its back touching the ground, not if it's simply "on ground". --Shadd(In caso di emergenza rompere le scatole) 14:16, 16 June 2008 (CDT)
- Check what task the player has, they should have TASK_COMPLEX_FALL_AND_GET_UP or TASK_COMPLEX_FALL_AND_STAY_DOWN... eAi 19:12, 16 June 2008 (CDT)
- Thanks. What task does player have after being hitten by a melee attack that cause it to fall down? Would "TASK_SIMPLE_BE_KICKED_ON_GROUND" and "TASK_SIMPLE_GET_UP" work? --Shadd(In caso di emergenza rompere le scatole) 09:35, 17 June 2008 (CDT)
- Try it, I'm not entirely sure. You should be able to produce some code to show the player's current tasks very easily... eAi 19:20, 17 June 2008 (CDT)
- My goal is to edit the standard damage of the attacks, in this case i have to know when player is on ground to cause higher damage. However it doesn't seem to work, when i hit the player it simply gets up without animation with no damage. --Shadd(In caso di emergenza rompere le scatole) 19:10, 19 June 2008 (CDT)
- Try it, I'm not entirely sure. You should be able to produce some code to show the player's current tasks very easily... eAi 19:20, 17 June 2008 (CDT)
- Thanks. What task does player have after being hitten by a melee attack that cause it to fall down? Would "TASK_SIMPLE_BE_KICKED_ON_GROUND" and "TASK_SIMPLE_GET_UP" work? --Shadd(In caso di emergenza rompere le scatole) 09:35, 17 June 2008 (CDT)
- Check what task the player has, they should have TASK_COMPLEX_FALL_AND_GET_UP or TASK_COMPLEX_FALL_AND_STAY_DOWN... eAi 19:12, 16 June 2008 (CDT)
- I need to know if the player has its back touching the ground, not if it's simply "on ground". --Shadd(In caso di emergenza rompere le scatole) 14:16, 16 June 2008 (CDT)
It may looks strange and useless (waste of time?) but I think that it could be a awesome feature. Having a web browser.
Like: http://www.youtube.com/watch?v=wT1UR6qEgdg
http://princeofcode.com/awesomium.php
There could be something like createBrowser( float x, float y, float z, [float rx, float ry, float rz, float width, float high, string url, bool locked] ) locked parameter: false = navigation bar present, true = no navigation bar toggleBrowserFullsceenMode(browser theBrowser, bool tog, [bool smooth]) smooth parameter: If set to true the browser will smoothly move from his ingame position to the fullscreen position toggleBrowserBackground(browser theBrowser, bool tog) Set the browser background transparent.
Security: Disable file downloads, disable popups (disable flash, javascript and any other protocols than http and https [no mailto and stuff...]?)
Should be a Client and server function.
Client-Side
Would it be possible to add a color arg to guiGridListSetItemText()? Im trying to get each item colored differently in one list. Thanks, ABEL
I need a function which could get current target of hydra or a HS rocket launcher, like when someone press space and targets a element, to get what element is it for calculating distance from it. getPlayerOccupiedVehicleTarget or getPlayerHSTarget. Thanks in advance -Nidza a.k.a. CodeMaster 2:26 PM 19th June 2008.
It'd be useful to have something to disable elements of the default hud (weapon display, health display, armor, radar, etcetera) so that you can create your own HUDs. Something like setHudElement(element name, toggle).
Lord Xalphox 19:32, 22 March 2009 (CET)
- showPlayerHudComponent? Awwu 19:43, 22 March 2009 (CET)
I'd like to have a function that sets the chatbox input line text. Then I could script my own chat history function (that inserts the last sent text into the input line again by pressing arrow up) (which samp has since 0.2 btw) since nobody builds it into the client. NeonBlack 12:03, 4 July 2009 (CEST) PS.: samp also supports cut, copy and paste :P