MoveObject
#1

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
Reply
#2

Please anyone help me =((
Reply
#3

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;
}
Reply
#4

Thank you sir thank you

+ rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)