[HELP] - 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: [HELP] (
/showthread.php?tid=262863)
[HELP] -
decastro96 - 19.06.2011
hey can you make a Movable gate with this?
"Close"
CreateObject(980,1077.69519043,-1205.89270020,19.94162560,0.00000000,0.00000000,0. 00000000);
//object(airportgate) (1)
"Open"
CreateObject(980,1075.85644531,-1206.96875000,13.44162560,0.00000000,0.00000000,26 3.9959716
; //object(airportgate) (2)
Re: [HELP] -
Osviux - 19.06.2011
Put this under public OnPlayerText(playerid, text[])
{
Код:
if (!strcmp("/open", cmdtext, true))
{
MoveObject(airportgate,1075.85644531,-1206.96875000,13.44162560, 2);
return 1;
}
if (!strcmp("/close", cmdtext, true))
{
MoveObject(airportgate,1077.69519043,-1205.89270020,19.94162560, 2);
return 1;
}
Put this under public OnGameModeInit()
{
Код:
new airportgate;
airportgate = CreateObject(980,1077.69519043,-1205.89270020,19.94162560,0.00000000,0.00000000,0. 00000000);