• Welcome to Vice City Multiplayer.
 

Rcon DLL Documentation

Started by olvin122, December 25, 2009, 06:17:52 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

olvin122

Hello, I see VC:MP R2 has been released. Thanks to the developers for this.

Do we have any documentation for any new scripting callbacks that are in the new rcon irc dll released today.

VRocker

#1
There are no 'Callbacks' as such. The dll is exactly the same as the one used in GUS and SanSan. The only changes are to the internal netcode to make it communicate.

The big changes however are in the server, which parses the commands sent by the rcon. I have made a quick list of them for people to parse until i get my dll completed. I will be creating one of my multi dlls when i get time. I currently have an experimental one which connects and performs the basic functions like say etc.

Heres the list anyway:

Packets to send to the server: (Figure out the params and post if you like)

do
gettimerate
settimerate
getspectators
getweather
getmin
gethr
setweather
setmin
sethr
adminmsg
adminchat
set
spickupplayer
spawnpickup
deletepickup
newpickup
commands
help
cmdlist
getloc
getplayercar
getmoney
getarmour
gethp
maxplayers
password
unban
perfecthandling
disabledriveby
gravity
gamespeed
framelimiter
setspikes
setwepdamage
jumpswitch
fastswitch
syncframelimiter
taxiboostjump
flyingcars
driveonwater
setwaterlevel
setscore
score
ping
banip
ban
kick
players
playerlist
playercount
player


Packets the server sends to the rcon:

[join] ID Nick IP Port
[part] %u %s %u
[gettimerate] %u
[getweather] %u
[getmin] %u
[gethr] %u
[adminmsg] %s
[adminchat] %s
[set] %s
[spickupplayer] %s
[spawnpickup] %s
[deletepickup] %s
[newpickup] %u %s
[getloc] %u %f %f %f
[getplayercar] %u 255
[getplayercar] %u %u %u
[getplayercar] %u %u %u %u %u %.0f
[getmoney] %u %u
[getarmour] %u %u
[gethp] %u %u
[password] Password set to: %s
[perfecthandling] %u
[disabledriveby] %u
[gravity] %d
[gamespeed] %d
[framelimiter] %u
[setspikes] %u %u
[setwepdamage] %u %u
[jumpswitch] %u
[fastswitch] %u
[syncframelimiter] %u
[taxiboostjump] %u
[flyingcars] %u
[driveonwater] %u
[waterlevel] %.4f
[setscore] %u %d
[score] %u %d
[ping] %u %d
[playercount] %d %u
[player] %u %s %s %d %u %u %f %f %f %u %u %.0f %u %d %d %u %u %u %u %u %.1f
[death] %s(%u) died %u
[teamkill] %s(%u) team-killed %s(%u) %u %u %.1f
[kill] %s(%u) killed %s(%u) %u %u %.1f
[chat] %s: %s
[me] %s %s
[msg] %s: %s
[spawn] %s %u %u
[enter] %s %u %u %u
[exit] %s
[tc] %u %s: %s
[command] %u %s
[pickup] %u %u %u


If your unfamiliar with the %u etc. %u is a whole number over 0. %s is a string. %f is a float (and any %.4f just means its a floatingpoint to 4 decimal places)

Would be great if someone could document the actual values. I would but Christmas day has just ended and i've had a bit too much to drink... lol


Falcon

