Advertisement
Guest User

Untitled

a guest
Feb 19th, 2014
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. if(strcmp("/gateo", cmdtext, true) == 0)
  2. {
  3. if(IsPlayerAdmin(playerid)==1)
  4. {
  5. MoveObject(basegate, 2300.526367, 605.177551, 12.659502, 2.00);
  6. SendClientMessage(playerid, COLOR_YELLOW,"Welcome to the Las Venturas Admin Base");
  7. SetTimer("Resetbase",7000,0); //you can change the time, it closes after 7 seconds now.
  8. return 1;
  9. }
  10. }
  11.  
  12. if(strcmp("/topo", cmdtext, true) ==0)
  13. {
  14. if(IsPlayerAdmin(playerid)==1)
  15. {
  16. MoveObject(topgate1, 2313.8000488281, 555.75598779297, 14.899999961853, 3.0);
  17. MoveObject(topgate2, 2314.1000976563, 498.20001220703, 14.899999961853, 3.0);
  18. SendClientMessage(playerid, COLOR_YELLOW,"The Top Gate Has Been Opened Type /topc To Close It");
  19. SetTimer("resetbase",7000,0);
  20. return 1;
  21. }
  22. }
  23.  
  24. if(strcmp("/topc", cmdtext, true) ==0)
  25. {
  26. if(IsPlayerAdmin(playerid)==1)
  27. {
  28. MoveObject(topgate1, 2314, 536, 14.89999961853, 3.0);
  29. MoveObject(topgate2, 2314, 516.20001220703, 14.89999961853, 3.0);
  30. SendClientMessage(playerid, COLOR_YELLOW,"The Top Gate Has Been Closed Type /topo To Open It Again");
  31. SetTimer("resetbase",7000,0);
  32. return 1;
  33. }
  34. }
  35. return 0;
  36. }
  37.  
  38. other thin ill put them in the middle of the cmds so u gotta delete the return 0; and fix the } xD :D and thnx :v
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement