SA-MP Forums Archive
Look at that what is worng. - 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: Look at that what is worng. (/showthread.php?tid=349587)



Look at that what is worng. - Gangster-rocks - 09.06.2012

when i do /open the gate open like this :

This is how i made it
pawn Код:
new gate1; //i've add on top
gate1 = CreateObject(980, 1811.45, -1890.62, 14.81,   0.00, 0.00, 273.33);//i've add this OnGameModeInit()
and this on cmds section    if (strcmp("/open", cmdtext, true, 10) == 0)
    {    MoveObject(gate1,1811.45, -1890.62, 14.81,   0.00, 0.00, 273.330,0);
       // player dead
       return 1;
    }
what is wrong guys


Re: Look at that what is worng. - Riddick94 - 09.06.2012

pawn Код:
new gate1;
gate1 = CreateObject(980, 1811.45, -1890.62, 14.81, 0.00, 0.00, 273.33);
if(strcmp("/open", cmdtext, true, 10) == 0)
{
    MoveObject(gate1, 1811.45, -1890.62, 14.81,   0.00, 0.00, 273.330, 4.0);
    return true;
}



Re: Look at that what is worng. - MadeMan - 09.06.2012

pawn Код:
if (strcmp("/open", cmdtext, true) == 0)
    {
        MoveObject(gate1, 1811.45, -1890.62, 4.81, 2.0);
        return 1;
    }



Re: Look at that what is worng. - Gangster-rocks - 09.06.2012

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
pawn Код:
new gate1;
gate1 = CreateObject(980, 1811.45, -1890.62, 14.81, 0.00, 0.00, 273.33);
if(strcmp("/open", cmdtext, true, 10) == 0)
{
    MoveObject(gate1, 1811.45, -1890.62, 14.81,   0.00, 0.00, 273.330, 4.0);
    return true;
}
Thats didn't work.