MoveObject - 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: MoveObject (
/showthread.php?tid=449407)
MoveObject -
alimash - 08.07.2013
Hi everyone i need some help
Before anything else please watch this :
https://sampwiki.blast.hk/wiki/MoveObject
I wrote this into a FS but my problem is this what i must to add for take back my object to the last place
Like when i typed /up the object goes up and when i typed /down the object come back to the first place
Thank you so much and please excuse me for my bad english thank you again
Re: MoveObject -
alimash - 08.07.2013
Please anyone help me =((
Re: MoveObject -
CAR - 08.07.2013
pawn Код:
new obj; // Somewhere at the top of your script
public OnGameModeInit()
{
obj = CreateObject(980, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/up", true) == 0)
{
new movetime = MoveObject(obj, 0, 0, 10, 2.00);
return 1;
}
if(strcmp(cmdtext, "/down", true) == 0)
{
new movetime = MoveObject(obj, 0, 0, 0, 2.00);
return 1;
}
return 0;
}
Re: MoveObject -
alimash - 08.07.2013
Thank you sir thank you
+ rep