vasy Posted May 12, 2013 Posted May 12, 2013 [pawn]#include <a_samp>new obiect;forward Actiunea(playerid);public Actiunea(playerid){ MoveObject(obiect, 1497.1999500,989.4000200,10.8000000, 3, 0.0000000,268.0000000,270.0000000); return 1; }public OnGameModeInit(){ obiect = CreateObject(968,1497.1999500,989.4000200,10.8000000,0.0000000,268.0000000,270.0000000); return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if( strcmp(cmdtext, "/deschide", true)==0) { MoveObject(obiect, 1497.1999500,989.4000200,10.8000000, 3, 0.0000000,352.0000000,270.0000000); SetTimerEx("Actiunea", 3 * 1000, 0, "i", playerid); //5 secunde , nu se repeta, valoarea este integer pt playerid return 1; } return 0;}[/pawn]deci am acest fs merge frumos dar vreau sa adaug mai multe obiecte la el se poate? daca da cum <a href="http://www.game-state.eu/188.212.105.161:7777/"><img src="http://www.game-state.eu/188.212.105.161:7777/430x73_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>
Staff Posted May 12, 2013 Posted May 12, 2013 [glow=red,2,300]Cam asa:[/glow][pawn]#include <a_samp>new obiect;new obiect2;forward Actiunea(playerid);public Actiunea(playerid){ MoveObject(obiect, 1497.1999500,989.4000200,10.8000000, 3, 0.0000000,268.0000000,270.0000000); MoveObject(obiect2, 1497.1999500,989.4000200,10.8000000, 3, 0.0000000,268.0000000,270.0000000); return 1; }public OnGameModeInit(){ obiect = CreateObject(968,1497.1999500,989.4000200,10.8000000,0.0000000,268.0000000,270.0000000); obiect2 = CreateObject(968,1497.1999500,989.4000200,10.8000000,0.0000000,268.0000000,270.0000000); return 1;}[/pawn][glow=red,2,300]intelegi ideea adaugi obiect3,4..cate vrei..[/glow] [glow=blue,2,300]SAMP.[glow=yellow,2,300]RSP-GAME[glow=red,2,300].NET[/glow][/glow][/glow]
vasy Posted May 13, 2013 Author Posted May 13, 2013 multumesc mult merge puteti da tc <a href="http://www.game-state.eu/188.212.105.161:7777/"><img src="http://www.game-state.eu/188.212.105.161:7777/430x73_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>
Question
vasy
[pawn]#include <a_samp>
new obiect;
forward Actiunea(playerid);
public Actiunea(playerid)
{
MoveObject(obiect, 1497.1999500,989.4000200,10.8000000, 3, 0.0000000,268.0000000,270.0000000);
return 1;
}
public OnGameModeInit()
{
obiect = CreateObject(968,1497.1999500,989.4000200,10.8000000,0.0000000,268.0000000,270.0000000);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if( strcmp(cmdtext, "/deschide", true)==0)
{
MoveObject(obiect, 1497.1999500,989.4000200,10.8000000, 3, 0.0000000,352.0000000,270.0000000);
SetTimerEx("Actiunea", 3 * 1000, 0, "i", playerid); //5 secunde , nu se repeta, valoarea este integer pt playerid
return 1;
}
return 0;
}
[/pawn]
deci am acest fs
merge frumos dar vreau sa adaug mai multe obiecte la el se poate? daca da cum
<a href="http://www.game-state.eu/188.212.105.161:7777/"><img src="http://www.game-state.eu/188.212.105.161:7777/430x73_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>
2 answers to this question
Recommended Posts