Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - gta5

#1
wiki.adtec.ovh

503 - Service Not Available
#2
Hi guys, today I'll share a simple snippet that will let you listen to a live real police radio feed.

First Create the radio stream:

onScriptLoad()

CreateRadioStream(11, "Fresno Police", "https://broadcastify.cdnstream1.com/13549", true);

Second, add some code to onPlayerEnterVehicle

if (GetVehicleNameFromModel(vehicle.Model) == "Police" || GetVehicleNameFromModel(vehicle.Model) == "Enforcer" || GetVehicleNameFromModel(vehicle.Model) == "FBI Rancher"
            || GetVehicleNameFromModel(vehicle.Model) == "Rhino" || GetVehicleNameFromModel(vehicle.Model) == "Hunter" || GetVehicleNameFromModel(vehicle.Model) == "Vice Squad Cheetah"
            || GetVehicleNameFromModel(vehicle.Model) == "Ambulance" || GetVehicleNameFromModel(vehicle.Model) == "Firetruck") {
        vehicle.Radio = 11;

    }

Easy!


Result below, nowadays the stream is a bit louder and easier to hear.

https://www.youtube.com/watch?v=npHWQ5QhrU8
#3
Snippet Showroom / Top Spree
Jan 24, 2021, 09:09 PM
I made a top spree command. Hopefully it helps someone.

else if ( cmd == "topspree" || cmd == "maxspree" )
    {
        //Replace "DataBase", "Accounts", "MaxSpree" as needed
        local q = QuerySQL( DataBase, "SELECT * FROM Accounts ORDER BY MaxSpree DESC LIMIT 5");
        Message("[#07ff08] Players with top Spree" );
        for (local i = 0; i < 5; i++)
        {

            local Name = GetSQLColumnData( q, 0 ); //replace 0 if needed
            local K = GetSQLColumnData( q, 4 ); //replace 4 if needed
            local D = GetSQLColumnData( q, 5 ); //replace 5 if needed
            local S = GetSQLColumnData( q, 21 ); //replace 21 if needed
            local R = format( "%.2f", K.tofloat() / D.tofloat() );

            GetSQLNextRow( q );

            if ( i == 0 ) NewTimer( "Message", 1000, 1, "[#6897BB]" + Name + " with " + S + " Spree - Ratio: " +R );
            if ( i == 1 ) NewTimer( "Message", 2000, 1, "[#6897BB]" + Name + " with " + S + " Spree - Ratio: " +R );
    if ( i == 2 ) NewTimer( "Message", 3000, 1, "[#6897BB]" + Name + " with " + S + " Spree - Ratio: " +R );
    if ( i == 3 ) NewTimer( "Message", 4000, 1, "[#6897BB]" + Name + " with " + S + " Spree - Ratio: " +R );
    if ( i == 4 ) NewTimer( "Message", 5000, 1, "[#6897BB]" + Name + " with " + S + " Spree - Ratio: " +R );

        }
    }
#4
Servers / Pure DM
Jan 02, 2021, 03:14 AM

IP: 216.170.125.173:8192 - Hosted in Los Angeles, CA for now

Server Forum
Online Stats

Commands
------------

/ping
/fps
/wep
/myip
/flip
/car
/buycar
/sellcar
/mycars
/getcar
/heal
/armor
/stats
/deposit
/bank
/withdraw
/report
/goto
/nogoto
/gotoloc
/spec
/leave
/spawnloc
/randspawn
/spawnwep
/spawnwepoff
/spawnwepon
/fix

More coming soon as well as bug fixes. The server is in very early stages still.

Change Log (Estimated Dates)
----------------------------------

 12/12 Server created, installed base script found on vcmp forums
 12/13 Bug Fixes - Fixed stats not recording kills / deaths
 12/14 Fixed Cash increase onPlayerkill
 12/15 Added New Skins, fixed bug with chat messages not appearing, added goto cmd
 12/16 Added Vehicle Lamborghini Gallardo
 12/17 Added Radio channels, /wep command
 12/18 Added real police feed to radio and cop cars
 12/19 Added nogoto, spawnweps
 12/22 Spree system finished
 12/23 Added Cash Pickup System
 12/27 PM font color changed, buycar bug fixed, admin levels added
 12/29 Modified cash pickup system, created health pickup on player death, added gotolocs
 12/30 Created Server Forum
 12/31 Added Online Stats, installed SSL certificate for online stats page using a wildcard DNS service to get a domain for the ip address, https://216.170.125.173.xip.io/panel2/
 01/01 Added more items to online stats

To Do
--------

gotoloc
lms
spree
sharecar
convert important things from the old pure dm written in mIRC to squirrel
saveloc

Old 0.3zR2 Pure DM

https://www.youtube.com/watch?v=z2MF4Cq789Q

https://www.youtube.com/watch?v=hK1w0aiWEzU