Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if ( cmd == "spawnprop" )
- {
- if ( status[ player.ID ].Registered == false ) ErrorMessage( "[#FFFFFF]You need to be a part of our community to use this command.", player );
- else if ( status[ player.ID ].Logged == false ) ErrorMessage( "[#FFFFFF]You need to be identified to use this command.", player );
- else if(!text) ErrorMessage("Syntax - /" + cmd + " <on/off>.",player);
- else if ( text.tointeger() < 1 || text.tointeger() > GetPickupCount()) ErrorMessage("Invalid Property ID", player );
- else if ( text == "on" )
- {
- if ( status[ player.ID ].spawnatprop == true ) SendMessage("[#FF0000][SPAWNPROP] - [#FFFFFF]Your spawnprop is already activated!.", player );
- else
- {
- status[ player.ID ].spawnatprop = true;
- SendMessage( "Your spawn at your property is activated now.", player );
- }
- else if ( text == "off" )
- {
- if ( status[ player.ID ].spawnatprop == false ) ErrorMessage("[#FF0000][SPAWNPROP] - [#FFFFFF]Your spawnprop is already deactivated!.", player );
- else
- {
- status[ player.ID ].spawnatprop = false;
- SendMessage( "Your spawn at your property is deactivated now.", player );
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment