[FilterScript] Ultimate Ingame Editor
#1

Ultimate Ingame Editor
[23/06/2013] Project cancelled quite along ago; lost files too. If you somehow have the files, please send it to me! rpdsamp.nl is down aswell for a looong time

Hi everyone!
I've made an 'Ingame Editor'. It's not a editor actually, but it sounds better. With this script you can:
- Save positions into a file
- Add Pickups (saved in a file)
and more (more info below)
It can be very handy.

Examples
Example 1: Pickup Creator + Teleport Command Creator
Screens:
Screens lost
Screen 1: "/uiepickup 3" command: Create a info icon (it save's into a file) + "/uieteleport" (1st time): Give first pos of the teleport
Screen 2: "/uieteleport" (2nd time): Give the pos where to go
Screen 3: "/uieteleport" (3rd time): Confirm that you have what you want. Make the command
Screen 4: The output

With this, you could make something like this:
pawn Code:
#include <a_samp>

new infopickup;

public OnFilterScriptInit()
{
    infopickup = CreatePickup(1239, 19, 2514.086181, -1691.287597, 14.046038, 0);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/tele", true)){
        if(IsPlayerInRangeOfPoint(playerid, 2, 2514.027832, -1691.184082, 14.046038)){
            SetPlayerPos(playerid, 1544.528686, -1354.707885, 329.471923);
            SetPlayerFacingAngle(playerid, 345.574218);
        }
    }
    return 0;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == infopickup)
    {
        GameTextForPlayer(playerid, "~y~Use ~r~/tele~y~ to go to the tower", 4000, 3);
        return 1;
    }
    return 0;
}
More examples will come later

Information
Current version: v1.3
The commands are for RCON admins only

The commands
/uievec (params: MODEL ID & FILENAME)
/uiesavevec (params: FILENAME)
/uiesavepos (params: 0/1 & FILENAME)
/uiepickup (params: 01/2/3 & FILENAME)
/uieteleport (params: FILENAME)
/uierteleport (params: none)

Commands info
/uievec
-> Spawns a vehicle (you can spawn one vehicle at once!)
/uiesavevec
-> Save a vehicle when you're in it! (No need to give a vehicleid)
/uiesavepos
-> Save's a players position
-> PARAMS INFO:
->-> 0: Only save the X, Y, Z, A position
->-> 1: Save's a whole code (SetPlayerPos, SetPlayerFacingAngle)
/uiepickup
-> Add a pickup command into a file
-> PARAMS INFO:
->-> 0: Create a normal pickup code. You need to edit it yourself (PickupModel & PickupType)
->-> 1: Create a Armour Pickup
->-> 2: Create a Health Pickup
->-> 3: Create a Info Icon Pickup
/uieteleport
-> Make's a teleport command. Information:
->-> First time when you use it, you need to be at the place you need to be when you use the command
->-> Second time when you use the cmd, you need to be at the place where you want to be teleported
->-> Third time when you use it, it's just a confirmation to save the command
/uierteleport
-> Reset everything for /uieteleport - If you made a mistake
ALL THE SAVE COMMANDS: Choose your own filename

Download
Download the scriptfiles,pawno include and the filterscripts (pwn+amx) here: Download
URL down, lost files too

This file includes:
- changelog (changelog.txt) = CHANGELOG of this script
- UIE.pwn (filterscripts/UIE.pwn) = The PWN script
- UIE.amx (filterscripts/UIE.amx) = The AMX script (you need to run)
- dcmd.inc (pawno/include/dcmd.inc) = Include you need
- Scriptfiles (scriptfiles/UIE) = Here will all the positions saved etc)

Known bugs
None, please report them here

Upcoming Features
-> Every new positions a new file (You can give it a name by yourself) - ADDED (choose your own filename)
-> More advanced commands (more parameters etc) - CANCELED

Enjoy the script

Kind Regards,
Kevin aka Kwarde
Reply
#2

Nice any pics?
Reply
#3

Done.
I've added one example:
"/uiepickup 3" and "/uieteleport"
And the output of it (a whole example, how you could use it)
I hope you understand the screens :P (+ the description below the screens)
Reply
#4

Nice work
Reply
#5

Thank you.
By the way. I've fixed the warnings. I had 'new TeleportSave[MAX_SLOTS][2][4];' , but it had to be 'new Float:TeleportSave[MAX_SLOTS][2][4];' My bad.

p.s.
Here's the changelog on a webpage: http://rpdsamp.nl/get/gta/sa/mp/serv...ngelog/uie.txt
Reply
#6

* BUMP *
Any more reactions, please? (You don't need to do it of course, but it would be very kind of you )

+UPDATE:
You can now give a filename when you use an save command
Reply
#7

nice, thanx!
Reply
#8

No problem
Do you / Dous anyone have any idea's for new commands/features?
Reply
#9

I didn't see this but is only great! I only didn't understund when we create a vehicle where the vehicle(CreateVehicle) config are?

[EDIT]:
Found It is really usefull!
Reply
#10

awesome!!!!!!!!!!!!
Reply
#11

Really useful. Good job, i might use it.
Reply
#12

Nice FS. I think that i'm gonna use this..
Reply
#13

very nice and useful!
Reply
#14

Thanks everyone.
Has anyone got some suggestions for features in the future?
Reply
#15

nice.... man good job
Reply
#16

Nice Job Kwarde, Maybe you can create something to make 3D TextLabels IG

- Gforcez
Reply
#17

Thanks Gforcez, I think I'll do
Quote:
Originally Posted by Kwarde
Has anyone got some suggestions for features in the future?
And thanks for the suggestion :P
Reply
#18

Its good
Reply
#19

Thanks.
Tomorrow, I'll start adding the 3D texts. And I think I'm going to switch to dialogs
Reply
#20

Hey the commands work. I created a Pickup but i cant see them how can i use them . I Think that u can put some explanations so that more people can understand
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)