SA-MP Forums Archive
Suggestions / Bug Fixes - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Suggestions / Bug Fixes (/showthread.php?tid=559607)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13


Re: Suggestions / Bug Fixes - QuaTTrO - 06.02.2015

UsePlayerPedAnims per one player.


Re: Create2DTextLabelForPlayer - beckzy - 06.02.2015

I didn't want to start a new thread so I thought I'd post it here. The testLOS parameter in Create3DTextLabel should be renamed to LOS because it works.


Re: Create2DTextLabelForPlayer - JaydenJason - 06.02.2015

Quote:
Originally Posted by Raidensama
View Post
agree with autor, this will be very useful
Create2DTextLabelForPlayer(playerid,colour,text[],screen_x,screen_y,alignment);

as somebody said above, it will create a fixed textbox, the same as chat or killlist
AKA a textdraw


Re: Create2DTextLabelForPlayer - Meta - 06.02.2015

Quote:
Originally Posted by BeckzyBoi
Посмотреть сообщение
I didn't want to start a new thread so I thought I'd post it here. The testLOS parameter in Create3DTextLabel should be renamed to LOS because it works.
It's called "testLOS" because it tests the LOS (line of sight).


Re: Create2DTextLabelForPlayer - Tamer - 07.02.2015

Quote:
Originally Posted by Meta
View Post
It is a textdraw.
It's just that its position on the screen in calculated by using the camera vector and your position, also camera mode (the one you change with the 'v' key).

Just move around the camera and have the text touch the borders of the screen, it will behave just like a textdraw because it is a textdraw.
This can be done with ScreenToWorld() WorldToScreen() https://sampforum.blast.hk/showthread.php?tid=480286


Re: Create2DTextLabelForPlayer - Raidensama - 07.02.2015

Quote:
Originally Posted by JaydenJason
View Post
AKA a textdraw
a textlabel



Re: Suggestions / Bug Fixes - OstGot - 07.02.2015

* Add the ability to select a font for the 3D-text label
* Get/SetPlayerGameSpeed
* GetPlayerAnimationSpeed


Re: Suggestions / Bug Fixes - Midzi - 11.02.2015

Code:
SetDestructibleVehicles(bool:enable);
SetDestructibleVehicle(vehicleid, bool:enable);
IsVehicleDestructible(vehicleid);

SetBirdsEnabled(bool:enable);
SetBirdsEnabledForPlayer(playerid, bool:enable);

SetCloudsEnabled(bool:enable);
SetCloudsEnabledForPlayer(playerid, bool:enable);

OnPlayerShootBird(playerid) // can be used for some games like: "Kill x birds" :D

-----------------------

SetPlayerRaceCheckpoint(playerid, type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size);

new type: 5 - corona

-----------------------

CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay, plate[] = "XYZA123"); // Default plate for new vehicles ofc.

Add plate[] parameter.



AW: Re: Suggestions / Bug Fixes - Kaliber - 03.03.2015

----


Re: Suggestions / Bug Fixes - Locky_ - 03.03.2015

Quote:
Originally Posted by Kar
Посмотреть сообщение
State your graphics/video card and other PC information so they can help you solve this.

Please hear me out.

Make pressing F4 prompt an optional Callback like what you did for OnPlayerClickMap, to allow us to control class selection.

It's sorta annoying if we don't want players reclassing.
The problem occurred after I leave the active directmode. After deleting the line of sa-mp.cfg not occur in the problem.


Sorry if it is not in English .. I hope it to understand


Re: Suggestions / Bug Fixes - bogdyutzu - 03.03.2015

Audio Plugin offers a lot of sound controls. Would be extremely useful to be included by default in SA-MP.

https://sampforum.blast.hk/showthread.php?tid=82162


Re: AW: Re: Suggestions / Bug Fixes - Dragony92 - 03.03.2015

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Well, you can easily script these functions, e.g.:

PHP код:
#define default_stream (300.0 + 1.0)
stock GetPlayerTopObjectID(playerid) {
    new 
token;
    for(new 
i,Float:p[3]; i<MAX_OBJECTSi++) {
        if(!
GetObjectPos(i,p[0],p[1],p[2])) continue;
        if(
GetPlayerDistanceFromPoint(playerid,p[0],p[1],p[2]) < default_streamtoken i;
    }
    return 
token;
}
stock GetPlayerObjectPoolSize(playerid) {
    new 
count;
    for(new 
i,Float:p[3]; i<MAX_OBJECTSi++) {
        if(!
GetObjectPos(i,p[0],p[1],p[2])) continue;
        if(
GetPlayerDistanceFromPoint(playerid,p[0],p[1],p[2]) < default_streamcount++;
    }
    return 
count;

Have Fun with it
Static objects are using slots even if you are not in stream range, so your functions are not accurate.


AW: Re: AW: Re: Suggestions / Bug Fixes - Kaliber - 03.03.2015

Quote:
Originally Posted by Dragony92
Посмотреть сообщение
Static objects are using slots even if you are not in stream range, so your functions are not accurate.
You dont say

But why you think, he has given an playerid Parameter?

Maybe because he only wanted the Objects which are streamed for the player...

But you can also script a global Object Pool function easily:

PHP код:
stock GetObjectPoolSize() 

    for(new 
i=MAX_OBJECTSi!=0i--) if(IsValidObject(i)) return i;
    return 
0

Greekz

//Edit: Yes..right i had a thought mistake


Re: Suggestions / Bug Fixes - OKStyle - 03.03.2015

Turn back skateboard like weapon (change some files) and effect from teargas - it's not a "custom" features.


Re: Suggestions / Bug Fixes - Manyula - 03.03.2015

Quote:
Originally Posted by kvann
Посмотреть сообщение
When you are using a medium/big resolution and have a long list in dialog, you have a scrollbar when it's not needed and you have to use it, otherwise the last items can't be clicked on.


This still occurs in RC2.


Re: Suggestions / Bug Fixes - Kar - 03.03.2015

You guys are doing it wrong...

pawn Код:
GetObjectPoolSize()  
{  
    for(new i = MAX_OBJECTS; i != 0; --i) {
        if(IsValidObject(i)) {
            return i;
        }
    }
    return 0;  
}
It returns the HIGHEST playerID not the amount of elements in the pool!

BUG: Error, this is the first time this has happened to me, I disabled a player race checkpoint and the map icon got removed but the checkpoint was kinda still there? http://puu.sh/gkCNx/f912e7b351.jpg


Re: Suggestions / Bug Fixes - T-N-Z - 03.03.2015

OnVehicleRespray(playerid, vehicleid, color1, color2, price); also make it work on regular Paint Spray, not only Mod Shops.
OnPlayerUseShop(playerid, itemid, price); Gets called when player uses Burger Shot, Ammunation, Vending Machines etc.
OnPlayerStuntJump(playerid, type, reward);

This would be usefull for those who use server side money includes like GetPlayerPCash.


Re: Suggestions / Bug Fixes - Patrik356b - 03.03.2015

Quote:
Originally Posted by T-N-Z
Посмотреть сообщение
OnVehicleRespray(playerid, vehicleid, color1, color2, price); also make it work on regular Paint Spray, not only Mod Shops.
OnPlayerUseShop(playerid, itemid, price); Gets called when player uses Burger Shot, Ammunation, Vending Machines etc.
OnPlayerStuntJump(playerid, type, reward);

This would be usefull for those who use server side money includes like GetPlayerPCash.
You forgot we got more than just "jumps" so the callback should have a name like OnPlayerStuntReward(playerid, type, reward);


Re: Suggestions / Bug Fixes - Jon_De - 20.03.2015

DisableRemoteCollisions like DisableRemoteVehicleCollisions but for players


Re: Suggestions / Bug Fixes - davve95 - 20.03.2015

Fix the San Andreas vehicle bugs:

http://gtaforums.com/topic/725635-wi...illa-vehicles/