Suggestions / Bug Fixes
#81

UsePlayerPedAnims per one player.
Reply
#82

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

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

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).
Reply
#85

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

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

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

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

----
Reply
#90

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

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

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

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

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

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

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

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

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);
Reply
#99

DisableRemoteCollisions like DisableRemoteVehicleCollisions but for players
Reply

Fix the San Andreas vehicle bugs:

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


Forum Jump:


Users browsing this thread: 12 Guest(s)