SA-MP Forums Archive
[FilterScript] Ultimate Ingame Editor - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Ultimate Ingame Editor (/showthread.php?tid=184733)

Pages: 1 2


Ultimate Ingame Editor - Kwarde - 21.10.2010

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


Re: Ultimate Ingame Editor - royal_king - 21.10.2010

Nice any pics?


Re: Ultimate Ingame Editor - Kwarde - 21.10.2010

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)


Re: Ultimate Ingame Editor - HyperZ - 22.10.2010

Nice work


Re: Ultimate Ingame Editor - Kwarde - 22.10.2010

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


Re: Ultimate Ingame Editor - Kwarde - 03.11.2010

* 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


Re: Ultimate Ingame Editor - kiss - 03.11.2010

nice, thanx!


Re: Ultimate Ingame Editor - Kwarde - 04.11.2010

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


Re: Ultimate Ingame Editor - ricardo178 - 29.01.2011

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!


Re: Ultimate Ingame Editor - Steven Paul - 29.01.2011

awesome!!!!!!!!!!!!


Re: Ultimate Ingame Editor - Lorenc_ - 29.01.2011

Really useful. Good job, i might use it.


Re: Ultimate Ingame Editor - Aleluja - 29.01.2011

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


Re: Ultimate Ingame Editor - MuLtiVaN - 29.01.2011

very nice and useful!


Re: Ultimate Ingame Editor - Kwarde - 29.01.2011

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


Re: Ultimate Ingame Editor - Dr.Ghost - 06.02.2011

nice.... man good job


Re: Ultimate Ingame Editor - Gforcez - 10.02.2011

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

- Gforcez


Re: Ultimate Ingame Editor - Kwarde - 10.02.2011

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


Re: Ultimate Ingame Editor - marinov - 10.02.2011

Its good


Re: Ultimate Ingame Editor - Kwarde - 19.02.2011

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


Re: Ultimate Ingame Editor - wheelman_WM - 20.02.2011

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