[FILTERSCRIPTS] Open Gates Help needed
#1

Hy Guys, i'm trying to make Open Gates for one Mafia's House, and i'm have somme errors...

IMAGE:




Can anyone Help me pls...
Reply
#2

Would have byen easier to help you if you could show us your code.
Reply
#3

I will use another Format of the Code, one more esyier...

If don't work, i show the code...
Reply
#4

Add #include <a_samp> at the top of your script.
Reply
#5

Uhh..

pawn Код:
#include <a_samp>
#include <a_objects>
#pragma tabsize 0
new gate1;
public OnGameModeInit()
{
// You need to add a player class =3 to spawn.
AddPlayerClass(265,2294.7244,-1753.9542,13.1665,90.2329,0,0,0,0,-1,-1);
gate1= CreateObject(980, 659.7,-1227,17.79,0,0,60);
return 1;
}
Your getting errors past line 9 but i cant help you, since i cant see the full code. This is very simple stuff.

Should be somthing like this though:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/movegatedown10units", cmdtext, true, 10) == 0)
    {
        MoveObject(gate1, 0, 0, -10, 2.00); // Move's our "gate1" down 10 units at speed 2.
        return 1;
    }
    return 0;}
It works like this:
(objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0)
objectid The objectid you want to move.
Float:X The new X coordinate.
Float:Y The new Y coordinate.
Float:Z The new Z coordinate.
Float:Speed The speed at which to move the object (In units per second).
Float:RotX The new X rotation (optional).
Float:RotY The new Y rotation (optional).
Float:RotZ The new Z rotation (optional).

Rep Please.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)