Guest User

Untitled

a guest
Aug 14th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.56 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new open,moveobj;
  4.  
  5. public OnGameModeInit()
  6. {
  7.     moveobj = CreateObject(내용들); //여기 있는 좌표가 초기 좌표.
  8.     return 1;
  9. }
  10.  
  11. public OnPlayerCommandText(playerid,cmdtext[])
  12. {
  13.     if(!strcmp(cmdtext,"/vo",true))
  14.     {
  15.         if(IsPlayerConnected(playerid))
  16.         {
  17.             if(open)
  18.             {
  19.                 MoveObject(moveobj,초기 좌표x,초기 좌표y,초기 좌표z,속도);
  20.                 open = 0;
  21.             }
  22.             else
  23.             {
  24.                 MoveObject(moveobj,움직일 좌표x,움직일 좌표y,움직일 좌표z,속도);
  25.                 open = 1;
  26.             }
  27.         }
  28.         return 1;
  29.     }
  30.     return 0;
  31. }
Add Comment
Please, Sign In to add comment