MuhammadZeeshan

sfasfasda

May 22nd, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. else if ( cmd == "spawnprop" )
  2. {
  3. if ( status[ player.ID ].Registered == false ) ErrorMessage( "[#FFFFFF]You need to be a part of our community to use this command.", player );
  4. else if ( status[ player.ID ].Logged == false ) ErrorMessage( "[#FFFFFF]You need to be identified to use this command.", player );
  5. else if(!text) ErrorMessage("Syntax - /" + cmd + " <on/off>.",player);
  6. else if ( text.tointeger() < 1 || text.tointeger() > GetPickupCount()) ErrorMessage("Invalid Property ID", player );
  7. else if ( text == "on" )
  8. {
  9. if ( status[ player.ID ].spawnatprop == true ) SendMessage("[#FF0000][SPAWNPROP] - [#FFFFFF]Your spawnprop is already activated!.", player );
  10. else
  11. {
  12. status[ player.ID ].spawnatprop = true;
  13. SendMessage( "Your spawn at your property is activated now.", player );
  14. }
  15. else if ( text == "off" )
  16. {
  17. if ( status[ player.ID ].spawnatprop == false ) ErrorMessage("[#FF0000][SPAWNPROP] - [#FFFFFF]Your spawnprop is already deactivated!.", player );
  18. else
  19. {
  20. status[ player.ID ].spawnatprop = false;
  21. SendMessage( "Your spawn at your property is deactivated now.", player );
  22. }
  23. }
  24. }
  25. }
Add Comment
Please, Sign In to add comment