Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new open,moveobj;
- public OnGameModeInit()
- {
- moveobj = CreateObject(내용들); //여기 있는 좌표가 초기 좌표.
- return 1;
- }
- public OnPlayerCommandText(playerid,cmdtext[])
- {
- if(!strcmp(cmdtext,"/vo",true))
- {
- if(IsPlayerConnected(playerid))
- {
- if(open)
- {
- MoveObject(moveobj,초기 좌표x,초기 좌표y,초기 좌표z,속도);
- open = 0;
- }
- else
- {
- MoveObject(moveobj,움직일 좌표x,움직일 좌표y,움직일 좌표z,속도);
- open = 1;
- }
- }
- return 1;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment