Guest User

copy

a guest
Dec 16th, 2017
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. CMD:gate1(playerid, params[])
  2. {
  3. if(PlayerInfo[playerid][Vip] >= 1)
  4. {
  5. if(IsPlayerInRangeOfPoint(playerid, 7, 2873.9949,-331.1090,2.2824)) // VIP Gate
  6. {
  7. if(!VIPGateStatus)
  8. {
  9. VIPGateStatus = 1;
  10. MoveDynamicObject(VIPGate, 2875.19995117, -330.50000000, -2.79999995, 3);
  11. }
  12. else
  13. {
  14. VIPGateStatus = 0;
  15. MoveDynamicObject(VIPGate, 2875.19995117, -330.50000000, 3.90000010, 3);
  16. }
  17. return 1;
  18. }
  19. }
  20. else return SendClientMessage(playerid,red,"ERROR: You need to be {FF0000}[V.I.P] {00FF40} 1 to use this command");
  21. return 1;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment