MuhammadZeeshan

dsdasdasdasdas

Jun 6th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. function onPlayerRequestSpawn( player )
  2. {
  3. if ( status[ player.ID ].Registered == false )
  4. {
  5. ErrorMessage( "You need to be a part of the community to spawn, please register by /register <password>", player );
  6. return 0;
  7. }
  8. else if ( ( status[ player.ID ].Registered == true ) && ( status[ player.ID ].Logged == false ) )
  9. {
  10. ErrorMessage( "You need to be identified to spawn. Please login by /login <password>", player );
  11. return 0;
  12. }
  13. else return 1;
  14.  
  15. //==== Custom skins charges funcs ======
  16. if ( player.Skin >= 200 )
  17. {
  18. if ( status[ player.ID ].Cash < GetSkinCharge( player.Skin ) ) ErrorMessage("You need $" + GetSkinCharge( player.Skin ) + " to spawn as Batman.", player );
  19. else return 1;
  20. }
  21. if ( player.Skin >= 201 )
  22. {
  23. if ( status[ player.ID ].Cash < GetSkinCharge( player.Skin ) ) EchoMessage("You need $" + GetSkinCharge( player.Skin ) + " to spawn as IronMan.", player );
  24. else return 1;
  25. }
  26. if ( player.Skin >= 202 )
  27. {
  28. if ( status[ player.ID ].Cash < GetSkinCharge( player.Skin ) ) EchoMessage("You need $" + GetSkinCharge( player.Skin ) + " to spawn as Spiderman.", player );
  29. else return 1;
  30. }
  31.  
  32. }
Add Comment
Please, Sign In to add comment