Help with move object - 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: Help with move object (
/showthread.php?tid=331552)
Help with move object -
Yordan_Kronos - 05.04.2012
Hello everybode, i have one problem with move object.Please someone to create me one move object i wil give cordinates and will give +rep

i want automatic gates when if you want to enter you need to pay 300$ this is cordinates and please give me in pastebin.
Код:
CreateObject(968,2283.31884766,-2306.16162109,12.54132462,0.00000000,0.00000000,45.65478516); //normal
CreateObject(968,2284.83837891,-2304.86083984,13.54132462,0.00000000,87.34002686,43.66979980); //Down
Sorry for my fucking english
Re: Help with move object -
TzAkS. - 05.04.2012
Код:
new obj;
obj = CreateObject(968,2283.3188,-2306.1616,12.5413,0.0000,0.0000,45.6547); //normal
MoveObject(obj,2284.8383,-2304.8608,13.5413, 2.0); //Down
Re: Help with move object -
Faisal_khan - 05.04.2012
Here try this it is untested.
pawn Код:
public OnGameModeInit()
{
CreateObject(968,2283.31884766,-2306.16162109,12.54132462,0.00000000,0.00000000,45.65478516); //normal
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/opengate", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) < 300) return SendClientMessage(playerid,COLOR_BRIGHTRED,"No Money Dude");
{
else
{
new string[50];
new movetime = MoveObject(obj, 2284.8383,-2304.8608,13.5413, 2.0);
format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime);
SendClientMessage(playerid, 0xFF000000, string);
}
}
return 1;
}
return 0;
}