Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onPlayerRequestSpawn( player )
- {
- if ( status[ player.ID ].Registered == false )
- {
- ErrorMessage( "You need to be a part of the community to spawn, please register by /register <password>", player );
- return 0;
- }
- else if ( ( status[ player.ID ].Registered == true ) && ( status[ player.ID ].Logged == false ) )
- {
- ErrorMessage( "You need to be identified to spawn. Please login by /login <password>", player );
- return 0;
- }
- else return 1;
- //==== Custom skins charges funcs ======
- if ( player.Skin >= 200 )
- {
- if ( status[ player.ID ].Cash < GetSkinCharge( player.Skin ) ) ErrorMessage("You need $" + GetSkinCharge( player.Skin ) + " to spawn as Batman.", player );
- else return 1;
- }
- if ( player.Skin >= 201 )
- {
- if ( status[ player.ID ].Cash < GetSkinCharge( player.Skin ) ) EchoMessage("You need $" + GetSkinCharge( player.Skin ) + " to spawn as IronMan.", player );
- else return 1;
- }
- if ( player.Skin >= 202 )
- {
- if ( status[ player.ID ].Cash < GetSkinCharge( player.Skin ) ) EchoMessage("You need $" + GetSkinCharge( player.Skin ) + " to spawn as Spiderman.", player );
- else return 1;
- }
- }
Add Comment
Please, Sign In to add comment