SAMP Objects Not Moving - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SAMP Objects Not Moving (
/showthread.php?tid=267280)
SAMP Objects Not Moving -
HayZatic - 07.07.2011
This is the script.
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/gate", cmdtext, true) == 0)
{
if(hqgate1 == 1)
{
MoveObject(hqgate1, 1626.8512,-1856.5885,25.6468,158);
SendClientMessage(playerid, 0x9ACD32A, "|-Gate Open-|");
hqgate1 = 0;
}
else if(hqgate1 == 0)
{
MoveObject(hqgate1, 1622.0712,-1862.1893,13.5519,358);
SendClientMessage(playerid, 0xAA3333FF, "|-Gate Closed-|");
hqgate1 = 1;
}
return 1;
}
return 0;
}
Re: SAMP Objects Not Moving -
Hipflop - 07.07.2011
Put this above your script
Re: SAMP Objects Not Moving -
HayZatic - 07.07.2011
Quote:
Originally Posted by Hipflop
Put this above your script
|
Yes, its there
Re: SAMP Objects Not Moving -
Antonio144 - 07.07.2011
pawn Код:
//put this on top of the script
new hqgate11 = 0;
// than
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/gate", cmdtext, true) == 0)
{
if(hqgate11 == 1)
{
MoveObject(hqgate1, 1626.8512,-1856.5885,25.6468,158);
SendClientMessage(playerid, 0x9ACD32A, "|-Gate Open-|");
hqgate11 = 0;
}
else if(hqgate11 == 0)
{
MoveObject(hqgate1, 1622.0712,-1862.1893,13.5519,358);
SendClientMessage(playerid, 0xAA3333FF, "|-Gate Closed-|");
hqgate11 = 1;
}
return 1;
}
return 0;
}