02.01.2012, 22:03
[FILTERSCRIPTS] Open Gates Help needed
02.01.2012, 22:09
Would have byen easier to help you if you could show us your code.
02.01.2012, 22:24
I will use another Format of the Code, one more esyier...
If don't work, i show the code...
If don't work, i show the code...
02.01.2012, 22:25
Add #include <a_samp> at the top of your script.
03.01.2012, 09:10
Uhh..
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:
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.
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;
}
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;}
(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.
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)