kick <id> (explains itself)
ban <id> (explains itself)
banip <ip> (explains itself)
unban <ip> (explains itself)
password <newpassword> (sets password)
maxplayers <newmaxplayers> (sets max player limit)
gethp <id> (outputs players health to [gethp] <id> <health>)
getarmour <id> (outputs players armour to [getarmour] <id> <armour>)
getmoney <id> (outputs players money to [getmoney] <id> <money>)
getloc <id> (outputs players health to [getloc] <id> <pos.x> <pos.y> <pos.z>)
gethr (outputs current hr to [gethr] <currenthour>)
getmin (outputs current minute to [getmin] <currentminute>)
getweather (outputs current weather to [getweather] <currentweathervalve>)
getspectators (outputs current amount of people in spectator mode to [getspectators] <amount>)
adminchat <text> (Display text in server)
adminmsg <id> <text> (Sends text to id only)
sethr <newhour> (explains itself)
setmin <newminute> (explains itself)
setweather <valve> (Changes weather to new valve)
settimerate <rate> (changes rate time counts)
set 1 <id> <pos.x> <pos.y> <pos.z> <interourid> (sets players position and interour)
set 2 <carid> <health> (sets vehicle health)
set 3 <carid> <status> (sets car door status etc 4 = locked)
set 4 <id> <money> (sets players money)
set 5 <id> <weaponid> (sets players weapons .. note 0 will remove all weapons)
set 6 <id> <state> (sets players control state)
set 7 <id> (removes marker from player)
set 8 <carid> <pos.x> <pos.y> <pos.z> (sets car location)
set 9 <id> <carid> (put player into car)
set 10 <id> <health> (sets player health)
set 11 <id> <colour> (show player marker and change colour)
set 12 <id> <armour> (set players armour)
set 13 <playerid> <text> (display text centre .. note this uses std gxt)
set 14 <playerid> (set text bottom for player)
set 15 <playerid> <level>  (set wanted level)
set 16 <marker> <pos.x> <pos.y> <pos.z> (Create Icon Marker With Sphere)
set 17 <marker> <pos.x> <pos.y> <pos.z> (Create IconMarker WithOut Sphere)
set 18 <carid> (kils car engine)
set 19 <carid> <bool> (inflate/deflate tyres)
set 20 <card> (set car to respawn)
set 21 <playerid> <visuals> <handling> (boozer setting)
set 22 <playerid> <bool> (disable/enable driveby Ability)
set 23 <playerid> <bool> (toggle widescreen)
set 24 <playerid> <bool> (toggle green scanlines)
set 25 <playerid> <bool> (toggle white scanlines)
set 26 <carid> <rotation> (set vehicle rotation float)
set 27 <playerid> <bool> (reset game settings)
set 28 <playerid> <skin> (set players skin)
set 29 <bool> (enable/disable stuntbike mod)
set 30 <bool> <enable/diable shoot in air mod)
newpickup <type> <pos.x> <pos.x> <pos.y> (creates pickup at position and outputs too [newpickup] <pickupid> <type> <pos.x> <pos.y> <pos.z>)
deletepickup <pickupid> (explains itself)
spawnpickup <pickupid> (respawns pickup)
spickupplayer <playerid> <pickupid> (spawns pickup for player only)
do <playerid> <anim> (set players animation)
perfecthandling <bool> (enable/disable Perfect Handling cheat)
disabledriveby <playerid> <bool> (disable/enable driveby Ability)
gravity <byte> (set global gravity)
gamespeed <byte> (set global gamespeed)
framelimiter <bool> (set global framelimter)
setspikes <playerid> <bool> (enable/disable spikes)
setwepdamage <wepid> <damage> (set weapon damage)
jumpswitch <bool> (enable/disable jump switch glitch)
fastswitch <bool> (enable/disable fastswitch glitch)
syncframelimiter <bool> (enable/disable framelinter sync)
taxiboostjump <bool> (enable/disable taxiboost cheat)
flyingcars <bool> (enable/diable taxiboost cheat)
driveonwater <bool> (enable/disable drive on water cheat)
setwaterlevel <level> (set global water level)
getweather returns(([getweather] byte)
players returns (this info in order - id,playername,ip,port,playerhealth,playerarmour,coord-x,coord-y,coord-y,carid,currentweapon,currentcarhp,players,currentmoney)
ping <player> returns([ping] playerid ping)
getplayercar returns ([getplayercar] playerid vehicleid State VehicleModel CarHealth)

Kill3R


Regards,
Kill3R

thijn



Javi


[AoD]NC

setspikes <playerid> <bool> (enable/disable spikes)
Whats this?

olvin122

IMPORTANT ONES:

get/set vehicle rotation angle ?
stunting would have been a good scrpt idea....


set team status by script ?
for lms when friendly-fire is switched off.


i'll list more, i have just woke up to see this disappointing list

StriKe

Quote from: [AoD]NC on December 26, 2009, 11:13:09 AM
setspikes <playerid> <bool> (enable/disable spikes)
Whats this?

Spikes which can used to Deflate tyres of a vehicle.
You would seen it in singeplayer where cops uses it.

[AoD]NC

#9
Am k, thought this is it, but why enable/disable it for a player? Its working like a wep but with unlimited ammo?

Ok i get it. /spike

olvin122

set 26 <carid> <rotation> (set vehicle rotation float)


my bad, this should set the rotation, how  do we get the current rotation angle ?

olvin122

set 28 <playerid> <skin> (set players skin)

can we get a players skinname as well as set it ?

also, is the parameter "<skin>" the SkinName or SkinID? (if its SkinName, how do we know the names, any documentation ?)

StriKe


olvin122

#13
nice rapid response StriKe, thanks.


is there, or whats the rcon command to output the current SkinName and/or SkinID of a player ?

the same question applys to the vehicle rotation angle,

whats the rcon command to output a vehicles current rotation angle?

eg: GetVehicleRotation
and SetVehicleRotation

thanks for your help, i appreciate it.


EDIT:

does the rcon command "getplayercar " work for passenger ?
eg: IsPlayerPassenger


[AoD]NC

I have tested some of these new things ^
Quoteset 29 <bool> (enable/disable stuntbike mod)
set 30 <bool> <enable/diable shoot in air mod)
Wont work without player id ::).

And here a bug. After disabling drive by, i havent got uzi, but i could shoot. :looked funny: