Skip to content
View in the app

A better way to browse. Learn more.

GTAGames.nl - De Nederlandse Grand Theft Auto Community!

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Move hydra xD

Ik heb een hydra in het spel gezet met addstaticvehicle maar nu wil ik die laten bewegen precies of die dus zou vliegen. Met moveobject gaat dat niet, hoe dan wel ?

Tom :cya:

Featured Replies

Een voertuig is geen object

En je kan alleen een voertuig verplaatsen als iemand erin zit.

Hier een een script (LET OP: Gebruik dit als filterscript, niet als gamemode!)

#include <a_samp>

new object1;
new object2;

#define FILTERSCRIPT
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{

object1 = CreateObject(XXX,XXX.XXX,XXX.XXX,XXX.XXX,XXX.XXX,XXX.XXX,XXX.XXX); //Zet hier de coordinaten van object1
object2 = CreateObject(XXX,XXX.XXX,XXX.XXX,XXX.XXX,XXX.XXX,XXX.XXX,XXX.XXX); //Zet hier de coordinaten van object2

return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Niets belangrijks hier");
print("----------------------------------\n");
}

#endif

public OnPlayerCommandText(playerid, cmdtext[])
{

	//Dit is het commando oom het te verplaatsen naar XXX

if (strcmp("/test", cmdtext, true, 10) == 0 && IsPlayerAdmin(playerid) == 1)
{
MoveObject(ingang,-2146.851,-77.419,33.342,1); // Schrijf hier de coordinaten van het object waar het heen moet.

SendClientMessage(playerid, COLOR_GREEN, "Test12345"); //Zet hier de text die er zou moeten verschijnen als je dus /test typt.

return 1;
}

	//Dit is het commando om het weer terug te plaatsen

if (strcmp("/test2", cmdtext, true, 10) == 0 && IsPlayerAdmin(playerid) == 1)
{
MoveObject(ingang,-2135.421,-77.419,33.342,1); //Voer hier de coordinaten van het object in waar het dan heen moet.

SendClientMessage(playerid, COLOR_RED, "Test12345"); //Zet hier de text die er zou moeten verschijnen als je dus /test2 typt.

return 1;
}

return 0;
}

Edited by Danny_k

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.