Gate Issue - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gate Issue (
/showthread.php?tid=404383)
Gate Issue -
Squirrel - 02.01.2013
I've got a problem with my gates.. they arent moving at all...
Код:
if(!strcmp(cmdtext, "/hqopen",true))
{
MoveObject(ColiesGate, -197.42, 1203.58, 13.06,2.0);
SendClientMessage(playerid, COLOR_RED, "<!>Colies gate is now open!");
return 1;
}
if(!strcmp(cmdtext, "/hqclose",true))
{
MoveObject(ColiesGate, -197.42, 1203.58, 22.29,2.0);
SendClientMessage(playerid, COLOR_RED, "<!>Colies gate is now closed!");
return 1;
}
ColiesGate = CreateDynamicObject(971, -197.42, 1203.58, 22.29, 0.00, 0.00, 0.00);
Re : Gate Issue -
[HRD]Mar1 - 02.01.2013
pawn Код:
new ColiesGate;
public OnGameModeInit()
{
ColiesGate = CreateObject(971, -197.42, 1203.58, 22.29, 0.00, 0.00, 0.00);
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/hqopen"))
{
MoveObject(ColiesGate, -197.42, 1203.58, 13.06, 2.0);
return 1;
}
if(!strcmp(cmdtext, "/hqclose"))
{
MoveObject(ColiesGate, -197.42, 1203.58, 22.29, 2.0);
return 1;
}
return 0;
}
Re: Gate Issue -
aslan890 - 02.01.2013
Try to create dynamic objects that will be easy
Re: Gate Issue -
Squirrel - 02.01.2013
Hmm thanks.
Re: Gate Issue -
Threshold - 02.01.2013
Use MoveDynamicObject instead of MoveObject.