01.11.2017, 12:51
Quote:
Very nice stuff, @CXdur.
I'll be working on updating the tutorial for much better readability and add some useful snippets into it too. |
https://pastebin.com/p7n6uH2H
It should be pretty simple to use, just put it in a folder and create a .txt file called "resources.txt", you can see a sample below. You will need to compile the file and launch it (javac filename & java filename, might need to use the filepaths to javac.exe/java.exe if you don't have the environment variables set up). Alternatively, you can install the Code Runner extension for VScode which is far more simple.
Example resources.txt
Code:
ApplyEventVehicleSettings(playerid, vehicle) ApplyEventVehicleEnter(playerid, vehicle) SendHostMessageToEventMembers(event, text[]) AddGroupDrugDepot(const groupId, const dbId, Float:x, Float:y, Float:z, interior, world, drugAmount = 7500, playerLimit = 150, rank = 1, drugbag = false) IsNearbyGroupWeaponRack(const playerid, const wepRack)
Code:
"ApplyEventVehicleSettings": { "prefix": "ApplyEventVehicleSettings", "body": "ApplyEventVehicleSettings(${1:playerid}, ${2: vehicle})$0" }, "ApplyEventVehicleEnter": { "prefix": "ApplyEventVehicleEnter", "body": "ApplyEventVehicleEnter(${1:playerid}, ${2: vehicle})$0" }, "SendHostMessageToEventMembers": { "prefix": "SendHostMessageToEventMembers", "body": "SendHostMessageToEventMembers(${1:event}, ${2: text[]})$0" }, "AddGroupDrugDepot": { "prefix": "AddGroupDrugDepot", "body": "AddGroupDrugDepot(${1:const groupId}, ${2: const dbId}, ${3: Float:x}, ${4: Float:y}, ${5: Float:z}, ${6: interior}, ${7: world}, ${8: drugAmount = 7500}, ${9: playerLimit = 150}, ${10: rank = 1}, ${11: drugbag = false})$0" }, "IsNearbyGroupWeaponRack": { "prefix": "IsNearbyGroupWeaponRack", "body": "IsNearbyGroupWeaponRack(${1:const playerid}, ${2: const wepRack})$0" },