News:

Server address: server.convoytrucking.net
Get SA-MP 0.3.7 here: Click Here to download SA-MP 0.3.7

Main Menu

H3lp

Started by TheFoxman, December 03, 2016, 11:47

TheFoxman

How to change my ig stats picture settings (tried to find it)





Martin

You need to be a VIP to be able to do that.
LAST SEEN
TOTAL TIME ON SERVER
SCORE
TRUCK LOADS
CONVOY SCORE
ACHIEVEMENTS
ARTIC
DUMPER
VAN
FUEL
CEMENT
ARRESTS
CARS STOLEN
COACH
PLANE
HELICOPTER
TOW TRUCK
LIMO
TRASH
ARMORED VAN
BURGLARIES
ARMORED VANS STOLEN
MISSIONS FAILED
OVERLOADED
FINES PAID
TOTAL SPENT ON FUEL
INTEREST EARNED
DISTANCE TRAVELLED
TIME IN JAIL
LAST MISSION

TheFoxman






Ethan

Quote from: Martin on December 03, 2016, 14:10
You need to be an [active] VIP to be able to do that.

fixed it

Deff

or you can try this:
http://cvt.is-great.net/signature/

Just made a quick script when I saw this thread.

Ethan

Quote from: Deff on December 04, 2016, 21:59
or you can try this:
http://cvt.is-great.net/signature/

Just made a quick script when I saw this thread.
wait, dont you have to have the VIP active to change your sig because of they way the signature is done?

Shock

Quote from: Ethan on December 05, 2016, 00:21
Quote from: Deff on December 04, 2016, 21:59
or you can try this:
http://cvt.is-great.net/signature/

Just made a quick script when I saw this thread.


wait, dont you have to have the VIP active to change your sig because of they way the signature is done?

Yes you do and there is already a script when u have active vip that lets u customize the individual signature things

Quote from: Dux on April 22, 2017, 06:22First of all!! You are not supposed as an admin to check chatlogs!!



Kake

Quote from: Deff on December 04, 2016, 21:59
or you can try this:
http://cvt.is-great.net/signature/

Just made a quick script when I saw this thread.
idk what she did but i can create a custom ct signature using her link without vip

u can see my signature below

Deff

yeah only VIPs can do it from cvt website, but this one is public, its done from django rest framework, all it needs is player stats like time online, score, etc, which are publically available already on django rest framework or the cvt website, it can get player info easily
If admins don't allow it, i will disable it, no problem.
and it might be buggy as it was a quick script, if someone wants me to improve let me know

Ethan

this is awesome, TY Viky/Deff

CarlJohnson

Quote from: Deff on December 05, 2016, 16:39
yeah only VIPs can do it from cvt website, but this one is public, its done from django rest framework, all it needs is player stats like time online, score, etc, which are publically available already on django rest framework or the cvt website, it can get player info easily
If admins don't allow it, i will disable it, no problem.
and it might be buggy as it was a quick script, if someone wants me to improve let me know
I see your are familiar with Django rest framework, interested in helping us with the website?
LAST SEEN
TOTAL TIME ON SERVER
SCORE
TRUCK LOADS
CONVOY SCORE
ACHIEVEMENTS
ARTIC
DUMPER
VAN
FUEL
CEMENT
ARRESTS
CARS STOLEN
COACH
PLANE
HELICOPTER
TOW TRUCK
LIMO
TRASH
ARMORED VAN

TheFoxman

Quote from: Deff on December 04, 2016, 21:59
or you can try this:
http://cvt.is-great.net/signature/

Just made a quick script when I saw this thread.

The script is good but i wanted to do a different things like removing  my achievements from my signature but ty anyway





Kake

Quote from: Deff on December 04, 2016, 21:59
or you can try this:
http://cvt.is-great.net/signature/

Just made a quick script when I saw this thread.

@viky I think the achievements data is bugged. It is showing that i have 6 achievemnts(I have only 4) and ethan is having 57/17 :D

Joshy

Quote from: Kakeshi on December 06, 2016, 15:25
Quote from: Deff on December 04, 2016, 21:59
or you can try this:
http://cvt.is-great.net/signature/

Just made a quick script when I saw this thread.

@viky I think the achievements data is bugged. It is showing that i have 6 achievemnts(I have only 4) and ethan is having 57/17 :D
@viky player.achievements is an integer field containing a bitwise representation of achievement states.

I know (1 << 0) is artic (1)
And that (1 << 1) is probably dumper (2)

You can check an achievements status by bitwise-ANDing the field against the achievement number, e.g. how to check if i have dumper achievement is:
var hasDumper = player.achievements & (1 << 1) == (1 << 1)
You can count the number of set bits (I.e. number of achievements) by either iterating through all bits and adding them up, or use an algorithm called popcount/Hamming weight. This is the iterative approach:

var achCount = 0;
for (var achIndex = 0; achIndex < 18 /*There are 17 achs*/; achIndex++) {
    if (player.achievements & (1 << achIndex) == (1 << achIndex)) {
        achCount++;
    }
}


Idk what the achievement numbers are but if all you're after is the count, the above code should do.
[comment]test[/comment]
LAST SEEN
TOTAL TIME ON SERVER
SCORE
TRUCK LOADS
CONVOY SCORE
ACHIEVEMENTS
ARTIC
DUMPER
VAN
FUEL
CEMENT
ARRESTS
CARS STOLEN
COACH
PLANE
HELICOPTER
TOW TRUCK
LIMO
TRASH
ARMORED VAN
BURGLARIES
ARMORED VANS STOLEN
MISSIONS FAILED
OVERLOADED
FINES PAID
TOTAL SPENT ON FUEL
INTEREST EARNED
DISTANCE TRAVELLED
TIME IN JAIL
LAST MISSION
Generated using Azure Functions & CloudFlare Workers using the Convoy Trucking API. Updates every around 5 minutes. See the original SVG image. View source code (not updated with function yet)




TheFoxman

If viky can make a signature that shows 17/17 will be great :3